Skip to content

Commit

Permalink
Rename npm scripts
Browse files Browse the repository at this point in the history
  • Loading branch information
adamlaki committed Jul 4, 2022
1 parent 457a1fc commit 0445b87
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 11 deletions.
6 changes: 3 additions & 3 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,9 +16,9 @@ jobs:
- uses: actions/setup-node@v2
with:
node-version: 'lts/*'

- name: Install dependencies
run: npm install

- name: Run linter
run: npm run sass-lint
run: npm run sass:lint
16 changes: 8 additions & 8 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -24,15 +24,15 @@
"scripts": {
"autoprefixer": "postcss css/*.css -u autoprefixer --replace --no-map",
"browser-sync": "browser-sync start --server --startPath \"preview/html/page/color.html\" --files \"**/*\" --directory --no-notify --no-open",
"delete-dev-folder": "del-cli --force css",
"dev": "npm-run-all --parallel pug sass-compile-preview browser-sync",
"prod": "npm-run-all delete-dev-folder sass-compile-prod-expanded sass-compile-prod-compressed autoprefixer",
"delete:dev-folder": "del-cli --force css",
"prod": "npm-run-all delete:dev-folder sass:prod:expanded sass:prod:compressed autoprefixer",
"pug": "pug --obj preview/pug/assets/data.json --watch preview/pug/ --out preview/html/ --pretty",
"sass-compile-preview": "sass --watch --update --style=expanded --no-source-map preview/assets/scss:preview/assets/css --load-path=scss",
"sass-compile-prod-expanded": "sass --no-source-map --style=expanded scss/spruce-styles.scss:css/spruce.css",
"sass-compile-prod-compressed": "sass --no-source-map --style=compressed scss/spruce-styles.scss:css/spruce.min.css",
"sass-lint": "stylelint scss/**/*.scss",
"sass-lint-with-fix": "stylelint scss/**/*.scss --fix"
"sass:preview": "sass --watch --update --style=expanded --no-source-map preview/assets/scss:preview/assets/css --load-path=scss",
"sass:prod:expanded": "sass --no-source-map --style=expanded scss/spruce-styles.scss:css/spruce.css",
"sass:prod:compressed": "sass --no-source-map --style=compressed scss/spruce-styles.scss:css/spruce.min.css",
"sass:lint": "stylelint scss/**/*.scss",
"sass:lint:with-fix": "stylelint scss/**/*.scss --fix",
"start": "npm-run-all --parallel pug sass:preview browser-sync"
},
"license": "MIT",
"devDependencies": {
Expand Down

0 comments on commit 0445b87

Please sign in to comment.