Skip to content

Commit

Permalink
[optimize] upgrade Upstream packages
Browse files Browse the repository at this point in the history
[add] Entry Badge of GitHub codespaces & GitPod.io
[add] DevTools installing commands
[fix] webpack 5 prebundle bug
  • Loading branch information
TechQuery committed Nov 25, 2023
1 parent 73ee3c4 commit 6217fe9
Show file tree
Hide file tree
Showing 7 changed files with 2,970 additions and 2,495 deletions.
1 change: 1 addition & 0 deletions .npmrc
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
auto-install-peers = false
37 changes: 31 additions & 6 deletions ReadMe.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,9 @@

[![CI & CD](https://github.com/IdeaMall/mini-app/actions/workflows/main.yml/badge.svg)][6]

[![Open in GitHub Codespaces](https://github.com/codespaces/badge.svg)][7]
[![Open in Gitpod](https://gitpod.io/button/open-in-gitpod.svg)][8]

## Demo

https://ideamall.github.io/mini-app/
Expand All @@ -13,8 +16,8 @@ https://ideamall.github.io/mini-app/
- Language: [TypeScript v5][2]
- Component engine: [Preact v10][3]
- State management: [MobX v4][4]
- Component suite: [AntM Vant UI v3][5] + [Bootstrap v5 (CSS utility)][7]
- CI / CD: GitHub [Actions][8] + [Pages][9]
- Component suite: [AntM Vant UI v3][5] + [Bootstrap v5 (CSS utility)][9]
- CI / CD: GitHub [Actions][10] + [Pages][11]

## Extra components

Expand All @@ -23,7 +26,9 @@ https://ideamall.github.io/mini-app/

## Development

1. sign in GitHub NPM: https://github.com/IdeaMall/data-model#usage
### Install & Start

1. sign in GitHub NPM: https://github.com/IdeaMall/data-service#type-package

2. execute installation commands:

Expand All @@ -36,6 +41,24 @@ pnpm dev h5
# pnpm dev weapp
```

### Mini-app Debug

#### Windows

```shell
winget install Tencent.WeixinDevTools
winget install Tencent.qq-devtool
winget install Alibaba.MiniProgramStudio
winget install ByteDance.DouyinIDE
winget install Baidu.SwanIDE
```

#### Mac OS X

```shell
brew install --cask wechatwebdevtools
```

## Deployment

```shell
Expand All @@ -49,6 +72,8 @@ pnpm build h5
[4]: https://github.com/mobxjs/mobx/blob/mobx4and5/docs/
[5]: https://antmjs.github.io/vantui/
[6]: https://github.com/IdeaMall/mini-app/actions/workflows/main.yml
[7]: https://getbootstrap.com/docs/5.3/getting-started/contents/#css-files
[8]: https://github.com/features/actions
[9]: https://pages.github.com/
[7]: https://codespaces.new/IdeaMall/mini-app
[8]: https://gitpod.io/?autostart=true#https://github.com/IdeaMall/mini-app
[9]: https://getbootstrap.com/docs/5.1/getting-started/contents/#css-files
[10]: https://github.com/features/actions
[11]: https://pages.github.com/
2 changes: 1 addition & 1 deletion config/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ const config = {
750: 1,
828: 1.81 / 2
},
compiler: 'webpack5',
compiler: { type: 'webpack5', prebundle: { enable: false } },
sourceRoot: 'src',
outputRoot: 'dist',
defineConstants: {},
Expand Down
96 changes: 48 additions & 48 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -21,67 +21,67 @@
"ios >= 8"
],
"dependencies": {
"@antmjs/vantui": "^3.1.4",
"@antmjs/vantui": "^3.2.2",
"@authing/miniapp-taro": "^5.1.9",
"@babel/runtime": "^7.22.6",
"@ideamall/data-model": "^1.0.0-rc.2",
"@tarojs/components": "3.6.9",
"@tarojs/helper": "3.6.9",
"@tarojs/plugin-framework-react": "3.6.9",
"@tarojs/plugin-html": "3.6.9",
"@tarojs/plugin-http": "3.6.9",
"@tarojs/plugin-platform-alipay": "3.6.9",
"@tarojs/plugin-platform-h5": "3.6.9",
"@tarojs/plugin-platform-jd": "3.6.9",
"@tarojs/plugin-platform-qq": "3.6.9",
"@tarojs/plugin-platform-swan": "3.6.9",
"@tarojs/plugin-platform-tt": "3.6.9",
"@tarojs/plugin-platform-weapp": "3.6.9",
"@tarojs/runtime": "3.6.9",
"@tarojs/shared": "3.6.9",
"@tarojs/taro": "3.6.9",
"@vant/area-data": "^1.4.1",
"@vant/icons": "^2.0.1",
"bootstrap": "^5.3.0",
"@babel/runtime": "^7.23.4",
"@ideamall/data-service": "1.0.0-alpha.1",
"@tarojs/components": "3.6.20",
"@tarojs/helper": "3.6.20",
"@tarojs/plugin-framework-react": "3.6.20",
"@tarojs/plugin-html": "3.6.20",
"@tarojs/plugin-http": "3.6.20",
"@tarojs/plugin-platform-alipay": "3.6.20",
"@tarojs/plugin-platform-h5": "3.6.20",
"@tarojs/plugin-platform-jd": "3.6.20",
"@tarojs/plugin-platform-qq": "3.6.20",
"@tarojs/plugin-platform-swan": "3.6.20",
"@tarojs/plugin-platform-tt": "3.6.20",
"@tarojs/plugin-platform-weapp": "3.6.20",
"@tarojs/runtime": "3.6.20",
"@tarojs/shared": "3.6.20",
"@tarojs/taro": "3.6.20",
"@vant/area-data": "^1.5.1",
"@vant/icons": "^3.0.2",
"bootstrap": "^5.3.2",
"classnames": "^2.3.2",
"koajax": "^0.8.4",
"koajax": "^0.9.6",
"lodash.debounce": "^4.0.8",
"mobx": "^4.15.7",
"mobx-i18n": "^0.3.15",
"mobx-i18n": "^0.4.2",
"mobx-react": "^6.3.1",
"mobx-restful": "^0.6.5",
"preact": "^10.16.0",
"mobx-restful": "^0.6.12",
"preact": "^10.19.2",
"query-string": "^8.1.0",
"web-utility": "^4.0.1"
"web-utility": "^4.1.3"
},
"devDependencies": {
"@babel/core": "^7.22.9",
"@octokit/openapi-types": "^18.0.0",
"@prefresh/babel-plugin": "^0.5.0",
"@prefresh/core": "^1.5.1",
"@babel/core": "^7.23.3",
"@octokit/openapi-types": "^19.0.2",
"@prefresh/babel-plugin": "^0.5.1",
"@prefresh/core": "^1.5.2",
"@prefresh/webpack": "~4.0.0",
"@tarojs/cli": "3.6.9",
"@tarojs/webpack5-runner": "3.6.9",
"@types/lodash.debounce": "^4.0.7",
"@types/react": "^18.2.16",
"@types/webpack-env": "^1.18.1",
"@typescript-eslint/eslint-plugin": "^6.2.0",
"@typescript-eslint/parser": "^6.2.0",
"babel-plugin-import": "^1.13.6",
"babel-preset-taro": "3.6.9",
"@tarojs/cli": "3.6.20",
"@tarojs/webpack5-runner": "3.6.20",
"@types/lodash.debounce": "^4.0.9",
"@types/react": "^18.2.38",
"@types/webpack-env": "^1.18.4",
"@typescript-eslint/eslint-plugin": "^6.12.0",
"@typescript-eslint/parser": "^6.12.0",
"babel-plugin-import": "^1.13.8",
"babel-preset-taro": "3.6.20",
"cross-env": "^7.0.3",
"eslint": "^8.45.0",
"eslint-config-taro": "3.6.9",
"eslint-plugin-import": "^2.27.5",
"eslint-plugin-react": "^7.33.0",
"eslint": "^8.54.0",
"eslint-config-taro": "3.6.20",
"eslint-plugin-import": "^2.29.0",
"eslint-plugin-react": "^7.33.2",
"eslint-plugin-react-hooks": "^4.6.0",
"eslint-plugin-simple-import-sort": "^10.0.0",
"husky": "^8.0.3",
"lint-staged": "^13.2.3",
"prettier": "^2.8.8",
"stylelint": "^15.10.2",
"typescript": "~5.0.4",
"webpack": "~5.88.2"
"lint-staged": "^15.1.0",
"prettier": "^3.1.0",
"stylelint": "^15.11.0",
"typescript": "~5.3.2",
"webpack": "~5.89.0"
},
"prettier": {
"trailingComma": "none",
Expand Down
Loading

0 comments on commit 6217fe9

Please sign in to comment.