Skip to content

Commit

Permalink
using npm-scripts instead of gulp
Browse files Browse the repository at this point in the history
  • Loading branch information
skratchdot committed Aug 27, 2016
1 parent 4ece5b0 commit 85e448c
Show file tree
Hide file tree
Showing 7 changed files with 45 additions and 91 deletions.
16 changes: 6 additions & 10 deletions .eslintrc → .eslintrc.js
@@ -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
@@ -1,4 +1,5 @@
_ignore/
.idea/
.nyc_output/
coverage/
node_modules/
.DS_Store
Expand Down
4 changes: 3 additions & 1 deletion .npmignore
@@ -1,5 +1,7 @@
.git*
_ignore/
.idea/
.nyc_output/
coverage/
.DS_Store
.gitignore
.npm-debug.log
Expand Down
13 changes: 4 additions & 9 deletions .travis.yml
@@ -1,14 +1,9 @@
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
5 changes: 5 additions & 0 deletions README.md
Expand Up @@ -29,6 +29,11 @@ getType({foo: 'bar'}); // returns 'Object'
getType(42); // returns 'Number'
```


## Links

- [Source Code](https://github.com/skratchdot/get-object-type)
- [Changelog](https://github.com/skratchdot/get-object-type/blob/master/CHANGELOG.md)
- [Live example on Tonic](https://tonicdev.com/npm/get-object-type)


Expand Down
62 changes: 0 additions & 62 deletions gulpfile.js

This file was deleted.

33 changes: 25 additions & 8 deletions package.json
Expand Up @@ -4,7 +4,13 @@
"description": "get the type of a javascript object.",
"main": "index.js",
"scripts": {
"test": "gulp test"
"changelog": "github_changelog_generator -u skratchdot -p get-object-type",
"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 @@ -17,15 +23,26 @@
"url": "https://github.com/skratchdot/get-object-type"
},
"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",
"type",
Expand Down

0 comments on commit 85e448c

Please sign in to comment.