Skip to content

Commit 41f99b5

Browse files
committed
Tools: Rework grunt tasks, use 'ver' for version bumps
1 parent d1fd8c6 commit 41f99b5

File tree

2 files changed

+12
-15
lines changed

2 files changed

+12
-15
lines changed

Gruntfile.js

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -280,15 +280,15 @@ module.exports = function(grunt) {
280280
exec: {
281281
add: "git add github-dark.css github-dark.user.css",
282282
authors: "bash tools/authors.sh",
283-
eslint: "npm -s run eslint",
283+
eslint: "npx eslint --quiet --color *.js tools/*.js",
284284
generate: "node tools/generate",
285285
imagemin: "bash tools/imagemin.sh",
286-
major: "npm version -f major",
287-
minor: "npm version -f minor",
288-
patch: "npm version -f patch",
289-
perfectionist: "npm run perfectionist --silent -- github-dark.css github-dark.css --indentSize 2 --maxAtRuleLength 250",
290-
stylelint: "npm -s run stylelint",
291-
update: "npm -s run update",
286+
patch: "npx ver -cp patch",
287+
minor: "npx ver -cp minor",
288+
major: "npx ver -cp major",
289+
perfectionist: "npx perfectionist --silent -- github-dark.css github-dark.css --indentSize 2 --maxAtRuleLength 250",
290+
stylelint: "npx stylelint --silent --color -- github-dark.css themes/**/*.css",
291+
update: "npx updates -cu && npm install",
292292
usercss: "node tools/build-usercss",
293293
},
294294
cssmin: {

package.json

Lines changed: 5 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,9 @@
88
"engines": {
99
"node": ">=10"
1010
},
11+
"scripts": {
12+
"test": "npx grunt lint"
13+
},
1114
"devDependencies": {
1215
"css": "2.2.3",
1316
"css-mediaquery": "0.1.2",
@@ -28,13 +31,7 @@
2831
"stylelint": "9.5.0",
2932
"stylelint-config-standard": "18.2.0",
3033
"updates": "4.2.3",
31-
"url-toolkit": "2.1.6"
32-
},
33-
"scripts": {
34-
"eslint": "eslint --quiet --color *.js tools/*.js",
35-
"stylelint": "stylelint --silent --color -- github-dark.css themes/**/*.css",
36-
"perfectionist": "perfectionist",
37-
"test": "npm run eslint && npm run stylelint",
38-
"update": "updates -cu && npm install"
34+
"url-toolkit": "2.1.6",
35+
"ver": "^1.1.1"
3936
}
4037
}

0 commit comments

Comments
 (0)