Skip to content

damncabbage/quicktype

 
 

Repository files navigation

Build Status

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"

About

Quick types from data

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • PureScript 81.4%
  • TypeScript 15.0%
  • Python 1.9%
  • JavaScript 1.2%
  • Shell 0.5%