Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
3 changes: 2 additions & 1 deletion .eslintrc
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
"taro/react",
"eslint:recommended",
"plugin:@typescript-eslint/recommended",
"plugin:@typescript-eslint/recommended-requiring-type-checking",
// "plugin:@typescript-eslint/recommended-requiring-type-checking",
"plugin:react-hooks/recommended",
"prettier",
"plugin:prettier/recommended"
Expand All @@ -27,6 +27,7 @@
"react/jsx-curly-brace-presence": ["warn", { "props": "never", "children": "never" }],
"@typescript-eslint/no-unused-vars": "off",
"unused-imports/no-unused-imports": "warn",
"@typescript-eslint/no-explicit-any": "off",
"unused-imports/no-unused-vars": [
"warn",
{
Expand Down
39 changes: 0 additions & 39 deletions .github/workflows/build_test.yml

This file was deleted.

68 changes: 68 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,68 @@
name: CI

on:
push:
branches:
- main
pull_request:
workflow_dispatch:

concurrency:
group: ci-${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }}
cancel-in-progress: true

jobs:
lint:
name: Lint & Format
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4

- name: Set up Node.js
uses: actions/setup-node@v4
with:
node-version: '18'
cache: yarn

- name: Enable Corepack
run: corepack enable

- name: Install dependencies
run: yarn install --immutable

- name: Prettier
run: yarn prettier --check .

- name: ESLint
run: npx eslint .

build:
name: Build WeChat Mini Program
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4

- name: Set up Node.js
uses: actions/setup-node@v4
with:
node-version: '18'
cache: yarn

- name: Enable Corepack
run: corepack enable

- name: Install dependencies
run: yarn install --immutable

- name: Build
run: yarn build:weapp

- name: Upload build artifact
uses: actions/upload-artifact@v4
if: success()
with:
name: weapp-dist-${{ github.sha }}
path: dist/
retention-days: 7
42 changes: 0 additions & 42 deletions .github/workflows/lint_and_format_check.yml

This file was deleted.

2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
dist/
myrepo.bundle
graphify-out/
deploy_versions/
.temp/
.rn_temp/
Expand Down
12 changes: 12 additions & 0 deletions config/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,8 @@ const config = {
compiler: {
type: 'webpack5',
prebundle: {
enable: false,
force: true,
exclude: ['taro-ui'],
},
},
Expand All @@ -61,6 +63,9 @@ const config = {
},
},
},
miniCssExtractPluginOption: {
ignoreOrder: true,
},
optimizeMainPackage: {
enable: true,
exclude: [
Expand Down Expand Up @@ -105,6 +110,13 @@ const config = {
// });
},
},
sass: {
resource: [
path.resolve(__dirname, '..', 'src/common/styles/tokens/_index.scss'),
path.resolve(__dirname, '..', 'src/common/styles/functions/_index.scss'),
path.resolve(__dirname, '..', 'src/common/styles/mixins/_index.scss'),
],
},
h5: {
publicPath: '/',
staticDirectory: 'static',
Expand Down
Binary file removed myrepo.bundle
Binary file not shown.
55 changes: 31 additions & 24 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -44,22 +44,22 @@
"@taro-hooks/plugin-auto-import": "^2.1.0",
"@taro-hooks/plugin-react": "^2.1.0",
"@taroify/core": "^0.4.0-alpha.0",
"@tarojs/components": "4.1.2",
"@tarojs/components-advanced": "^4.1.2",
"@tarojs/helper": "4.1.2",
"@tarojs/plugin-framework-react": "4.1.2",
"@tarojs/plugin-html": "^4.1.2",
"@tarojs/plugin-platform-alipay": "4.1.2",
"@tarojs/plugin-platform-h5": "4.1.2",
"@tarojs/plugin-platform-jd": "4.1.2",
"@tarojs/plugin-platform-qq": "4.1.2",
"@tarojs/plugin-platform-swan": "4.1.2",
"@tarojs/plugin-platform-tt": "4.1.2",
"@tarojs/plugin-platform-weapp": "4.1.2",
"@tarojs/react": "4.1.2",
"@tarojs/runtime": "4.1.2",
"@tarojs/shared": "4.1.2",
"@tarojs/taro": "4.1.2",
"@tarojs/components": "4.0.6",
"@tarojs/components-advanced": "4.0.6",
"@tarojs/helper": "4.0.6",
"@tarojs/plugin-framework-react": "4.0.6",
"@tarojs/plugin-html": "4.0.6",
"@tarojs/plugin-platform-alipay": "4.0.6",
"@tarojs/plugin-platform-h5": "4.0.6",
"@tarojs/plugin-platform-jd": "4.0.6",
"@tarojs/plugin-platform-qq": "4.0.6",
"@tarojs/plugin-platform-swan": "4.0.6",
"@tarojs/plugin-platform-tt": "4.0.6",
"@tarojs/plugin-platform-weapp": "4.0.6",
"@tarojs/react": "4.0.6",
"@tarojs/runtime": "4.0.6",
"@tarojs/shared": "4.0.6",
"@tarojs/taro": "4.0.6",
"echarts": "^5.5.1",
"eslint-config-prettier": "^9.1.0",
"eslint-plugin-prettier": "^5.2.1",
Expand All @@ -77,23 +77,26 @@
},
"devDependencies": {
"@babel/core": "^7.25.2",
"@babel/plugin-proposal-class-properties": "^7.18.6",
"@babel/plugin-proposal-decorators": "^7.24.1",
"@babel/preset-react": "^7.24.1",
"@pmmmwh/react-refresh-webpack-plugin": "^0.5.15",
"@tarojs/cli": "4.1.2",
"@tarojs/taro-loader": "4.0.5",
"@tarojs/webpack5-runner": "4.0.5",
"@tarojs/cli": "4.0.6",
"@tarojs/taro-loader": "4.0.6",
"@tarojs/webpack5-runner": "4.0.6",
"@types/node": "^22.5.5",
"@types/react": "^18.3.8",
"@types/sass": "1.45.0",
"@types/webpack-env": "^1.18.5",
"@typescript-eslint/eslint-plugin": "^7.17.0",
"@typescript-eslint/parser": "^8.6.0",
"@typescript-eslint/eslint-plugin": "^7.18.0",
"@typescript-eslint/parser": "^7.18.0",
"autoprefixer": "^10.4.19",
"babel-plugin-import": "^1.13.8",
"babel-preset-taro": "3.6.35",
"babel-preset-taro": "4.0.6",
"cache-loader": "^4.1.0",
"cssnano": "^7.0.6",
"eslint": "^8.57.1",
"eslint-config-taro": "4.0.5",
"eslint-config-taro": "4.0.6",
"eslint-plugin-import": "^2.30.0",
"eslint-plugin-react": "^7.36.1",
"eslint-plugin-react-hooks": "^4.6.2",
Expand All @@ -117,7 +120,11 @@
"webpack": "^5.94.0"
},
"resolutions": {
"@types/sass": "1.45.0"
"@types/sass": "1.45.0",
"@tarojs/taro": "4.0.6",
"@tarojs/runtime": "4.0.6",
"@tarojs/shared": "4.0.6",
"@tarojs/helper": "4.0.6"
},
"packageManager": "yarn@4.3.1",
"husky": {
Expand Down
Loading
Loading