Initialize project at current stage
// acquire source
git clone https://github.com/pouk/idem
cd idem
// install dependencies
npm install
// install lerna globally
npm install -g lerna
// bootstrap w/ internal dependencies
lerna bootstrap
High level directory structure
├── CHANGELOG.md
├── client
│ ├── assets
│ │ └── demo.html
│ ├── ava.config.js
│ ├── dist
│ ├── index.js
│ ├── package.json
│ ├── packages
│ │ ├── agent
│ │ │ ├── index.js
│ │ │ ├── package.json
│ │ │ ├── src
│ │ │ └── test
│ │ └── ...
│ ├── src
│ ├── test
│ └── webpack.config.js
├── config
├── common
└── server
└── packages
Branching
Create a topic branch from (usually from master
)
Commits
Make commits of logical and atomic units. Make sure to use conventional commit messages, i.e. following fashion:
<type>[optional scope]: <description>
[optional body]
[optional footer]
Type must be one of the following:
feat
- add new featurefix
- fix or enhancement of existing featuretest
- add missing test or refactor existingrefactor
- change to production code w/o changing behaviordocs
- changes to documentation onlychore
- routine workbuild
ci
perf
style
revert
Optional scope may be:
client
server
config
common
- ...
The footer should contain any information about Breaking Changes and is also the place to reference GitHub issues that this commit Closes.
Breaking Changes should start with the word BREAKING CHANGE:
with a space or
two newlines. The rest of the commit message is then used for this.
Code Style
Follow JavaScript Standard Style
Tests
Run tests using AVA
npm run test