Skip to content

Commit

Permalink
chore: refactor run scripts
Browse files Browse the repository at this point in the history
  • Loading branch information
TrebledJ committed Nov 2, 2023
1 parent 411c168 commit eeaee14
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 9 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,7 @@ jobs:
run: ${{ steps.detect-package-manager.outputs.manager }} ${{ steps.detect-package-manager.outputs.command }}

- name: Build
run: ${{ steps.detect-package-manager.outputs.manager }} run build-ghpages
run: ${{ steps.detect-package-manager.outputs.manager }} run prod

- name: Commit & Push Site Build
uses: stefanzweifel/git-auto-commit-action@v5
Expand Down
15 changes: 7 additions & 8 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,20 +3,19 @@
"version": "2.0.0",
"description": "TrebledJ's personal blog on programming, music, and memes.",
"scripts": {
"build-ghpages": "ENVIRONMENT=production npm run build",
"debug": "DEBUG=Eleventy* npx @11ty/eleventy",
"debugstart": "DEBUG=Eleventy* npx @11ty/eleventy --serve --quiet",
"benchmark": "DEBUG=Eleventy:Benchmark* npx @11ty/eleventy",
"check-links": "lychee --base https://trebledj.github.io --no-progress --accept '200,201,202,203,204,403,429' --include-verbatim --exclude-mail --exclude-path _site/404.html _site",
"rake": "cd eleventy/detail/rake-js && npm install --ignore-scripts && npm run build",
"watch:sass": "sass --watch assets/scss:_site/css --quiet",
"build-dev:sass": "sass assets/scss:_site/css",
"build:sass": "sass --style=compressed assets/scss:_site/css && cleancss --batch --batch-suffix '.min' -O2 _site/css/*.css !_site/css/*.min.css",
"dev:sass": "sass assets/scss:_site/css",
"prod:sass": "sass --style=compressed assets/scss:_site/css && cleancss --batch --batch-suffix '.min' -O2 _site/css/*.css !_site/css/*.min.css",
"watch:eleventy": "eleventy --serve --quiet",
"build:eleventy": "eleventy",
"dont-build:rake": "cd eleventy/detail/rake-js && npm install --ignore-scripts && npm run build",
"start": "npm-run-all build-dev:sass --parallel watch:*",
"fast": "ENVIRONMENT=fast npm-run-all build-dev:sass --parallel watch:*",
"build": "npm-run-all --parallel build:*"
"prod:eleventy": "eleventy",
"dev": "npm-run-all dev:sass --parallel watch:*",
"fast": "ENVIRONMENT=fast npm-run-all dev:sass --parallel watch:*",
"prod": "ENVIRONMENT=production npm-run-all --parallel prod:*"
},
"repository": {
"type": "git",
Expand Down

0 comments on commit eeaee14

Please sign in to comment.