Skip to content
This repository has been archived by the owner on Mar 11, 2018. It is now read-only.

Commit

Permalink
Drop Gulp dependency
Browse files Browse the repository at this point in the history
  • Loading branch information
yuanqing committed Aug 23, 2014
1 parent 74cd55f commit 3736c2f
Show file tree
Hide file tree
Showing 8 changed files with 39 additions and 60 deletions.
9 changes: 9 additions & 0 deletions .editorconfig
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
root = true

[*]
indent_style = space
indent_size = 2
end_of_line = lf
charset = utf-8
trim_trailing_whitespace = true
insert_final_newline = true
6 changes: 3 additions & 3 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
.DS_Store
.sublime-gulp.cache
coverage
node_modules
coverage/
node_modules/
npm-debug.log
2 changes: 1 addition & 1 deletion .jshintrc
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
"latedef": true,
"newcap": true,
"noarg": true,
"quotmark": "single",
"quotmark": false,
"undef": true,
"unused": true,
"globals": {
Expand Down
13 changes: 6 additions & 7 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,12 +4,11 @@ node_js:
- '0.10'
- '0.11'

before_script:
- npm install -g gulp

script:
- gulp
- npm run-script lint
- npm run-script lint-test
- npm run-script cover

after_script:
- npm install -g coveralls
- cat ./coverage/lcov.info | coveralls
after_success:
- npm i coveralls
- cat ./coverage/lcov.info | ./node_modules/.bin/coveralls
2 changes: 2 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,8 @@

> Cast a string (where possible) to a primitive type.
## Usage

```js
stereotype('undefined'); //=> undefined
stereotype('null'); //=> null
Expand Down
41 changes: 0 additions & 41 deletions gulpfile.js

This file was deleted.

24 changes: 17 additions & 7 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "stereotype",
"version": "1.0.0",
"version": "1.0.1",
"description": "Cast a string (where possible) to a primitive type.",
"author": "Lim Yuan Qing",
"license": "MIT",
Expand All @@ -9,11 +9,21 @@
"url": "git://github.com/yuanqing/stereotype.git"
},
"devDependencies": {
"gulp": "^3.8.0",
"gulp-istanbul": "^0.2.1",
"gulp-jasmine": "^0.3.0",
"gulp-jshint": "^1.8.2",
"gulp-plumber": "^0.6.4",
"istanbul": "^0.3.0",
"jasmine-node": "^1.14.5",
"jshint": "^2.5.4",
"jshint-stylish": "^0.4.0"
}
},
"scripts": {
"cover": "node_modules/.bin/istanbul cover node_modules/.bin/jasmine-node ./spec -x **/spec/**",
"lint": "node_modules/.bin/jshint --verbose --reporter node_modules/jshint-stylish/stylish.js index.js",
"lint-test": "node_modules/.bin/jshint --verbose --reporter node_modules/jshint-stylish/stylish.js ./spec/*.js",
"test": "node_modules/.bin/jasmine-node spec --verbose"
},
"keywords": [
"cast",
"casting",
"string",
"type"
]
}
2 changes: 1 addition & 1 deletion spec/stereotype.spec.js
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ describe('stereotype', function() {
});

it('NaN', function() {
expect(stereotype('NaN')).toEqual(NaN);
expect(isNaN(stereotype('NaN'))).toBe(true);
});

it('Infinity', function() {
Expand Down

0 comments on commit 3736c2f

Please sign in to comment.