Skip to content

Commit

Permalink
chore: split subpackages dependencies
Browse files Browse the repository at this point in the history
  • Loading branch information
SeaHaiWorld committed Jul 20, 2023
1 parent c7ae34c commit cf1f398
Show file tree
Hide file tree
Showing 8 changed files with 1,854 additions and 24,484 deletions.
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -35,12 +35,12 @@ cd packages/weapp-components
// ...do something
```

启动demo小程序
启动 demo 小程序

```bash
cd packages/demo

pnpm run dev:weapp
pnpm run dev
```

### commit
Expand Down
76 changes: 0 additions & 76 deletions babel.config.js

This file was deleted.

37 changes: 16 additions & 21 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "hui-design",
"version": "0.0.1",
"description": "小程序组件库",
"version": "0.0.1-beta.43",
"description": "再惠组件库",
"scripts": {
"setup": "pnpm i",
"lint:style": "stylelint 'packages/**/*.scss' --syntax scss",
Expand Down Expand Up @@ -30,6 +30,9 @@
},
"homepage": "https://github.com/zaihui/hui-design",
"license": "ISC",
"engines": {
"node": ">=14.0.0"
},
"dependencies": {
"classnames": "^2.2.6",
"dayjs": "^1.10.6",
Expand All @@ -48,16 +51,16 @@
"@commitlint/cli": "^11.0.0",
"@commitlint/config-conventional": "^11.0.0",
"@pmmmwh/react-refresh-webpack-plugin": "^0.5.10",
"@tarojs/cli": "^3.5.8",
"@tarojs/components": "^3.5.8",
"@tarojs/mini-runner": "^3.5.8",
"@tarojs/plugin-framework-react": "^3.5.8",
"@tarojs/plugin-platform-weapp": "^3.5.8",
"@tarojs/react": "^3.5.8",
"@tarojs/runtime": "^3.5.8",
"@tarojs/taro": "^3.5.8",
"@tarojs/taro-h5": "^3.5.8",
"@tarojs/webpack-runner": "^3.5.8",
"@tarojs/cli": ">=3.0.1",
"@tarojs/components": ">=3.0.1",
"@tarojs/mini-runner": ">=3.0.1",
"@tarojs/plugin-framework-react": ">=3.0.1",
"@tarojs/plugin-platform-weapp": ">=3.0.1",
"@tarojs/react": ">=3.0.1",
"@tarojs/runtime": ">=3.0.1",
"@tarojs/taro": ">=3.0.1",
"@tarojs/taro-h5": ">=3.0.1",
"@tarojs/webpack-runner": ">=3.0.1",
"@types/jest": "^26.0.0",
"@types/node": "^14.0.13",
"@types/react": "^18.0.25",
Expand All @@ -76,9 +79,7 @@
"babel-plugin-transform-object-rest-spread": "^6.26.0",
"babel-plugin-transform-runtime": "^6.23.0",
"babel-preset-env": "^1.6.1",
"babel-preset-taro": "^3.5.8",
"babel-runtime": "^6.26.0",
"commander": "^10.0.1",
"commitizen": "^4.2.1",
"concurrently": "^5.3.0",
"cross-env": "^7.0.2",
Expand All @@ -102,7 +103,6 @@
"nerv-server": "^1.5.7",
"nerv-test-utils": "^1.5.7",
"nervjs": "^1.5.7",
"node-fetch": "^2.6.0",
"node-sass": "^4.14.1",
"prettier": "^2.8.8",
"pretty-quick": "^3.1.3",
Expand All @@ -111,7 +111,6 @@
"react-dom": "^18.2.0",
"react-refresh": "^0.14.0",
"regenerator-runtime": "0.11.1",
"rimraf": "^3.0.2",
"sass-loader": "^10.1.0",
"standard-version": "^9.0.0",
"stylelint": "^13.6.1",
Expand All @@ -122,13 +121,9 @@
"stylelint-declaration-use-variable": "^1.7.2",
"stylelint-scss": "^3.18.0",
"stylelint-use-nesting": "^3.0.0",
"webpack": "4.43.0",
"webpack": ">=4.43.0",
"typescript": "^3.9.5"
},
"peerDependencies": {
"react": ">=18.2.0",
"react-dom": ">=18.2.0"
},
"lint-staged": {
"**/*.scss": "npm run lint:style",
"src/**/*.{js,ts,tsx,json}": [
Expand Down
12 changes: 6 additions & 6 deletions packages/demo/package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,8 @@
{
"name": "demo",
"name": "demo-mini-program",
"private": true,
"version": "0.0.1",
"description": "小程序组件库",
"description": "示例小程序",
"templateInfo": {
"name": "mobx",
"typescript": true,
Expand All @@ -10,21 +11,20 @@
"scripts": {
"type-check": "tsc --noEmit",
"build:weapp": "taro build --type weapp",
"dev": "concurrently \"npm run build:weapp -- --watch\" \"npm run watch:fix\"",
"dev:weapp": "npm run build:weapp -- --watch",
"watch:fix": "onchange src/**/*.{js,ts,tsx,scss} -- prettier --write '{{file}}' --ignore-unknown",
"build:h5": "taro build --type h5",
"build:h5:alpha": "cross-env BUILD_ENV=alpha npm run build:h5",
"build:h5:prod": "cross-env BUILD_ENV=prod npm run build:h5",
"dev:h5": "npm run build:h5 -- --watch"
},
"license": "ISC",
"dependencies": {
"classnames": "^2.2.6",
"dayjs": "^1.10.6"
},
"devDependencies": {
"@zaihui/hui-design": "workspace:*",
"mini-css-extract-plugin": "^2.7.2",
"mobx": "^6.7.0",
"babel-preset-taro": ">=3.0.1",
"mobx-react": "^7.6.0"
}
}
16 changes: 14 additions & 2 deletions packages/weapp-components/package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "@zaihui/hui-design",
"version": "0.0.1-beta.43",
"description": "小程序组件库",
"description": "再惠组件库",
"files": [
"lib/*"
],
Expand All @@ -22,10 +22,22 @@
"license": "ISC",
"devDependencies": {
"lodash": "^4.17.21",
"node-fetch": "^2.6.0",
"commander": "^10.0.1",
"rimraf": "^3.0.2",
"glob": "^10.3.3"
},
"peerDependencies": {
"react": ">=18.2.0",
"react-dom": ">=18.2.0"
"react-dom": ">=18.2.0",
"@tarojs/cli": ">=3.0.1",
"@tarojs/components": ">=3.0.1",
"@tarojs/mini-runner": ">=3.0.1",
"@tarojs/plugin-framework-react": ">=3.0.1",
"@tarojs/react": ">=3.0.1",
"@tarojs/runtime": ">=3.0.1",
"@tarojs/taro": ">=3.0.1",
"@tarojs/taro-h5": ">=3.0.1",
"@tarojs/webpack-runner": ">=3.0.1"
}
}
Loading

0 comments on commit cf1f398

Please # to comment.