Skip to content

Commit 1f47da8

Browse files
committed
feat: add webpack 3 support
1 parent 54ce906 commit 1f47da8

File tree

4 files changed

+20
-7
lines changed

4 files changed

+20
-7
lines changed

.gitignore

+3
Original file line numberDiff line numberDiff line change
@@ -13,3 +13,6 @@
1313
/.idea
1414
/test/runtime/*
1515
/perf/dist/*
16+
17+
18+
.justconf

.npmignore

+3
Original file line numberDiff line numberDiff line change
@@ -13,3 +13,6 @@ lib-cov
1313
/test/
1414
/.idea
1515
/perf/
16+
17+
18+
.justconf

lib/index.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
'use strict'
22

33
const path = require('path')
4-
const fs = require('fs-promise')
4+
const fs = require('fs-extra')
55
const preview = require('cli-source-preview')
66
const replaceAsync = require('./replace')
77
const co = require('co')

package.json

+13-6
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
"lint": "standard --fix && npm-ensure -t deps",
88
"test": "npm run lint && npm run test-local",
99
"test-local": "mocha test/**/*.test.js",
10-
"test-cov": "istanbul cover _mocha --report lcov -- test/**/*.test.js",
10+
"test-cov": "nyc npm run test-local",
1111
"test-report": "cat ./coverage/lcov.info | ./node_modules/coveralls/bin/coveralls.js && rm -rf ./coverage",
1212
"ci": "npm run lint && npm run test-cov && npm run test-report",
1313
"release": "npm test && npm-ensure -t changelog && git release $npm_package_version && npm publish",
@@ -20,6 +20,13 @@
2020
]
2121
}
2222
},
23+
"nyc": {
24+
"reporter": [
25+
"text",
26+
"json",
27+
"lcov"
28+
]
29+
},
2330
"standard": {
2431
"global": [
2532
"describe",
@@ -36,7 +43,7 @@
3643
"async": "^2.0.1",
3744
"cli-source-preview": "^1.0.0",
3845
"co": "^4.6.0",
39-
"fs-promise": "^0.5.0",
46+
"fs-extra": "3.x",
4047
"loader-utils": "^1.1.0"
4148
},
4249
"peerDependencies": {
@@ -46,17 +53,17 @@
4653
"devDependencies": {
4754
"coveralls": "^2.12.0",
4855
"css-loader": "^0.23.1",
49-
"extract-text-webpack-plugin": "^2.0.0",
56+
"extract-text-webpack-plugin": "^3.0.0",
5057
"file-loader": "^0.9.0",
51-
"husky": "^0.13.2",
52-
"istanbul": "^0.4.5",
58+
"husky": "*",
59+
"nyc": "*",
5360
"mocha": "^3.2.0",
5461
"node-sass": "^4.0.0",
5562
"npm-ensure": "^1.1.0",
5663
"raw-loader": "^0.5.1",
5764
"rimraf": "^2.6.1",
5865
"sass-loader": "^6.0.3",
59-
"standard": "^9.0.2",
66+
"standard": "*",
6067
"webpack": "1.x || 2.x || 3.x"
6168
},
6269
"repository": {

0 commit comments

Comments
 (0)