Skip to content

Commit

Permalink
fix: update dependencies
Browse files Browse the repository at this point in the history
BREAKING CHANGE:
* removed Node v5 support; next supported version: ^10
  • Loading branch information
gajus committed May 31, 2019
1 parent 4fef1eb commit 1028dff
Show file tree
Hide file tree
Showing 7 changed files with 34 additions and 61 deletions.
13 changes: 8 additions & 5 deletions .babelrc
Original file line number Diff line number Diff line change
@@ -1,12 +1,15 @@
{
"plugins": [
"transform-flow-comments"
"@babel/plugin-transform-flow-strip-types"
],
"presets": [
["env", {
"targets": {
"node": 5
[
"@babel/preset-env",
{
"targets": {
"node": 10
}
}
}]
]
]
}
6 changes: 2 additions & 4 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,10 +11,8 @@ script:
- npm run lint
- npm run build
after_success:
- export NODE_ENV=production
- rm -fr ./dist
- npm run build
- semantic-release pre && npm publish && semantic-release post
- NODE_ENV=production npm run build
- semantic-release
notifications:
email: false
sudo: false
2 changes: 1 addition & 1 deletion LICENSE
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
Copyright (c) 2017, Gajus Kuizinas (http://gajus.com/)
Copyright (c) 2019, Gajus Kuizinas (http://gajus.com/)
All rights reserved.

Redistribution and use in source and binary forms, with or without
Expand Down
39 changes: 22 additions & 17 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,31 +5,36 @@
"url": "http://gajus.com"
},
"ava": {
"babel": "inherit",
"require": [
"babel-register"
"@babel/register"
]
},
"dependencies": {
"nearley": "^2.11.0"
"nearley": "^2.16.0"
},
"description": "A CSS selector parser.",
"devDependencies": {
"ava": "^0.23.0",
"babel-cli": "^6.26.0",
"babel-loader": "^7.1.2",
"babel-plugin-transform-flow-comments": "^6.22.0",
"babel-preset-env": "^1.6.1",
"babel-register": "^6.26.0",
"eslint": "^4.10.0",
"eslint-config-canonical": "^9.3.1",
"flow-bin": "^0.57.3",
"husky": "^0.14.3",
"semantic-release": "^8.2.0",
"webpack": "^3.8.1"
"@babel/cli": "^7.4.4",
"@babel/core": "^7.4.5",
"@babel/plugin-transform-flow-strip-types": "^7.4.4",
"@babel/preset-env": "^7.4.5",
"@babel/preset-flow": "^7.0.0",
"@babel/register": "^7.4.4",
"ava": "^1.4.1",
"eslint": "^5.16.0",
"eslint-config-canonical": "^17.1.0",
"flow-bin": "^0.99.1",
"flow-copy-source": "^2.0.6",
"husky": "^2.3.0",
"semantic-release": "^15.13.12"
},
"engines": {
"node": ">=5"
"node": ">=10"
},
"husky": {
"hooks": {
"pre-commit": "npm run lint && npm run test && npm run build"
}
},
"keywords": [
"css",
Expand All @@ -44,7 +49,7 @@
"url": "https://github.com/gajus/scalpel"
},
"scripts": {
"build": "npm run compile-grammar && babel ./src --out-dir ./dist --copy-files --source-maps",
"build": "rm -fr ./dist && npm run compile-grammar && babel ./src --out-dir ./dist --copy-files --source-maps && flow-copy-source src dist",
"compile-grammar": "nearleyc ./src/grammar.ne --out ./src/grammar.js",
"lint": "eslint ./src ./test && flow",
"precommit": "npm run lint && npm run test",
Expand Down
7 changes: 0 additions & 7 deletions src/browser.js

This file was deleted.

3 changes: 1 addition & 2 deletions test/selectors/typeSelector.js
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,7 @@ const validNodeNames = [
'foo-123',
'FOO',
'foo-bar',
'_0',
'foo-123'
'_0'
];

for (const validNodeName of validNodeNames) {
Expand Down
25 changes: 0 additions & 25 deletions webpack.config.js

This file was deleted.

0 comments on commit 1028dff

Please sign in to comment.