Skip to content

Commit

Permalink
chore: 修复 dev 脚本命令,以及去掉无用脚本命令
Browse files Browse the repository at this point in the history
  • Loading branch information
mengxinssfd committed Feb 29, 2024
1 parent b870c3a commit 6745f8b
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 28 deletions.
1 change: 0 additions & 1 deletion .dumi/global.scss
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
@import '../packages/react-ui/src/index';
.markdown {
td:not(:first-child) {
word-break: break-word;
Expand Down
10 changes: 5 additions & 5 deletions .dumirc.ts
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,8 @@ type ENV = 'development' | 'production';
const map: Record<ENV, Parameters<typeof defineConfig>[0]> = {
development: {},
production: {
base: '/react-ui/',
publicPath: '/react-ui/',
// base: '/react-ui/',
// publicPath: '/react-ui/',
},
};
const env = process.env['NODE_ENV'] as ENV;
Expand Down Expand Up @@ -39,7 +39,7 @@ export default defineConfig({
},
// apiParser: {},
resolve: {
atomDirs: [{ type: 'component', dir: 'packages/components/src' }],
// atomDirs: [{ type: 'component', dir: 'packages/components/src' }],
// 配置入口文件路径,API 解析将从这里开始
// entryFile: './packages/react-ui/src/index.ts',
},
Expand All @@ -53,8 +53,8 @@ export default defineConfig({
// exclude: [/^@scope\/.+/],
// }
locales: [
{ id: 'en-US', name: 'English', suffix: '' },
{ id: 'zh-CN', name: '中文', suffix: '-cn' },
// { id: 'en-US', name: 'English', suffix: '' },
// { id: 'zh-CN', name: '中文', suffix: '-cn' },
],
alias: {
...getAlias(),
Expand Down
7 changes: 2 additions & 5 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -12,9 +12,6 @@
"scripts": {
"play:dev": "pnpm -C internal/playground start",
"build:rollup": "tsx scripts/build.ts -t",
"build": "pnpm -C packages/react-ui build",
"build:css-single": "pnpm -C packages/react-ui build:scss-single",
"test": "pnpm -C packages/shared test && pnpm -C packages/components test",
"eject": "react-scripts eject",
"check:lint": "eslint \"**/*.{ts,tsx}\"",
"check:ts": "tsc -p tsconfig.noEmit.json --noEmit",
Expand All @@ -24,8 +21,8 @@
"check:all": "npm run check:ts:lint && npm run check:css",
"format": "prettier --write \"**/*.{ts,tsx}\"",
"prepare": "husky install && dumi setup",
"docs:dev": "tsx scripts/dumi-dev-precheck.ts && dumi dev",
"docs:build": "npm run build:css-single && dumi build",
"docs:dev": "dumi dev",
"docs:build": "dumi build",
"docs:preview": "serve ./docs-dist -p 8080",
"docs:deploy": "gh-pages -d docs-dist",
"doctor": "father doctor",
Expand Down
17 changes: 0 additions & 17 deletions scripts/dumi-dev-precheck.ts

This file was deleted.

0 comments on commit 6745f8b

Please sign in to comment.