Skip to content

Commit 8974346

Browse files
committed
[Build] make node 12 pass CI
1 parent 45bfe47 commit 8974346

File tree

4 files changed

+14
-21
lines changed

4 files changed

+14
-21
lines changed

.travis.yml

+8
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
language: node_js
22
node_js:
3+
- '12'
34
- '10'
45
- '8'
56
- '6'
@@ -17,6 +18,8 @@ env:
1718
# osx backlog is often deep, so to be polite we can just hit these highlights
1819
matrix:
1920
include:
21+
- env: PACKAGE=resolvers/node
22+
node_js: 12
2023
- env: PACKAGE=resolvers/node
2124
node_js: 10
2225
- env: PACKAGE=resolvers/node
@@ -25,6 +28,8 @@ matrix:
2528
node_js: 6
2629
- env: PACKAGE=resolvers/node
2730
node_js: 4
31+
- env: PACKAGE=resolvers/webpack
32+
node_js: 12
2833
- env: PACKAGE=resolvers/webpack
2934
node_js: 10
3035
- env: PACKAGE=resolvers/webpack
@@ -34,6 +39,9 @@ matrix:
3439
- env: PACKAGE=resolvers/webpack
3540
node_js: 4
3641

42+
- os: osx
43+
env: ESLINT_VERSION=5
44+
node_js: 12
3745
- os: osx
3846
env: ESLINT_VERSION=5
3947
node_js: 10

appveyor.yml

+1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
# Test against this version of Node.js
22
environment:
33
matrix:
4+
- nodejs_version: "12"
45
- nodejs_version: "10"
56
- nodejs_version: "8"
67
# - nodejs_version: "6"

gulpfile.js

-18
This file was deleted.

package.json

+5-3
Original file line numberDiff line numberDiff line change
@@ -15,14 +15,16 @@
1515
"memo-parser"
1616
],
1717
"scripts": {
18+
"build": "babel --quiet --out-dir lib src",
19+
"prebuild": "rimraf lib",
1820
"watch": "npm run mocha -- --watch tests/src",
1921
"pretest": "linklocal",
2022
"posttest": "eslint ./src",
2123
"mocha": "cross-env BABEL_ENV=test NODE_PATH=./src nyc -s mocha -R dot --recursive -t 5s",
2224
"test": "npm run mocha tests/src",
2325
"test-compiled": "npm run prepublish && NODE_PATH=./lib mocha --compilers js:babel-register --recursive tests/src",
2426
"test-all": "npm test && for resolver in ./resolvers/*; do cd $resolver && npm test && cd ../..; done",
25-
"prepublish": "gulp prepublish",
27+
"prepublish": "npm run build",
2628
"coveralls": "nyc report --reporter lcovonly && cat ./coverage/lcov.info | coveralls"
2729
},
2830
"repository": {
@@ -46,6 +48,8 @@
4648
"homepage": "https://github.com/benmosher/eslint-plugin-import",
4749
"devDependencies": {
4850
"@typescript-eslint/parser": "^1.5.0",
51+
"babel-cli": "^6.26.0",
52+
"babel-core": "^6.26.3",
4953
"babel-eslint": "^8.2.6",
5054
"babel-plugin-istanbul": "^4.1.6",
5155
"babel-preset-es2015-argon": "latest",
@@ -62,8 +66,6 @@
6266
"eslint-import-test-order-redirect": "file:./tests/files/order-redirect",
6367
"@eslint/import-test-order-redirect-scoped": "file:./tests/files/order-redirect-scoped",
6468
"eslint-plugin-import": "2.x",
65-
"gulp": "^3.9.1",
66-
"gulp-babel": "6.1.2",
6769
"linklocal": "^2.8.2",
6870
"mocha": "^3.5.3",
6971
"nyc": "^11.9.0",

0 commit comments

Comments
 (0)