Skip to content

Commit 67c57db

Browse files
joshwiensmichael-ciniawsky
authored andcommitted
chore(package): set engines to current node LTS versions
1 parent 4f28e16 commit 67c57db

File tree

2 files changed

+62
-24
lines changed

2 files changed

+62
-24
lines changed

.babelrc

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
{
66
"useBuiltIns": true,
77
"targets": {
8-
"node": "4.3"
8+
"node": "6.9.0"
99
},
1010
"exclude": [
1111
"transform-async-to-generator",
@@ -32,4 +32,4 @@
3232
]
3333
}
3434
}
35-
}
35+
}

package.json

Lines changed: 60 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -3,36 +3,74 @@
33
"version": "0.5.5",
44
"author": "Tobias Koppers @sokra",
55
"description": "html loader module for webpack",
6-
"license": "MIT",
7-
"main": "index.js",
6+
"main": "dist/cjs.js",
87
"files": [
9-
"lib"
8+
"dist"
109
],
1110
"scripts": {
12-
"lint": "eslint lib test",
13-
"pretest": "npm run lint",
14-
"test": "mocha --harmony --full-trace --check-leaks",
15-
"cover": "istanbul cover -x *.runtime.js node_modules/mocha/bin/_mocha",
16-
"release": "standard-version"
11+
"start": "npm run build -- -w",
12+
"build": "cross-env NODE_ENV=production babel src -d dist --ignore 'src/**/*.test.js'",
13+
"clean": "del-cli dist",
14+
"clean:dist": "del-cli dist",
15+
"lint": "eslint --cache src test",
16+
"lint-staged": "lint-staged",
17+
"prebuild": "npm run clean",
18+
"prepublish": "npm run build",
19+
"release": "standard-version",
20+
"security": "nsp check",
21+
"serve:dev": "nodemon $2 --exec babel-node",
22+
"test": "jest",
23+
"test:watch": "jest --watch",
24+
"test:coverage": "jest --collectCoverageFrom='src/**/*.js' --coverage",
25+
"travis:coverage": "npm run test:coverage -- --runInBand",
26+
"travis:lint": "npm run lint && npm run security",
27+
"travis:test": "npm run test -- --runInBand",
28+
"webpack-defaults": "webpack-defaults",
29+
"appveyor:test": "npm run test"
1730
},
1831
"dependencies": {
1932
"es6-templates": "^0.2.3",
2033
"fastparse": "^1.1.1",
21-
"html-minifier": "^3.5.8",
22-
"loader-utils": "^1.1.0",
23-
"object-assign": "^4.1.1"
34+
"html-minifier": "^3.0.1",
35+
"loader-utils": "^1.0.2",
36+
"object-assign": "^4.1.0",
37+
"schema-utils": "^0.4.2"
2438
},
2539
"devDependencies": {
26-
"beautify-lint": "^1.0.4",
27-
"codecov.io": "^0.1.6",
28-
"eslint": "^3.1.1",
29-
"istanbul": "^0.4.5",
30-
"js-beautify": "^1.6.3",
31-
"mocha": "^2.5.3",
32-
"should": "^10.0.0",
33-
"standard-version": "^4.3.0"
40+
"babel-cli": "^6.26.0",
41+
"babel-jest": "^21.2.0",
42+
"babel-plugin-transform-object-rest-spread": "^6.26.0",
43+
"babel-polyfill": "^6.26.0",
44+
"babel-preset-env": "^1.6.1",
45+
"cross-env": "^5.1.1",
46+
"del-cli": "^1.1.0",
47+
"eslint": "^4.12.1",
48+
"eslint-config-webpack": "^1.2.5",
49+
"eslint-plugin-import": "^2.8.0",
50+
"jest": "^21.2.1",
51+
"lint-staged": "^6.0.0",
52+
"nsp": "^3.1.0",
53+
"pre-commit": "^1.2.2",
54+
"standard-version": "^4.2.0",
55+
"webpack": "^3.10.0",
56+
"webpack-defaults": "^1.6.0"
3457
},
35-
"homepage": "https://github.com/webpack-contrib/html-loader",
36-
"repository": "https://github.com/webpack-contrib/html-loader.git",
37-
"bugs": "https://github.com/webpack-contrib/html-loader/issues"
58+
"peerDependencies": {
59+
"webpack": "^3.0.0 || ^4.0.0-alpha.0 || ^4.0.0"
60+
},
61+
"engines": {
62+
"node": ">= 6.9.0 || >= 8.9.0"
63+
},
64+
"homepage": "http://github.com/webpack-contrib/html-loader",
65+
"repository": {
66+
"type": "git",
67+
"url": "git@github.com:webpack/html-loader.git"
68+
},
69+
"pre-commit": "lint-staged",
70+
"lint-staged": {
71+
"*.js": [
72+
"eslint --fix",
73+
"git add"
74+
]
75+
}
3876
}

0 commit comments

Comments
 (0)