Skip to content

Commit

Permalink
chore: move node related files for static folder
Browse files Browse the repository at this point in the history
  • Loading branch information
lepture committed Jun 3, 2023
1 parent dfc41c7 commit 04b0a5a
Show file tree
Hide file tree
Showing 6 changed files with 11 additions and 4 deletions.
3 changes: 3 additions & 0 deletions .github/workflows/docs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,10 @@ jobs:
node-version: 18

- run: npm ci
working-directory: static

- run: npm run build
working-directory: static

- uses: actions/setup-python@v4
with:
Expand Down
4 changes: 4 additions & 0 deletions .github/workflows/pypi.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,8 +18,12 @@ jobs:
- uses: actions/setup-node@v3
with:
node-version: 18

- run: npm ci
working-directory: static

- run: npm run build
working-directory: static

- uses: actions/setup-python@v4
with:
Expand Down
2 changes: 1 addition & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -5,4 +5,4 @@ build-icons:
node scripts/genicons.js

build-static:
npm run build
cd static && npm run build
File renamed without changes.
4 changes: 2 additions & 2 deletions package.json → static/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@
"name": "shibuya",
"private": true,
"scripts": {
"build:js": "esbuild static/index.js --bundle --outfile=src/shibuya/theme/shibuya/static/shibuya.js",
"build:css": "npx tailwindcss -i ./static/index.css -o src/shibuya/theme/shibuya/static/shibuya.css",
"build:js": "esbuild index.js --bundle --outfile=../src/shibuya/theme/shibuya/static/shibuya.js",
"build:css": "npx tailwindcss -i index.css -o ../src/shibuya/theme/shibuya/static/shibuya.css",
"build": "npm run build:js -- --minify && npm run build:css -- --minify",
"dev:js": "npm run build:js -- --watch",
"dev:css": "npm run build:css -- --watch"
Expand Down
2 changes: 1 addition & 1 deletion tailwind.config.js → static/tailwind.config.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
/** @type {import('tailwindcss').Config} */
module.exports = {
darkMode: ['class'],
content: ["./src/shibuya/theme/**/*.html"],
content: ["../src/shibuya/theme/**/*.html"],
theme: {
extend: {}
},
Expand Down

0 comments on commit 04b0a5a

Please sign in to comment.