Skip to content

Commit

Permalink
Added: output to notify if generation has been made or not (1.4.0)
Browse files Browse the repository at this point in the history
  • Loading branch information
MoOx committed Oct 18, 2015
1 parent 816483a commit 6e54a5f
Show file tree
Hide file tree
Showing 5 changed files with 38 additions and 18 deletions.
7 changes: 7 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,10 @@
# 1.4.0 - 2015-10-18

- Upgraded: browserlist 1.x
- Upgraded: shelljs 0.5.x
- Added: output to notify if generation has been made or not
(related to [#25](https://github.com/Nyalab/caniuse-api/issues/25))

# 1.3.2 - 2015-06-23

- Fixed: lodash.uniq dep
Expand Down
9 changes: 9 additions & 0 deletions generator.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
require('shelljs/global')

if (test('-d', 'dist')) {
exec('node dist/generate-features.js')
console.log('caniuse-api: Generation ok')
}
else {
console.log('caniuse-api: No generation')
}
38 changes: 20 additions & 18 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,18 +1,30 @@
{
"name": "caniuse-api",
"version": "1.3.2",
"version": "1.4.0",
"description": "request the caniuse data to check browsers compatibilities",
"repository": {
"type": "git",
"url": "https://github.com/nyalab/caniuse-api.git"
},
"keywords": [
"caniuse",
"browserslist"
],
"authors": [
"nyalab",
"MoOx"
],
"license": "MIT",
"main": "dist/index.js",
"files": [
"dist/",
"LICENSE"
"dist/"
],
"dependencies": {
"browserslist": "^0.4.0",
"caniuse-db": "^1.0.30000030",
"browserslist": "^1.0.1",
"caniuse-db": "^1.0.30000346",
"lodash.memoize": "^2.4.1",
"lodash.uniq": "^3.1.0",
"shelljs": "^0.3.0"
"shelljs": "^0.5.3"
},
"devDependencies": {
"babel": "^4.7.16",
Expand All @@ -27,16 +39,6 @@
"prepublish": "npm run build",
"pretest": "babel-node src/generate-features.js",
"test": "npm run lint && babel-tape-runner test/*.js | tap-spec",
"postinstall": "node -e \"require('shelljs/global');if(test('-d', 'dist'))exec('node dist/generate-features.js')\""
},
"repository": {
"type": "git",
"url": "https://github.com/nyalab/caniuse-api.git"
},
"keywords": [
"caniuse",
"browserslist"
],
"author": "nyalab",
"license": "MIT"
"postinstall": "node generator.js"
}
}
1 change: 1 addition & 0 deletions test/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,7 @@ test("getSupport tests", (t) => {
op_mini: { n: 5 },
ios_saf: { y: 3.2, x: 3.2 },
ie_mob: { y: 10 },
edge: { y: 12 },
ie: { n: 8, y: 9 },
firefox: { a: 2, x: 3.6, y: 3 },
chrome: { y: 4, x: 4 },
Expand Down
1 change: 1 addition & 0 deletions test/utils.js
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@ test("parseCaniuseData should work", (t) => {
ios_saf: { y: 3.2, x: 3.2 },
ie_mob: { y: 10 },
ie: { n: 8, y: 9 },
edge: { y: 12 },
firefox: { a: 2, x: 3.6, y: 3 },
chrome: { y: 4, x: 4 },
android: { y: 2.1, x: 2.1 },
Expand Down

3 comments on commit 6e54a5f

@Nyalab
Copy link
Owner

@Nyalab Nyalab commented on 6e54a5f Oct 19, 2015

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

this will help 👍

@MoOx
Copy link
Collaborator Author

@MoOx MoOx commented on 6e54a5f Oct 19, 2015

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It seems that upgrading shelljs and/or browserlist (probably more shelljs) helped.

@Nyalab
Copy link
Owner

@Nyalab Nyalab commented on 6e54a5f Oct 19, 2015

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

yes they did commits on writing after the stream ending and the busy loop that helped imo

Please sign in to comment.