chore(package): various updates

This commit is contained in:
Julien Fontanet 2016-10-28 11:44:11 +02:00
parent 1f710b9b78
commit 36b589c2db
2 changed files with 12 additions and 20 deletions

View File

@ -92,24 +92,21 @@ root@xen1.company.net> findAll({ $type: 'vm' }).length
## Development
### Installing dependencies
```
# Install dependencies
> npm install
```
### Compilation
# Run the tests
> npm test
The sources files are watched and automatically recompiled on changes.
```
# Continuously compile
> npm run dev
```
### Tests
# Continuously run the tests
> npm run dev-test
```
> npm run test-dev
# Build for production (automatically called by npm install)
> npm run build
```
## Contributions

View File

@ -52,32 +52,27 @@
"babel-cli": "^6.8.0",
"babel-eslint": "^7.0.0",
"babel-plugin-lodash": "^3.2.9",
"babel-preset-babili": "^0.0.5",
"babel-preset-latest": "^6.16.0",
"babel-preset-stage-0": "^6.5.0",
"cross-env": "^3.1.2",
"dependency-check": "^2.5.1",
"ghooks": "^1.2.1",
"rimraf": "^2.5.4",
"standard": "^8.0.0"
},
"scripts": {
"build": "cross-env NODE_ENV=production babel --source-maps --out-dir=dist/ src/",
"clean": "rimraf dist/",
"depcheck": "dependency-check ./package.json",
"dev": "cross-env NODE_ENV=development babel --watch --source-maps --out-dir=dist/ src/",
"lint": "standard",
"plot": "gnuplot -p memory-test.gnu",
"posttest": "npm run lint && npm run depcheck",
"prebuild": "npm run clean",
"predev": "npm run clean",
"prepublish": "npm run build"
},
"babel": {
"env": {
"production": {
"comments": false,
"presets": [
"babili"
]
}
},
"plugins": [
"lodash"
],