quicktype

module
v0.9.18 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Sep 18, 2017 License: Apache-2.0

README

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"

Directories

Path Synopsis
test

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL