feat: update project configuration and structure
- Updated project.config.json with new project name and settings. - Removed unused app.scss and index.scss files, replaced with CSS files. - Refactored app.ts to utilize Taro's useLaunch hook for app initialization. - Simplified index.tsx to display a basic greeting and user info button. - Added new project.xhs.json for XHS platform configuration. - Introduced is-xhs utility function to check for XHS environment. - Updated tsconfig.json to include path mappings and additional include paths.
This commit is contained in:
82
package.json
82
package.json
@@ -2,14 +2,15 @@
|
||||
"name": "taro-template",
|
||||
"version": "1.0.0",
|
||||
"private": true,
|
||||
"description": "taro模板",
|
||||
"description": "taro-template",
|
||||
"templateInfo": {
|
||||
"name": "react-NutUI",
|
||||
"name": "default",
|
||||
"typescript": true,
|
||||
"css": "Sass",
|
||||
"css": "None",
|
||||
"framework": "React"
|
||||
},
|
||||
"scripts": {
|
||||
"new": "taro new",
|
||||
"build:weapp": "taro build --type weapp",
|
||||
"build:swan": "taro build --type swan",
|
||||
"build:alipay": "taro build --type alipay",
|
||||
@@ -18,7 +19,9 @@
|
||||
"build:rn": "taro build --type rn",
|
||||
"build:qq": "taro build --type qq",
|
||||
"build:jd": "taro build --type jd",
|
||||
"build:quickapp": "taro build --type quickapp",
|
||||
"build:harmony-hybrid": "taro build --type harmony-hybrid",
|
||||
"build:xhs": "taro build --type xhs",
|
||||
"dev:xhs": "npm run build:xhs -- --watch",
|
||||
"dev:weapp": "npm run build:weapp -- --watch",
|
||||
"dev:swan": "npm run build:swan -- --watch",
|
||||
"dev:alipay": "npm run build:alipay -- --watch",
|
||||
@@ -27,60 +30,53 @@
|
||||
"dev:rn": "npm run build:rn -- --watch",
|
||||
"dev:qq": "npm run build:qq -- --watch",
|
||||
"dev:jd": "npm run build:jd -- --watch",
|
||||
"dev:quickapp": "npm run build:quickapp -- --watch"
|
||||
"dev:harmony-hybrid": "npm run build:harmony-hybrid -- --watch"
|
||||
},
|
||||
"browserslist": [
|
||||
"last 3 versions",
|
||||
"Android >= 4.1",
|
||||
"ios >= 8"
|
||||
"defaults and fully supports es6-module",
|
||||
"maintained node versions"
|
||||
],
|
||||
"author": "",
|
||||
"dependencies": {
|
||||
"@babel/runtime": "^7.21.5",
|
||||
"@babel/runtime": "^7.28.6",
|
||||
"@tarojs/components": "4.1.11",
|
||||
"@tarojs/helper": "4.1.11",
|
||||
"@tarojs/plugin-platform-weapp": "4.1.11",
|
||||
"@tarojs/plugin-framework-react": "4.1.11",
|
||||
"@tarojs/plugin-platform-alipay": "4.1.11",
|
||||
"@tarojs/plugin-platform-tt": "4.1.11",
|
||||
"@tarojs/plugin-platform-swan": "4.1.11",
|
||||
"@tarojs/plugin-platform-h5": "4.1.11",
|
||||
"@tarojs/plugin-platform-harmony-hybrid": "4.1.11",
|
||||
"@tarojs/plugin-platform-jd": "4.1.11",
|
||||
"@tarojs/plugin-platform-qq": "4.1.11",
|
||||
"@tarojs/plugin-platform-h5": "4.1.11",
|
||||
"@tarojs/plugin-html": "4.1.11",
|
||||
"@tarojs/plugin-platform-swan": "4.1.11",
|
||||
"@tarojs/plugin-platform-tt": "4.1.11",
|
||||
"@tarojs/plugin-platform-weapp": "4.1.11",
|
||||
"@tarojs/plugin-platform-xhs": "^1.2.2",
|
||||
"@tarojs/react": "4.1.11",
|
||||
"@tarojs/runtime": "4.1.11",
|
||||
"@tarojs/shared": "4.1.11",
|
||||
"@tarojs/taro": "4.1.11",
|
||||
"@nutui/nutui-react-taro": "^2.6.14",
|
||||
"@tarojs/plugin-framework-react": "4.1.11",
|
||||
"@tarojs/react": "4.1.11",
|
||||
"react-dom": "^18.0.0",
|
||||
"react": "^18.0.0"
|
||||
"react": "^18.3.1",
|
||||
"react-dom": "^18.3.1"
|
||||
},
|
||||
"devDependencies": {
|
||||
"@babel/preset-react": "^7.24.1",
|
||||
"@babel/plugin-proposal-class-properties": "7.14.5",
|
||||
"@babel/core": "^7.8.0",
|
||||
"babel-plugin-import": "^1.13.8",
|
||||
"@babel/core": "^7.29.0",
|
||||
"@babel/plugin-transform-class-properties": "7.28.6",
|
||||
"@babel/preset-react": "^7.28.5",
|
||||
"@pmmmwh/react-refresh-webpack-plugin": "^0.6.2",
|
||||
"@tarojs/cli": "4.1.11",
|
||||
"@tarojs/vite-runner": "4.1.11",
|
||||
"@tarojs/plugin-generator": "4.1.11",
|
||||
"@tarojs/taro-loader": "4.1.11",
|
||||
"@tarojs/webpack5-runner": "4.1.11",
|
||||
"@types/node": "^25",
|
||||
"@types/react": "^18.3.23",
|
||||
"@types/webpack-env": "^1.18.8",
|
||||
"babel-preset-taro": "4.1.11",
|
||||
"eslint-config-taro": "4.1.11",
|
||||
"eslint": "^8.12.0",
|
||||
"stylelint": "^14.4.0",
|
||||
"terser": "^5.16.8",
|
||||
"vite": "^4.2.0",
|
||||
"vite-plugin-imp": "^2.4.0",
|
||||
"@tarojs/test-utils-react": "^0.1.1",
|
||||
"@types/react": "^18.0.0",
|
||||
"@vitejs/plugin-react": "^4.1.0",
|
||||
"eslint-plugin-react": "^7.8.2",
|
||||
"eslint-plugin-import": "^2.12.0",
|
||||
"eslint-plugin-react-hooks": "^4.2.0",
|
||||
"react-refresh": "^0.11.0",
|
||||
"sass": "^1.60.0",
|
||||
"@typescript-eslint/parser": "^6.2.0",
|
||||
"@typescript-eslint/eslint-plugin": "^6.2.0",
|
||||
"typescript": "^5.1.0",
|
||||
"postcss": "^8.4.18"
|
||||
"eslint-plugin-react": "^7.37.5",
|
||||
"eslint-plugin-react-hooks": "^7.0.1",
|
||||
"postcss": "^8.5.8",
|
||||
"react-refresh": "^0.18.0",
|
||||
"tsconfig-paths-webpack-plugin": "^4.2.0",
|
||||
"typescript": "^5.9.3",
|
||||
"webpack": "5.105.4"
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user