diff --git a/Gruntfile.js b/Gruntfile.js index f941ed3dd..48a48768d 100644 --- a/Gruntfile.js +++ b/Gruntfile.js @@ -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: { diff --git a/package.json b/package.json index 132fe4902..646721516 100644 --- a/package.json +++ b/package.json @@ -8,6 +8,9 @@ "engines": { "node": ">=10" }, + "scripts": { + "test": "npx grunt lint" + }, "devDependencies": { "css": "2.2.3", "css-mediaquery": "0.1.2", @@ -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" } }