Skip to content

Commit 597ea51

Browse files
committed
[2.0.0] Drop node 6 support (#13)
1 parent 4cdf7c2 commit 597ea51

File tree

16 files changed

+3987
-4761
lines changed

16 files changed

+3987
-4761
lines changed

.babelrc

-13
This file was deleted.

.editorconfig

+2-6
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,12 @@
11
root = true
22

33
[*]
4-
indent_style = tab
5-
indent_size = 4
4+
indent_style = space
5+
indent_size = 2
66
charset = utf-8
77
trim_trailing_whitespace = true
88
insert_final_newline = true
99
max_line_length = 233
1010

11-
[*.{yml,yaml,json}]
12-
indent_style = space
13-
indent_size = 2
14-
1511
[*.md]
1612
trim_trailing_whitespace = false

CHANGELOG.md

+4
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,10 @@
22

33
This project adheres to [Semantic Versioning](http://semver.org/).
44

5+
## 2.0.0
6+
7+
- Drop support node v6
8+
59
## 1.1.0
610

711
- Update babel to latest version

babel.config.js

+13
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
module.exports = {
2+
presets: [
3+
[
4+
"@babel/preset-env",
5+
{
6+
targets: {
7+
node: "8.9.0"
8+
}
9+
}
10+
]
11+
],
12+
plugins: ["babel-plugin-add-module-exports"]
13+
};

package.json

+19-21
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
11
{
22
"name": "clean-css-loader",
3-
"version": "1.1.0",
3+
"version": "2.0.0",
44
"main": "lib/index.js",
55
"dependencies": {
66
"clean-css": "^4.2.1",
7-
"loader-utils": "^1.1.0"
7+
"loader-utils": "^1.2.3"
88
},
99
"peerDependencies": {
1010
"webpack": "^1.0.0 || ^2.0.0 || ^3.0.0 || ^4.0.0"
@@ -16,7 +16,6 @@
1616
"update-e2e": "yarn force-clean && yarn install-sub",
1717
"prebuild": "rimraf ./lib",
1818
"build": "babel src --out-dir lib",
19-
"format": "prettier \".babelrc\" \"test/unit/*.js\" \"src/*.js\" \"./*.js\" --write",
2019
"pretest": "yarn build",
2120
"test": "jest",
2221
"precommit": "lint-staged"
@@ -34,26 +33,25 @@
3433
"lib"
3534
],
3635
"engines": {
37-
"node": ">=6.11.0"
36+
"node": ">=8.0.0"
3837
},
3938
"devDependencies": {
40-
"@babel/cli": "^7.0.0",
41-
"@babel/core": "^7.1.0",
42-
"@babel/preset-env": "^7.0.0",
43-
"babel-core": "^7.0.0-bridge.0",
44-
"babel-eslint": "^9.0.0",
45-
"babel-jest": "^23.6.0",
46-
"babel-plugin-add-module-exports": "^1.0.0",
47-
"eslint": "^5.6.0",
48-
"eslint-config-prettier": "^3.1.0",
39+
"@babel/cli": "^7.4.4",
40+
"@babel/core": "^7.4.4",
41+
"@babel/preset-env": "^7.4.4",
42+
"babel-eslint": "^10.0.1",
43+
"babel-jest": "^24.8.0",
44+
"babel-plugin-add-module-exports": "^1.0.2",
45+
"eslint": "^5.16.0",
46+
"eslint-config-prettier": "^4.2.0",
4947
"eslint-config-webpack": "^1.2.5",
50-
"eslint-plugin-import": "^2.14.0",
51-
"eslint-plugin-prettier": "^2.6.2",
52-
"husky": "^1.0.0-rc.14",
53-
"jest": "^23.6.0",
54-
"lint-staged": "^7.3.0",
55-
"npm-run-all": "^4.1.3",
56-
"prettier": "^1.14.3",
57-
"rimraf": "^2.6.1"
48+
"eslint-plugin-import": "^2.17.2",
49+
"eslint-plugin-prettier": "^3.0.1",
50+
"husky": "^2.2.0",
51+
"jest": "^24.8.0",
52+
"lint-staged": "^8.1.6",
53+
"npm-run-all": "^4.1.5",
54+
"prettier": "^1.17.0",
55+
"rimraf": "^2.6.3"
5856
}
5957
}

test/e2e/webpack1/package.json

+12-12
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,14 @@
11
{
2-
"name": "webpack1",
3-
"version": "1.0.0",
4-
"main": "index.js",
5-
"license": "MIT",
6-
"scripts": {
7-
"build": "webpack --config webpack.config.js --target node"
8-
},
9-
"devDependencies": {
10-
"css-loader": "0.14.0",
11-
"raw-loader": "0.5.1",
12-
"webpack": "1.15.0"
13-
}
2+
"name": "webpack1",
3+
"version": "1.0.0",
4+
"main": "index.js",
5+
"license": "MIT",
6+
"scripts": {
7+
"build": "webpack --config webpack.config.js --target node"
8+
},
9+
"devDependencies": {
10+
"css-loader": "0.28.11",
11+
"raw-loader": "0.5.1",
12+
"webpack": "1.15.0"
13+
}
1414
}

0 commit comments

Comments
 (0)