Skip to content

Commit

Permalink
Tools: Rework grunt tasks, use 'ver' for version bumps
Browse files Browse the repository at this point in the history
  • Loading branch information
silverwind committed Sep 5, 2018
1 parent d1fd8c6 commit 41f99b5
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 15 deletions.
14 changes: 7 additions & 7 deletions Gruntfile.js
Original file line number Diff line number Diff line change
Expand Up @@ -280,15 +280,15 @@ module.exports = function(grunt) {
exec: {
add: "git add github-dark.css github-dark.user.css",
authors: "bash tools/authors.sh",
eslint: "npm -s run eslint",
eslint: "npx eslint --quiet --color *.js tools/*.js",
generate: "node tools/generate",
imagemin: "bash tools/imagemin.sh",
major: "npm version -f major",
minor: "npm version -f minor",
patch: "npm version -f patch",
perfectionist: "npm run perfectionist --silent -- github-dark.css github-dark.css --indentSize 2 --maxAtRuleLength 250",
stylelint: "npm -s run stylelint",
update: "npm -s run update",
patch: "npx ver -cp patch",
minor: "npx ver -cp minor",
major: "npx ver -cp major",
perfectionist: "npx perfectionist --silent -- github-dark.css github-dark.css --indentSize 2 --maxAtRuleLength 250",
stylelint: "npx stylelint --silent --color -- github-dark.css themes/**/*.css",
update: "npx updates -cu && npm install",
usercss: "node tools/build-usercss",
},
cssmin: {
Expand Down
13 changes: 5 additions & 8 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,9 @@
"engines": {
"node": ">=10"
},
"scripts": {
"test": "npx grunt lint"
},
"devDependencies": {
"css": "2.2.3",
"css-mediaquery": "0.1.2",
Expand All @@ -28,13 +31,7 @@
"stylelint": "9.5.0",
"stylelint-config-standard": "18.2.0",
"updates": "4.2.3",
"url-toolkit": "2.1.6"
},
"scripts": {
"eslint": "eslint --quiet --color *.js tools/*.js",
"stylelint": "stylelint --silent --color -- github-dark.css themes/**/*.css",
"perfectionist": "perfectionist",
"test": "npm run eslint && npm run stylelint",
"update": "updates -cu && npm install"
"url-toolkit": "2.1.6",
"ver": "^1.1.1"
}
}

0 comments on commit 41f99b5

Please sign in to comment.