# nice-test-apply **Repository Path**: new_leap/nice-test-apply ## Basic Information - **Project Name**: nice-test-apply - **Description**: 小程序 - **Primary Language**: Unknown - **License**: Not specified - **Default Branch**: master - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 0 - **Forks**: 1 - **Created**: 2025-01-08 - **Last Updated**: 2025-08-31 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README ## APPID ``` 率土 wxbff8917343f77743 源人 wx4db34dada58b2ff6 ``` ## package.json(自定义环境配置) ``` IDT_PLATFORM 同平台的差异配置 IDT_COPY_ASSETS 配置:静态资源由以静态资源服务访问为项目访问(静态资源随项目打包) ``` ## 安装依赖 ```shell pnpm install # 安装所以包的依赖 pnpm add [-F ] # 安装某个包的依赖 pnpm add @[^|~] [-F ] # 安装某个包的指定版本 pnpm add workspace:@[^|~|*] [-F ] # 安装工作区的某个包的指定版本 ``` ## 构建 ``` ## 参考uni自定义构建 ## 运行 pnpm run dev:custom wx-development ## 构建 pnpm run build:custom wx-production ``` ## 全局属性访问 ``` import { getCurrentInstance } from 'vue' const instance = getCurrentInstance() const { $appShow } = instance?.appContext.config.globalProperties! $appShow().then(() => { console.log('App onShow完成') }) ```