Skip to content

Commit c8a691a

Browse files
committed
using npm-scripts instead of gulp
1 parent 8b5ac54 commit c8a691a

File tree

7 files changed

+45
-91
lines changed

7 files changed

+45
-91
lines changed

.eslintrc renamed to .eslintrc.js

Lines changed: 6 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,8 @@
11
// adapted from: https://github.com/Khan/style-guides/pull/25
2-
{
3-
"plugins": [
4-
],
2+
module.exports = {
3+
"extends": "eslint:recommended",
54
"ecmaFeatures": {
6-
"modules": true
5+
"modules": false
76
},
87
"env": {
98
"browser": true,
@@ -17,7 +16,6 @@
1716
"camelcase": [2, {
1817
"properties": "always"
1918
}],
20-
"comma-dangle": [1, "always-multiline"],
2119
"comma-dangle": [2, "never"],
2220
"comma-spacing": [2, {
2321
"before": false,
@@ -26,6 +24,7 @@
2624
"eol-last": [0],
2725
"guard-for-in": 2,
2826
//"indent": [2, 4],
27+
"keyword-spacing": 2,
2928
"linebreak-style": [2, "unix"],
3029
/*
3130
"max-len": [2, 80, 4, {
@@ -52,16 +51,13 @@
5251
"prefer-template": 2,
5352
"quotes": [2, "single"],
5453
"semi": [2, "always"],
55-
"space-after-keywords": [2, "always"],
5654
"space-before-blocks": 2,
5755
"space-before-function-paren": [2, {
5856
"anonymous": "always",
5957
"named": "never"
6058
}],
6159
"space-infix-ops": 2,
62-
"space-return-throw-case": 2,
6360
"strict": [0, "never"],
6461
"valid-jsdoc": 2
65-
},
66-
"extends": "eslint:recommended"
67-
}
62+
}
63+
};

.gitignore

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
1-
_ignore/
1+
.idea/
2+
.nyc_output/
23
coverage/
34
node_modules/
45
.DS_Store

.npmignore

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
11
.git*
2-
_ignore/
2+
.idea/
3+
.nyc_output/
4+
coverage/
35
.DS_Store
46
.gitignore
57
.npm-debug.log

.travis.yml

Lines changed: 4 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,9 @@
11
language: node_js
22
node_js:
33
- 'stable'
4-
- '4.2'
5-
- '4.1'
4+
- '6.0'
5+
- '5.0'
66
- '4.0'
7-
- '0.12'
8-
- '0.11'
9-
- '0.10'
10-
before_script:
11-
- npm install -g gulp
127
script:
13-
- gulp test
14-
- cat ./coverage/lcov.info | ./node_modules/.bin/coveralls --verbose
8+
- npm run cover
9+
- npm run coveralls

README.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -36,6 +36,11 @@ obj = setPath(obj, 'foo.invalidKey', 'cool'); // result: {foo:{bar:'newValue',in
3636
obj = setPath(obj, 'foo|bar', 'again', '|'); // result: {foo:{bar:'again',invalidKey: 'cool'}}
3737
```
3838

39+
40+
## Links
41+
42+
- [Source Code](https://github.com/skratchdot/object-path-set)
43+
- [Changelog](https://github.com/skratchdot/object-path-set/blob/master/CHANGELOG.md)
3944
- [Live example on Tonic](https://tonicdev.com/npm/object-path-set)
4045

4146

gulpfile.js

Lines changed: 0 additions & 62 deletions
This file was deleted.

package.json

Lines changed: 25 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,13 @@
44
"description": "set values in javascript objects by specifying a path",
55
"main": "index.js",
66
"scripts": {
7-
"test": "gulp test"
7+
"changelog": "github_changelog_generator -u skratchdot -p object-path-set",
8+
"clean": "rimraf .nyc_output/ coverage/",
9+
"cover": "nyc npm test",
10+
"coveralls": "cat coverage/lcov.info | coveralls --verbose",
11+
"lint": "eslint *.js",
12+
"test": "mocha test.js",
13+
"prepublish": "npm-run-all lint test"
814
},
915
"author": "skratchdot",
1016
"license": "MIT",
@@ -17,15 +23,26 @@
1723
"url": "https://github.com/skratchdot/object-path-set"
1824
},
1925
"devDependencies": {
20-
"chai": "^3.4.1",
21-
"coveralls": "^2.11.4",
22-
"gulp": "^3.9.0",
23-
"gulp-eslint": "^1.1.0",
24-
"gulp-istanbul": "^0.10.2",
25-
"gulp-mocha": "^2.2.0",
26-
"isparta": "^4.0.0"
26+
"chai": "^3.5.0",
27+
"coveralls": "^2.11.12",
28+
"eslint": "^3.4.0",
29+
"mocha": "^3.0.2",
30+
"npm-run-all": "^3.0.0",
31+
"nyc": "^8.1.0",
32+
"rimraf": "^2.5.4"
2733
},
2834
"tonicExampleFilename": ".tonic.example.js",
35+
"nyc": {
36+
"all": true,
37+
"include": [
38+
"index.js"
39+
],
40+
"reporter": [
41+
"text",
42+
"html",
43+
"lcovonly"
44+
]
45+
},
2946
"keywords": [
3047
"object",
3148
"path",

0 commit comments

Comments
 (0)