Skip to content

Commit 52a11fb

Browse files
committed
chore: update package details and build process
- Update version to 2.7.2 - Change license from AGPL-3.0 to GPL-3.0 - Simplify npm scripts in package.json - Add CSS build step to npm publish workflow - Update styles.css with new height classes
1 parent df5effc commit 52a11fb

File tree

4 files changed

+14
-22
lines changed

4 files changed

+14
-22
lines changed

.github/workflows/npm-publish.yml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,10 @@ jobs:
1919
node-version: '20.x'
2020
registry-url: https://registry.npmjs.org/
2121

22+
- run: npm ci
23+
24+
- run: npm run build:css
25+
2226
- run: npm publish
2327
env:
2428
NODE_AUTH_TOKEN: ${{secrets.NPM_TOKEN}}

package-lock.json

Lines changed: 3 additions & 3 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 3 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,10 @@
11
{
22
"name": "hexo-theme-redefine",
3-
"version": "2.7.1",
3+
"version": "2.7.2",
44
"private": false,
55
"description": "Redefine your writing with Hexo Theme Redefine.",
66
"scripts": {
7-
"npm:publish": "npm publish",
8-
"format": "prettier --write ./source/js/*.js ./scripts",
9-
"lint:style": "stylelint --fix ./source/css",
10-
"git:push": "git push --tag && git push -u origin dev",
11-
"git:add": "npm run lint:style && git add .",
7+
"npm:publish": "tailwindcss build -i source/css/style.styl -o source/assets/build/styles.css && npm publish",
128
"build:css": "tailwindcss build -i source/css/style.styl -o source/assets/build/styles.css",
139
"watch:css": "tailwindcss build -i source/css/style.styl -o source/assets/build/styles.css --watch"
1410
},
@@ -26,7 +22,7 @@
2622
"hexo-theme"
2723
],
2824
"author": "EvanNotFound",
29-
"license": "AGPL-3.0",
25+
"license": "GPL-3.0",
3026
"bugs": {
3127
"url": "https://github.com/EvanNotFound/hexo-theme-redefine/issues"
3228
},

source/assets/build/styles.css

Lines changed: 4 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -886,24 +886,16 @@ video {
886886
height: auto;
887887
}
888888

889-
.h-full {
890-
height: 100%;
891-
}
892-
893-
.h-screen {
894-
height: 100vh;
895-
}
896-
897889
.h-dvh {
898890
height: 100dvh;
899891
}
900892

901-
.min-h-\[100svh\] {
902-
min-height: 100svh;
893+
.h-full {
894+
height: 100%;
903895
}
904896

905-
.min-h-svh {
906-
min-height: 100svh;
897+
.h-screen {
898+
height: 100vh;
907899
}
908900

909901
.min-h-dvh {

0 commit comments

Comments
 (0)