Skip to content

Commit

Permalink
refactor(docs): 文档支持通过标签使用已有的 demo 代码 (#1950)
Browse files Browse the repository at this point in the history
  • Loading branch information
Alex-huxiyang authored Mar 1, 2024
1 parent 7a8b093 commit a67ebf6
Show file tree
Hide file tree
Showing 42 changed files with 1,574 additions and 2,714 deletions.
6 changes: 5 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -94,13 +94,17 @@
},
"dependencies": {
"@babel/runtime": "^7.23.9",
"@mdx-js/mdx": "^3.0.1",
"@mdx-js/react": "^3.0.1",
"@mdx-js/rollup": "^3.0.1",
"@nutui/icons-react": "^1.0.2",
"@nutui/icons-react-taro": "^1.0.2",
"@nutui/touch-emulator": "^1.0.0",
"@react-spring/web": "~9.6.1",
"@use-gesture/react": "10.2.20",
"async-validator": "^4.2.5",
"classnames": "^2.5.1",
"highlight.js": "^11.9.0",
"lodash.isequal": "^4.5.0",
"lodash.kebabcase": "^4.1.1",
"react-transition-group": "^4.4.5"
Expand All @@ -117,7 +121,7 @@
"@commitlint/cli": "^18.6.1",
"@commitlint/config-conventional": "^18.6.2",
"@loadable/component": "^5.16.3",
"@pmmmwh/react-refresh-webpack-plugin": "^0.5.11",
"@pmmmwh/react-refresh-webpack-plugin": "0.5.10",
"@rollup/plugin-babel": "^6.0.4",
"@rollup/plugin-commonjs": "^25.0.7",
"@rollup/plugin-node-resolve": "15.2.3",
Expand Down
4 changes: 4 additions & 0 deletions packages/nutui-taro-demo/config/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,10 @@ const config = {
'@/sites': path.resolve(__dirname, '../../../src/sites'),
'@/locales': path.resolve(__dirname, '../../../src/locales'),
'@/utils': path.resolve(__dirname, '../../../src/utils'),
'@nutui/nutui-react-taro': path.resolve(
__dirname,
'../../../src/packages/nutui.react.taro.ts'
),
},
sass: {
resource: [
Expand Down
6 changes: 3 additions & 3 deletions packages/nutui-taro-demo/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@
"dependencies": {
"@babel/runtime": "^7.23.9",
"@nutui/touch-emulator": "^1.0.0",
"@pmmmwh/react-refresh-webpack-plugin": "^0.5.11",
"@pmmmwh/react-refresh-webpack-plugin": "0.5.10",
"@tarojs/components": "3.6.22",
"@tarojs/helper": "3.6.22",
"@tarojs/plugin-framework-react": "3.6.22",
Expand All @@ -67,8 +67,8 @@
"babel-plugin-import": "^1.13.8",
"react": "^18.2.0",
"react-dom": "^18.2.0",
"react-refresh": "^0.14.0",
"webpack": "^5.90.3"
"react-refresh": "^0.14.0"

},
"devDependencies": {
"@babel/core": "^7.23.9",
Expand Down
Loading

0 comments on commit a67ebf6

Please sign in to comment.