Skip to content
This repository was archived by the owner on Jan 18, 2022. It is now read-only.

Commit 3d073e1

Browse files
posvaznck
authored andcommitted
🔧 Improve DX (#35)
- Add npm run lint:fix -> eslint --fix - Add npm run dev -> mocha -w
1 parent ea1574c commit 3d073e1

File tree

2 files changed

+7
-1
lines changed

2 files changed

+7
-1
lines changed

‎CONTRIBUTING.md

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,11 +21,15 @@ We accept contributions via Pull Requests on [Github](https://github.com/znck/ro
2121

2222
- **Send coherent history** - Make sure each individual commit in your pull request is meaningful. If you had to make multiple intermediate commits while developing, please [squash them](http://www.git-scm.com/book/en/v2/Git-Tools-Rewriting-History#Changing-Multiple-Commit-Messages) before submitting.
2323

24+
- **Tip** to pass lint tests easier use the `npm run lint:fix` command
25+
2426

2527
## Running Tests
2628

29+
Launch mocha wih the watch option with:
30+
2731
``` bash
28-
$ composer test
32+
$ npm run dev
2933
```
3034

3135

‎package.json

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,8 +7,10 @@
77
"scripts": {
88
"test": "npm run lint && npm run build && npm run unit",
99
"build": "node config/build.js",
10+
"dev": "npm run unit -- -w",
1011
"unit": "NODE_ENV=production mocha test/test.js --slow=5000 --timeout=10000",
1112
"lint": "eslint src/**",
13+
"lint:fix": "eslint --fix src/**",
1214
"coveralls": "NODE_ENV=production istanbul cover --default-excludes -x 'dist/**' -x 'config/**' ./node_modules/mocha/bin/_mocha --report lcovonly -- --slow=5000 --timeout=10000 test/test.js && cat ./coverage/lcov.info | ./node_modules/coveralls/bin/coveralls.js && rm -rf ./coverage"
1315
},
1416
"repository": {

0 commit comments

Comments
 (0)