npm install
npm start
npm test
or
npm run autotest
To re-run tests when files change.
npm build
Elm binaries can be found in node_modules/.bin
, if you do not have Elm
installed globally. With the latest npm you can run:
npx elm install <packageName>
to install new packages. Alternatively, you could add scripts in package.json
and run them via npm run ...
These are the main libraries and tools used to build advent-of-code-2018. If you're not sure how something works, getting more familiar with these might help.
Elm is a delightful language for creating reliable webapps. It guarantees no runtime exceptions, and provides excellent performance. If you're not familiar with it, the official guide is a great place to get started, and the folks on Slack and Discourse are friendly and helpful if you get stuck.
This is the standard testing library for Elm. In addition to being useful for traditional fixed-input unit tests, it also supports property-based testing where random data is used to validate behavior over a large input space. It's really useful!
Parcel build and bundles the application's assets into individual HTML, CSS, and JavaScript files. It also runs the live-server used during development.