Skip to content

Commit 41d765f

Browse files
authored
docs: More actions on dumi (#221)
* chore: Ignore tmp file * chore: Align with rc template
1 parent 63c8a4c commit 41d765f

File tree

5 files changed

+3
-24
lines changed

5 files changed

+3
-24
lines changed

.eslintignore

Lines changed: 0 additions & 3 deletions
This file was deleted.

.github/workflows/main.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -85,7 +85,7 @@ jobs:
8585
key: node_modules-${{ hashFiles('**/package-temp-dir/package-lock.json') }}
8686

8787
- name: compile
88-
run: npm run build
88+
run: npm run compile
8989

9090
needs: setup
9191

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,7 @@
1515

1616
# misc
1717
.DS_Store
18+
.vscode
1819

1920
# umi
2021
.umi

.vscode/settings.json

Lines changed: 0 additions & 5 deletions
This file was deleted.

package.json

Lines changed: 1 addition & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -34,9 +34,8 @@
3434
"start": "dumi dev",
3535
"docs:build": "dumi build",
3636
"docs:deploy": "gh-pages -d docs-dist",
37-
"build": "father-build",
37+
"compile": "father-build",
3838
"deploy": "npm run docs:build && npm run docs:deploy",
39-
"release": "npm run build && npm publish",
4039
"prettier": "prettier --write \"**/*.{js,jsx,tsx,ts,less,md,json}\"",
4140
"test": "father test",
4241
"test:coverage": "umi-test --coverage",
@@ -45,17 +44,6 @@
4544
"lint:tsc": "tsc -p tsconfig.json --noEmit",
4645
"now-build": "npm run docs:build"
4746
},
48-
"gitHooks": {
49-
"pre-commit": "lint-staged"
50-
},
51-
"lint-staged": {
52-
"*.{js,jsx,less,md,json}": [
53-
"prettier --write"
54-
],
55-
"*.ts?(x)": [
56-
"prettier --parser=typescript --write"
57-
]
58-
},
5947
"peerDependencies": {
6048
"react": ">= 16.9.0"
6149
},
@@ -69,9 +57,7 @@
6957
"dumi": "^1.1.0-rc.1",
7058
"father-build": "^1.18.6",
7159
"gh-pages": "^3.1.0",
72-
"lint-staged": "^10.5.1",
7360
"prettier": "^2.1.2",
74-
"yorkie": "^2.0.0",
7561
"@types/enzyme": "^3.10.5",
7662
"@types/jest": "^25.2.1",
7763
"@types/lodash": "^4.14.135",

0 commit comments

Comments
 (0)