Generate types and converters from JSON, Schema, and GraphQL
Перейти к файлу
Mark Probst d51e6e9d99 Merge pull request #171 from quicktype/big-list-of-naughty-strings
Big list of naughty strings. Fixes #168
2017-09-09 15:22:38 -07:00
.vscode Java 2017-08-18 15:53:49 -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 Only allow ASCII in Java identifiers 2017-09-09 14:39:35 -07:00
test Big List of Naughty Strings test 2017-09-09 14:39:35 -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 Update build badge 2017-09-05 16:22:47 -07:00
bower.json Get rid of the rest of union conversion 2017-08-30 13:28:13 -07:00
package-lock.json Publish npm source files at top level 2017-08-31 12:02:56 -07:00
package.json Bump CLI, to include C# options 2017-09-09 08:21:42 -07:00

README.md

Build Status Join us in Slack

Setup

$ npm install

Build

$ npm run build

Edit

$ code . # open in VSCode

Install the purescript-ide extension in VSCode, then use the command pallete to start the psc-ide server for code completion, etc.

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"