nomadro/apps/miniprogram/package.json
eric 626f6b19e8 Ship unified miniprogram H5/weapp parity and XHS offline portal.
Align Taro pages with Next hub/nav/book/community/VIP, pack the single-index Xiaohongshu portal with host-chrome safe areas, and refresh shared book content plus portal README constraints.

Co-authored-by: Cursor <cursoragent@cursor.com>
2026-09-30 09:37:03 +08:00

71 lines
3.3 KiB
JSON
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

{
"name": "@nomadro/miniprogram",
"version": "0.1.0",
"private": true,
"description": "Nomadro 统一小程序 — 微信 / 抖音 / 小红书(Taro 4 + React,能力对齐 apps 垂直仓)",
"scripts": {
"build:h5": "cross-env TARO_APP_TARGET=h5 node ./node_modules/@tarojs/cli/bin/taro build --type h5",
"dev:h5": "cross-env TARO_APP_TARGET=h5 node ./node_modules/@tarojs/cli/bin/taro build --type h5 --watch",
"build:weapp": "cross-env TARO_APP_TARGET=weapp node ./node_modules/@tarojs/cli/bin/taro build --type weapp && node ./scripts/copy-weapp-static.mjs",
"dev:weapp": "cross-env TARO_APP_TARGET=weapp node ./node_modules/@tarojs/cli/bin/taro build --type weapp --watch",
"postdev:weapp-static": "cross-env TARO_APP_TARGET=weapp node ./scripts/copy-weapp-static.mjs",
"copy:weapp-static": "cross-env TARO_APP_TARGET=weapp node ./scripts/copy-weapp-static.mjs",
"build:tt": "cross-env TARO_APP_TARGET=tt node ./node_modules/@tarojs/cli/bin/taro build --type tt && cross-env TARO_APP_TARGET=tt node ./scripts/copy-weapp-static.mjs",
"dev:tt": "cross-env TARO_APP_TARGET=tt node ./node_modules/@tarojs/cli/bin/taro build --type tt --watch",
"build:xhs-taro": "cross-env TARO_ENV=weapp TARO_APP_TARGET=xhs taro build --type weapp && cross-env TARO_APP_TARGET=xhs node ./scripts/copy-weapp-static.mjs",
"xhs:sync": "python xhs/scripts/sync_data.py",
"xhs:assemble": "python xhs/scripts/assemble.py",
"xhs:pack": "python xhs/scripts/pack.py",
"xhs:assemble-book": "python xhs/scripts/assemble_book.py",
"xhs:pack-book": "python xhs/scripts/pack_book.py",
"xhs:export": "node ./scripts/export-xhs-offline.mjs",
"build:xhs": "npm run xhs:export && npm run xhs:assemble && npm run xhs:pack",
"build:xhs-book": "echo skip: book is inside portal — use pnpm build:xhs",
"build:xhs-all": "npm run build:xhs",
"pack:nomad-code": "node ./scripts/pack-nomad-code.mjs",
"dev:all": "echo use: pnpm dev:weapp | pnpm dev:tt | pnpm build:xhs"
},
"browserslist": [
"last 3 versions",
"Android >= 4.1",
"ios >= 8"
],
"dependencies": {
"@babel/runtime": "^7.26.0",
"@tarojs/components": "4.0.9",
"@tarojs/helper": "4.0.9",
"@tarojs/plugin-framework-react": "4.0.9",
"@tarojs/plugin-platform-h5": "^4.0.9",
"@tarojs/plugin-platform-tt": "4.0.9",
"@tarojs/plugin-platform-weapp": "4.0.9",
"@tarojs/react": "4.0.9",
"@tarojs/router": "^4.0.9",
"@tarojs/runtime": "4.0.9",
"@tarojs/shared": "4.0.9",
"@tarojs/taro": "4.0.9",
"react": "^18.3.1",
"react-dom": "^18.3.1"
},
"devDependencies": {
"@babel/core": "^7.26.0",
"@babel/plugin-proposal-class-properties": "^7.18.6",
"@babel/plugin-proposal-decorators": "7.25.9",
"@babel/plugin-proposal-object-rest-spread": "^7.20.7",
"@babel/plugin-transform-runtime": "^7.29.7",
"@babel/preset-react": "^7.26.3",
"@pmmmwh/react-refresh-webpack-plugin": "^0.5.17",
"@tarojs/cli": "4.0.9",
"@tarojs/vite-runner": "^4.0.9",
"@tarojs/webpack5-runner": "4.0.9",
"@types/react": "^18.3.12",
"@vitejs/plugin-react": "^4.7.0",
"babel-preset-taro": "4.0.9",
"copy-webpack-plugin": "^11.0.0",
"cross-env": "^7.0.3",
"sass": "^1.81.0",
"typescript": "^5.6.3",
"vite": "^4.5.14",
"webpack": "5.91.0"
}
}