iseed
v1.1.1
Published
Frontend project template (for a quick star), with full test and build infrastructure.
Downloads
14
Readme
iSeed
Based on advice on the lecture about infrastructure at Yandex.
Quick start
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
.
What's inside?
Features
- 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
Tools
- 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
How it works
Project structure
.git-hooks Git hooks
src Source code
src/assets Static data
src/js Javascript files
src/styles CSS or Stylus files
Commands
For build project
npm run build
Builded version located in ./build
directory.
For development
npm run dev
After that open http://localhost:8080/webpack-dev-server/ with your favorite browser.
For static code analyse and codestyle checking
npm run lint
For run tests
Run tests:
npm run test