Skip to content

Commit

Permalink
removing gulp in favor of npm-scripts
Browse files Browse the repository at this point in the history
  • Loading branch information
skratchdot committed Aug 27, 2016
1 parent 6607e8e commit 3b380e0
Show file tree
Hide file tree
Showing 8 changed files with 42 additions and 90 deletions.
16 changes: 6 additions & 10 deletions .eslintrc → .eslintrc.js
Original file line number Diff line number Diff line change
@@ -1,9 +1,8 @@
// adapted from: https://github.com/Khan/style-guides/pull/25
{
"plugins": [
],
module.exports = {
"extends": "eslint:recommended",
"ecmaFeatures": {
"modules": true
"modules": false
},
"env": {
"browser": true,
Expand All @@ -17,7 +16,6 @@
"camelcase": [2, {
"properties": "always"
}],
"comma-dangle": [1, "always-multiline"],
"comma-dangle": [2, "never"],
"comma-spacing": [2, {
"before": false,
Expand All @@ -26,6 +24,7 @@
"eol-last": [0],
"guard-for-in": 2,
//"indent": [2, 4],
"keyword-spacing": 2,
"linebreak-style": [2, "unix"],
/*
"max-len": [2, 80, 4, {
Expand All @@ -52,16 +51,13 @@
"prefer-template": 2,
"quotes": [2, "single"],
"semi": [2, "always"],
"space-after-keywords": [2, "always"],
"space-before-blocks": 2,
"space-before-function-paren": [2, {
"anonymous": "always",
"named": "never"
}],
"space-infix-ops": 2,
"space-return-throw-case": 2,
"strict": [0, "never"],
"valid-jsdoc": 2
},
"extends": "eslint:recommended"
}
}
};
3 changes: 2 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
_ignore/
.idea/
.nyc_output/
coverage/
node_modules/
.DS_Store
Expand Down
4 changes: 3 additions & 1 deletion .npmignore
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
.git*
_ignore/
.idea/
.nyc_output/
coverage/
.DS_Store
.gitignore
.npm-debug.log
Expand Down
3 changes: 2 additions & 1 deletion .tonic.example.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,4 +3,5 @@ var obj = {foo:{bar:'baz'}};
var r1 = getPath(obj, 'foo.bar'); // result: "baz"
var r2 = getPath(obj, 'foo.invalidKey', 'cool'); // result: "cool"
var r3 = getPath(obj, 'foo|bar', null, '|'); // result: "baz" (with different delimiter)
console.log(r1, r2, r3);
var r4 = getPath(obj, ['foo', 'bar']); // result "baz" (with array path)
console.log(r1, r2, r3, r4);
10 changes: 4 additions & 6 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -1,14 +1,12 @@
language: node_js
node_js:
- 'stable'
- '4.2'
- '4.1'
- '6.0'
- '5.0'
- '4.0'
- '0.12'
- '0.11'
- '0.10'
before_script:
- npm install -g gulp
script:
- gulp test
- cat ./coverage/lcov.info | ./node_modules/.bin/coveralls --verbose
- npm run cover
- npm run coveralls
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,7 @@ var obj = {foo:{bar:'baz'}};
getPath(obj, 'foo.bar'); // result: "baz"
getPath(obj, 'foo.invalidKey', 'cool'); // result: "cool"
getPath(obj, 'foo|bar', null, '|'); // result: "baz" (with different delimiter)
getPath(obj, ['foo', 'bar']); // result "baz" (with array path)
```

- [Live example on Tonic](https://tonicdev.com/npm/object-path-get)
Expand Down
62 changes: 0 additions & 62 deletions gulpfile.js

This file was deleted.

33 changes: 24 additions & 9 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,12 @@
"description": "get values from javascript objects by specifying a path",
"main": "index.js",
"scripts": {
"test": "gulp test",
"prepublish": "gulp test && gulp lint"
"clean": "rimraf .nyc_output/ coverage/",
"cover": "nyc npm test",
"coveralls": "cat coverage/lcov.info | coveralls --verbose",
"lint": "eslint *.js",
"test": "mocha test.js",
"prepublish": "npm-run-all lint test"
},
"author": "skratchdot",
"license": "MIT",
Expand All @@ -18,15 +22,26 @@
"url": "https://github.com/skratchdot/object-path-get"
},
"devDependencies": {
"chai": "^3.4.1",
"coveralls": "^2.11.4",
"gulp": "^3.9.0",
"gulp-eslint": "^1.1.0",
"gulp-istanbul": "^0.10.2",
"gulp-mocha": "^2.2.0",
"isparta": "^4.0.0"
"chai": "^3.5.0",
"coveralls": "^2.11.12",
"eslint": "^3.4.0",
"mocha": "^3.0.2",
"npm-run-all": "^3.0.0",
"nyc": "^8.1.0",
"rimraf": "^2.5.4"
},
"tonicExampleFilename": ".tonic.example.js",
"nyc": {
"all": true,
"include": [
"index.js"
],
"reporter": [
"text",
"html",
"lcovonly"
]
},
"keywords": [
"object",
"path",
Expand Down

0 comments on commit 3b380e0

Please sign in to comment.