Skip to content

Commit

Permalink
Improve linting and minification scripts
Browse files Browse the repository at this point in the history
  • Loading branch information
dabico committed Mar 26, 2024
1 parent d9e585a commit 1ba5c37
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 9 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/eslint.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,4 +19,4 @@ jobs:
- name: Install Dependencies
run: npm ci
- name: Run ESLint
run: npm run lint-js
run: npm run lint:js
2 changes: 1 addition & 1 deletion .github/workflows/markdownlint.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,4 +19,4 @@ jobs:
- name: Install Dependencies
run: npm ci
- name: Run markdownlint
run: npm run lint-md
run: npm run lint:md
2 changes: 1 addition & 1 deletion .github/workflows/stylelint.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,4 +19,4 @@ jobs:
- name: Install Dependencies
run: npm ci
- name: Run Stylelint
run: npm run lint-css
run: npm run lint:css
12 changes: 6 additions & 6 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,12 +6,12 @@
"main": "index.js",
"type": "module",
"scripts": {
"lint": "npm-run-all lint-js lint-css lint-md",
"lint-js": "eslint routes/* util/*",
"lint-css": "stylelint stylelint public/css/*.css",
"lint-md": "markdownlint *.md",
"minify": "npm-run-all minify-css",
"minify-css": "cleancss --batch --batch-suffix '' public/css/*.css",
"lint": "npm-run-all --parallel lint:*",
"lint:js": "eslint routes/* util/*",
"lint:css": "stylelint stylelint public/css/*.css",
"lint:md": "markdownlint *.md",
"minify": "npm-run-all --parallel minify:*",
"minify:css": "cleancss --batch --batch-suffix '' public/css/*.css",
"start": "NODE_ENV=production node index.js",
"dev": "nodemon index.js"
},
Expand Down

0 comments on commit 1ba5c37

Please sign in to comment.