Files
taro-template/package.json
abearxiong 7b760d20f3 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.
2026-03-12 17:45:09 +08:00

82 lines
2.7 KiB
JSON

{
"name": "taro-template",
"version": "1.0.0",
"private": true,
"description": "taro-template",
"templateInfo": {
"name": "default",
"typescript": true,
"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",
"build:tt": "taro build --type tt",
"build:h5": "taro build --type h5",
"build:rn": "taro build --type rn",
"build:qq": "taro build --type qq",
"build:jd": "taro build --type jd",
"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",
"dev:tt": "npm run build:tt -- --watch",
"dev:h5": "npm run build:h5 -- --watch",
"dev:rn": "npm run build:rn -- --watch",
"dev:qq": "npm run build:qq -- --watch",
"dev:jd": "npm run build:jd -- --watch",
"dev:harmony-hybrid": "npm run build:harmony-hybrid -- --watch"
},
"browserslist": [
"defaults and fully supports es6-module",
"maintained node versions"
],
"author": "",
"dependencies": {
"@babel/runtime": "^7.28.6",
"@tarojs/components": "4.1.11",
"@tarojs/helper": "4.1.11",
"@tarojs/plugin-framework-react": "4.1.11",
"@tarojs/plugin-platform-alipay": "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-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",
"react": "^18.3.1",
"react-dom": "^18.3.1"
},
"devDependencies": {
"@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/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-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"
}
}