Based on advice on the lecture about infrastructure at Yandex.
git clone [email protected]:alt-j/iseed.git
cd iseed
npm install
npm build
Then open the link in your favorite browser: build/index.html
.
- Static code analyser and codestyle checking with jsint and jscs
- Unit tests with mocha and phantomjs
- Using git hooks to lint your code and run tests before each commit
- eslint — a tool to detect errors and potential problems in JavaScript code
- jscs — a code style checker for javascript
- git-hooks — a tool for git hooks managment
- mocha + chai + sinon + phantomjs + karma— testing client javascript
.git-hooks Git hooks
src Source code
src/assets Static data
src/js Javascript files
src/styles CSS or Stylus files
npm run build
Builded version located in ./build
directory.
npm run dev
After that open http://localhost:8080/webpack-dev-server/ with your favorite browser.
npm run lint
Run tests:
npm run test