Starter pack for code challenges or small projects in JS/ES-latest
Vagrantfile is provided for running on windows. This is because the syntax for scripts is incompatible between environments when setting environmental variables.
Run vagrant up
in an administrator shell (or Git Bash as administrator).
Use the administrator shell because the no-bin-links
flag breaks the node packages.
Run commands from within vagrant after vagrant ssh
inside the /vagrant
directory.
npm run lint
will run eslint.
npm run test
will run Karma with eslint checks applied to the webpack build.
npm run dev
will build the app with webpack and run a dev server on port 3000.
Hot module reloading is enabled, so you should see your client refresh when you
make a code change.
When using Vagrant, the host port will be 8083.
npm run build
will create production assets.
npm run start
will run sanity checks, build the app with webpack with
production settings, and run an http server on port 4000.
When using Vagrant, the host port will be 8084.
Takes one or two optional flags;
--skip-lint
skips linting check
--skip-tests
skips Karma