Skip to content

Commit 90de8d6

Browse files
committed
build: change build system and update depDev
1 parent 5226efe commit 90de8d6

File tree

1 file changed

+66
-63
lines changed

1 file changed

+66
-63
lines changed

package.json

Lines changed: 66 additions & 63 deletions
Original file line numberDiff line numberDiff line change
@@ -16,20 +16,14 @@
1616
"node": ">=4"
1717
},
1818
"scripts": {
19-
"commitmsg": "conventional-changelog-lint -e",
20-
"postpublish": "conventional-changelog -i changelog.md -s -r 0 && git commit -am \"chore(changelog): Update changelog\"",
21-
"patch": "np patch --any-branch",
22-
"minor": "np minor --any-branch",
23-
"major": "np major --any-branch",
24-
"clean": "rm -rf lib && mkdir lib",
25-
"build": "npm run clean && babel src/ -d lib/",
26-
"prepublish": "npm run build",
27-
"lintjs": "eslint ./src/*.js ./test/*.js",
28-
"lintmd": "eslint --ext md --rule indent: [error, 4] .",
29-
"pretest": "clinton && npm run lintjs && npm run lintmd",
19+
"version": "conventional-changelog -i changelog.md -s -r 0 && git commit -am \"build: update changelog\"",
20+
"prepare": "npm run build",
21+
"build": "rimraf lib && babel src -d lib",
3022
"test": "nyc ava",
31-
"update": "updtr && ava-codemods --force",
32-
"testen": "testen -n -- ava"
23+
"lintjs": "eslint ./src/*.js ./test/*.js --fix",
24+
"lintmd": "eslint *.md --fix",
25+
"pretest": "clinton && npm run lintjs && npm run lintmd",
26+
"update": "updtr && ava-codemods --force"
3327
},
3428
"files": [
3529
"lib/"
@@ -41,79 +35,92 @@
4135
"css"
4236
],
4337
"dependencies": {
44-
"postcss": "^5.2.17"
38+
"postcss": "^7.0.14"
4539
},
4640
"devDependencies": {
41+
"@babel/cli": "^7.2.3",
42+
"@babel/core": "^7.2.2",
43+
"@babel/preset-env": "^7.3.1",
44+
"@babel/register": "^7.0.0",
45+
"@commitlint/cli": "^7.4.0",
46+
"@commitlint/config-angular": "^7.3.1",
4747
"ava": "*",
48-
"babel-cli": "^6.24.1",
49-
"ava-codemods": "^0.3.2",
50-
"babel-eslint": "^7.2.2",
51-
"babel-plugin-add-module-exports": "^0.2.1",
52-
"babel-preset-babili": "^0.1.2",
53-
"babel-preset-env": "^1.3.2",
54-
"babel-register": "^6.24.1",
55-
"clinton": "^0.12.0",
56-
"conventional-changelog-cli": "^1.3.1",
57-
"coveralls": "^2.13.0",
58-
"conventional-changelog-lint": "^1.1.8",
59-
"eslint": "^3.19.0",
60-
"eslint-config-xo": "^0.18.2",
61-
"eslint-formatter-pretty": "^1.0.0",
62-
"eslint-plugin-ava": "^4.2.0",
63-
"eslint-plugin-babel": "^4.1.1",
64-
"eslint-plugin-markdown": "^1.0.0-beta.4",
48+
"babel-eslint": "^10.0.1",
49+
"babel-plugin-add-module-exports": "^1.0.0",
50+
"babel-preset-minify": "^0.5.0",
51+
"clinton": "^0.14.0",
52+
"conventional-changelog-cli": "^2.0.12",
53+
"coveralls": "^3.0.3",
54+
"eslint": "^5.12.1",
55+
"eslint-config-xo": "^0.26.0",
56+
"eslint-config-xo-space": "^0.21.0",
57+
"eslint-plugin-ava": "^6.0.0",
58+
"eslint-plugin-babel": "^5.3.0",
59+
"eslint-plugin-dependencies": "^2.4.0",
60+
"eslint-plugin-html": "^5.0.0",
61+
"eslint-plugin-markdown": "^1.0.0",
6562
"eslint-plugin-require-path-exists": "^1.1.5",
66-
"eslint-plugin-xo": "^1.0.0",
67-
"husky": "^0.13.4",
68-
"np": "^2.13.2",
69-
"nyc": "^10.2.0",
70-
"testen": "^2.2.0",
71-
"updtr": "^0.2.3"
63+
"eslint-plugin-unicorn": "^8.0.1",
64+
"husky": "^1.3.1",
65+
"lint-staged": "^8.1.1",
66+
"nyc": "^13.1.0",
67+
"rimraf": "^2.6.3"
68+
},
69+
"husky": {
70+
"hooks": {
71+
"pre-push": "npm t",
72+
"pre-commit": "clinton && lint-staged",
73+
"commit-msg": "commitlint --extends=@commitlint/config-angular -e"
74+
}
75+
},
76+
"lint-staged": {
77+
"{src,test}/**/*.js": "eslint",
78+
"*.md": "eslint"
7279
},
73-
"testen": {
74-
"node": [
75-
"4",
76-
"5",
77-
"6",
78-
"7"
80+
"ava": {
81+
"require": [
82+
"@babel/register"
7983
]
8084
},
8185
"babel": {
8286
"presets": [
8387
[
84-
"env",
88+
"@babel/preset-env",
8589
{
8690
"targets": {
8791
"node": 4
8892
}
8993
}
9094
],
91-
"babili"
95+
[
96+
"minify",
97+
{
98+
"removeUndefined": false,
99+
"mangle": false
100+
}
101+
]
92102
],
93103
"plugins": [
94104
"add-module-exports"
95105
]
96106
},
97-
"ava": {
98-
"require": [
99-
"babel-register"
100-
]
101-
},
102107
"eslintConfig": {
103-
"format": "node_modules/eslint-formatter-pretty",
104108
"parser": "babel-eslint",
105109
"plugins": [
106-
"ava",
107-
"xo",
110+
"dependencies",
111+
"html",
112+
"unicorn",
108113
"babel",
109-
"require-path-exists",
110114
"markdown"
111115
],
112116
"extends": [
117+
"plugin:unicorn/recommended",
113118
"xo",
114-
"plugin:xo/recommended",
115-
"plugin:ava/recommended"
116-
]
119+
"xo-space"
120+
],
121+
"rules": {
122+
"capitalized-comments": "off"
123+
}
117124
},
118125
"clinton": {
119126
"ignores": [
@@ -123,12 +130,8 @@
123130
"*.{html,jpg}"
124131
],
125132
"rules": {
126-
"pkg-main": [
127-
"off"
128-
],
129-
"xo": [
130-
"off"
131-
]
133+
"pkg-main": "off",
134+
"xo": "off"
132135
}
133136
}
134137
}

0 commit comments

Comments
 (0)