Generate types and converters from JSON, Schema, and GraphQL
Перейти к файлу
David Siegel b96ba31e49 Use reserved namespace "QuickType" in C# to avoid the conflict between the top-level type and namespace name. 2017-09-13 12:33:40 -07:00
.vscode Format on save 2017-09-10 21:11:09 -07:00
cli Always infer options, and comment option parsing 2017-09-04 06:50:17 -07:00
script Build with docker and fix npm publish token 2017-09-02 12:56:26 -07:00
src Use reserved namespace "QuickType" in C# to avoid the conflict between the top-level type and namespace name. 2017-09-13 12:33:40 -07:00
test Use reserved namespace "QuickType" in C# to avoid the conflict between the top-level type and namespace name. 2017-09-13 12:33:40 -07:00
.dockerignore Build with docker and fix npm publish token 2017-09-02 12:56:26 -07:00
.gitignore Add package.locks 2017-08-15 14:30:36 -04:00
.travis.yml Move Travis notifications to #github channel 2017-09-03 13:02:23 -07:00
Dockerfile Build with docker and fix npm publish token 2017-09-02 12:56:26 -07:00
LICENSE Create LICENSE 2017-08-30 10:49:31 -07:00
README.md Add recommended extensions 2017-09-10 21:07:47 -07:00
bower.json Get rid of the rest of union conversion 2017-08-30 13:28:13 -07:00
package-lock.json Enable tslint 2017-09-10 21:08:06 -07:00
package.json v0.9.16 2017-09-12 22:36:07 -07:00

README.md

Build Status Join us in Slack

Setup

$ npm install

Build

$ npm run build

Edit

Install Visual Studio Code, open this workspace, and install the recommended extensions.

$ code . # open in VSCode

Live-reloading for quick feedback

If you're working on a renderer, you'll likely want quick feedback on renderer output as you edit. Use npm start to watch PureScript files for changes, and recompile and rerun quicktype for live feedback. For example, if you're developing a new renderer for fortran, you could use the following command to rebuild and reinvoke quicktype as you implement your renderer:

$ npm start -- "--lang fortran test/inputs/json/samples/bitcoin-block.json"

The command in quotes is passed to quicktype, so you can render local .json files, URLs, or add other options.

Test

$ npm test

Requirements

On macOS the system Java seems sufficient to run tests.

Test only a specific fixture

$ FIXTURE=golang npm test

Using Docker

$ docker build --cache-from dvdsgl/quicktype -t quicktype .
$ docker run -t quicktype test/test
$ # run specific fixtures
$ docker run -t quicktype sh -c "FIXTURE=golang,java test/test"