Skip to content

Starter pack for code challenges or small projects in JS/ES-latest

License

Notifications You must be signed in to change notification settings

mscienski/code-challenge-starter-js

Repository files navigation

code-challenge-starter-js

Starter pack for code challenges or small projects in JS/ES-latest

Windows

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.

Lint

npm run lint will run eslint.

Tests

npm run test will run Karma with eslint checks applied to the webpack build.

Development server

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.

Production build

npm run build will create production assets.

Production build/server

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

About

Starter pack for code challenges or small projects in JS/ES-latest

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published