Skip to content

Commit a7f79dd

Browse files
authored
fix: jmapp demo build (#3146)
* fix: jmapp demo build * fix: cr * fix: cr * fix: jdesign taro demo build * fix: jdesign taro demo build * fix: jdesign taro demo build
1 parent d2b14a2 commit a7f79dd

File tree

6 files changed

+8
-9
lines changed

6 files changed

+8
-9
lines changed

package.json

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -71,14 +71,14 @@
7171
"build:taro": "node ./scripts/replace-css-var.js && npm run checked:taro && node scripts/build-taro.mjs",
7272
"build:taro:jmapp": "npm run checked:taro && VITE_APP_PROJECT_ID=jmapp node scripts/build-taro.mjs",
7373
"build:demo": "npm run checked && vite build --config vite.config.demo.ts",
74-
"build:demo:jmapp": "npm run checked && VITE_APP_PROJECT_ID=jmapp vite build",
74+
"build:demo:jmapp": "npm run checked && VITE_APP_PROJECT_ID=jmapp vite build --config vite.config.demo.ts",
7575
"prebuild:taro:demo": "SKIPDD=1 pnpm run update:taro:entry",
7676
"build:taro:demo": "npm run checked:taro && npm run generate:file:taro:pages && pnpm --dir ./packages/nutui-taro-demo build:h5",
7777
"build:site": "vite build --config vite.config.site.mts",
7878
"build:taro:site": "vite build --config vite.config.site.taro.mts && node ./scripts/rename.js",
7979
"build:jdtaro:demo": "npm run checked:taro && npm run generate:file:taro:pages && JD=1 pnpm --dir ./packages/nutui-taro-demo build:h5",
80-
"build:taro:demo:jmapp": "npm run checked:taro && VITE_APP_PROJECT_ID=jmapp npm run generate:file:taro:pages && pnpm --dir ./packages/nutui-taro-demo build:h5",
81-
"build:jdtaro:demo:jmapp": "npm run checked:taro && VITE_APP_PROJECT_ID=jmapp npm run generate:file:taro:pages && JD=1 pnpm --dir ./packages/nutui-taro-demo build:h5",
80+
"build:taro:demo:jmapp": "npm run checked:taro && VITE_APP_PROJECT_ID=jmapp npm run generate:file:taro:pages && pnpm --dir ./packages/nutui-taro-demo build:jmapp h5",
81+
"build:jdtaro:demo:jmapp": "npm run checked:taro && VITE_APP_PROJECT_ID=jmapp npm run generate:file:taro:pages && JD=1 pnpm --dir ./packages/nutui-taro-demo build:jmapp h5",
8282
"generate:file": "node scripts/generate-nutui.js",
8383
"generate:themes": "node scripts/generate-themes.js",
8484
"generate:themes-dev": "node scripts/generate-themes-dev.js",

packages/nutui-taro-demo/config/prod.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ module.exports = {
2121
defineConstants: {},
2222
mini: {},
2323
h5: {
24-
publicPath: `/taro/react/3x/demo${hash && UI ? `-${hash}` : ''}`,
24+
publicPath: `/taro/react/${process.env.VITE_APP_PROJECT_ID === 'jmapp' ? 'jdesign-3x' : '3x'}/demo${hash && UI ? `-${hash}` : ''}`,
2525
/**
2626
* WebpackChain 插件配置
2727
* @docs https://github.com/neutrinojs/webpack-chain

packages/nutui-taro-demo/package.json

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,8 +12,7 @@
1212
"dev": "taro build --watch --type",
1313
"dev:jmapp": "VITE_APP_PROJECT_ID=jmapp taro build --watch --type",
1414
"build": "taro build --type",
15-
"build:jmapp": "taro build --type",
16-
15+
"build:jmapp": "VITE_APP_PROJECT_ID=jmapp taro build --type",
1716
"build:weapp": "taro build --type weapp",
1817
"build:swan": "taro build --type swan",
1918
"build:alipay": "taro build --type alipay",

src/sites/sites-react/doc/docs/react/official-theme-react.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ NutUI 默认提供多套官方`UI`主题,同时允许在一定程度上定制
99
| 主题说明 | scss 文件名称 |
1010
| --- | --- |
1111
| 京东 APP 主题(默认) | `variables.scss` |
12-
| 京东 JDesign 主题 | `variables-jmapp.scss` |
12+
| 京东 JDesign 主题 ([预览](https://nutui.jd.com/h5/react/jdesign-3x/#/zh-CN/component/button)) | `variables-jmapp.scss` |
1313

1414
## 使用方式
1515

src/sites/sites-react/doc/docs/taro/official-theme-react.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ NutUI 默认提供多套官方`UI`主题,同时允许在一定程度上定制
99
| 主题说明 | scss 文件名称 |
1010
| --- | --- |
1111
| 京东 APP 主题(默认) | `variables.scss` |
12-
| 京东 JDesign 主题 | `variables-jmapp.scss` |
12+
| 京东 JDesign 主题 ([预览](https://nutui.jd.com/taro/react/jdesign-3x/demo/index.html#/pages/index/index)) | `variables-jmapp.scss` |
1313

1414
## 使用方式
1515

vite.config.demo.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ if (projectID) {
1717
export default defineConfig(async (): Promise<UserConfig> => {
1818
return {
1919
mode: 'production',
20-
base: `/h5/react/${projectID === 'jmapp' ? 'jdesign' : '3x'}`,
20+
base: `/h5/react/${projectID === 'jmapp' ? 'jdesign-3x' : '3x'}`,
2121
resolve: {
2222
alias: [
2323
{

0 commit comments

Comments
 (0)