Skip to content

Commit 514727f

Browse files
committed
Refactor metadata
1 parent a2fb9b3 commit 514727f

File tree

5 files changed

+50
-53
lines changed

5 files changed

+50
-53
lines changed

.editorconfig

+4-4
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
11
root = true
22

33
[*]
4-
indent_style = space
5-
indent_size = 2
6-
end_of_line = lf
74
charset = utf-8
8-
trim_trailing_whitespace = true
5+
end_of_line = lf
6+
indent_size = 2
7+
indent_style = space
98
insert_final_newline = true
9+
trim_trailing_whitespace = true

.github/workflows/main.yml

+14-18
Original file line numberDiff line numberDiff line change
@@ -1,27 +1,23 @@
1-
name: main
2-
on:
3-
push:
4-
branches:
5-
- website
61
jobs:
72
main:
83
runs-on: ubuntu-latest
94
steps:
10-
- uses: actions/checkout@v2
11-
with:
12-
persist-credentials: false
13-
- uses: dcodeIO/setup-node-nvm@master
5+
- uses: actions/checkout@v4
6+
- uses: actions/setup-node@v4
147
with:
158
node-version: node
169
- run: npm install
1710
- run: npm test
18-
- name: Deploy
19-
uses: JamesIves/[email protected]
11+
- uses: JamesIves/github-pages-deploy-action@releases/v4
2012
with:
21-
GITHUB_TOKEN: ${{secrets.GITHUB_TOKEN}}
22-
BRANCH: gh-pages
23-
FOLDER: dest
24-
SINGLE_COMMIT: true
25-
COMMIT_MESSAGE: .
26-
GIT_CONFIG_NAME: Titus Wormer
27-
GIT_CONFIG_EMAIL: [email protected]
13+
branch: gh-pages
14+
commit-message: .
15+
folder: dest
16+
git-config-email: [email protected]
17+
git-config-name: Titus Wormer
18+
single-commit: true
19+
name: main
20+
on:
21+
push:
22+
branches:
23+
- website

.gitignore

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
1+
dest/
2+
node_modules/
13
.DS_Store
24
*.log
35
yarn.lock
4-
dest/
5-
node_modules/

.npmrc

+1
Original file line numberDiff line numberDiff line change
@@ -1 +1,2 @@
1+
ignore-scripts=true
12
package-lock=false

package.json

+29-29
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,11 @@
11
{
2-
"name": "www-remark",
3-
"private": true,
4-
"license": "MIT",
5-
"repository": "remarkjs/remark",
6-
"bugs": "https://github.com/remarkjs/remark/issues",
72
"author": "Titus Wormer <[email protected]> (https://wooorm.com)",
3+
"browserslist": [
4+
"> 1%",
5+
"last 2 versions",
6+
"not ie <= 8"
7+
],
8+
"bugs": "https://github.com/remarkjs/remark/issues",
89
"contributors": [
910
"Titus Wormer <[email protected]> (https://wooorm.com)"
1011
],
@@ -24,24 +25,8 @@
2425
"stylelint": "^13.0.0",
2526
"stylelint-config-standard": "^22.0.0"
2627
},
27-
"scripts": {
28-
"format": "remark . -qfo && stylelint src/index.css --fix",
29-
"build:css": "postcss src/index.css -o dest/index.css",
30-
"build:html": "rehype src -o dest",
31-
"build:theme": "cp node_modules/highlight.js/styles/github.css dest/day.css && cp node_modules/highlight.js/styles/nord.css dest/night.css",
32-
"build:asset": "cp -r src/CNAME dest",
33-
"build:img": "imagemin src/*.jpg -p jpegtran --out-dir dest",
34-
"build": "npm run build:css && npm run build:html && npm run build:theme && npm run build:asset && npm run build:img",
35-
"test": "npm run format && npm run build"
36-
},
37-
"stylelint": {
38-
"extends": "stylelint-config-standard"
39-
},
40-
"browserslist": [
41-
"> 1%",
42-
"last 2 versions",
43-
"not ie <= 8"
44-
],
28+
"license": "MIT",
29+
"name": "www-remark",
4530
"postcss": {
4631
"plugins": {
4732
"postcss-preset-env": {},
@@ -50,16 +35,31 @@
5035
}
5136
}
5237
},
53-
"remarkConfig": {
38+
"private": true,
39+
"rehype": {
5440
"plugins": [
55-
"preset-wooorm"
41+
"rehype-highlight",
42+
"rehype-preset-minify",
43+
"rehype-prevent-favicon-request"
5644
]
5745
},
58-
"rehype": {
46+
"remarkConfig": {
5947
"plugins": [
60-
"highlight",
61-
"preset-minify",
62-
"prevent-favicon-request"
48+
"remark-preset-wooorm"
6349
]
50+
},
51+
"repository": "remarkjs/remark",
52+
"scripts": {
53+
"build:asset": "cp -r src/CNAME dest",
54+
"build:css": "postcss src/index.css -o dest/index.css",
55+
"build:html": "rehype src -o dest",
56+
"build:img": "imagemin src/*.jpg -p jpegtran --out-dir dest",
57+
"build:theme": "cp node_modules/highlight.js/styles/github.css dest/day.css && cp node_modules/highlight.js/styles/nord.css dest/night.css",
58+
"build": "npm run build:css && npm run build:html && npm run build:theme && npm run build:asset && npm run build:img",
59+
"format": "remark . -qfo && stylelint src/index.css --fix",
60+
"test": "npm run format && npm run build"
61+
},
62+
"stylelint": {
63+
"extends": "stylelint-config-standard"
6464
}
6565
}

0 commit comments

Comments
 (0)