# 云南找厕所小程序 **Repository Path**: liang-mingzhao/yunnan_toilet_search_applet ## Basic Information - **Project Name**: 云南找厕所小程序 - **Description**: No description available - **Primary Language**: Unknown - **License**: Not specified - **Default Branch**: master - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 0 - **Forks**: 1 - **Created**: 2021-05-13 - **Last Updated**: 2021-05-13 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README # wxapp-devtools 找测试 ## 功能 - 支持引用 `node_modules` 模块 - 通过 `babel` 支持更丰富的 `ES6` 兼容,包括 `async/await` - 内置 `promise` 和 `lodash`(`lodash` 按需引入相应模块,不会全部引入) - 使用 `less` 编写 `.wxss` 文件,内置了一些有用的 `mixins` - 提供 `__DEV__` 和 `process.env.NODE_ENV` 全局常量辅助开发 - 提供 `__WECHAT__` 全局常量来判断是微信小程序 - 通过命令行快速创建微信小程序页面 - 支持在 `production` 环境下压缩代码 - 支持wxs,原生components ## 开始使用 确保安装了 [Node.js](https://nodejs.org/) (>= `v6`) 1. `git clone` 此项目 2. 通过命令行工具 `cd` 到这个目录,执行 `npm` 安装依赖模块 3. 执行 `npm run start` 开始开发 4. 通过微信开发者工具,添加 `dist/wechat` 目录到项目上 ## 内置命令 - `npm run start` 启动 `webpack` 开发微信小程序项目,能监听文件变化自动重新编译 - `npm run build` 编译生成 `production` 环境的代码到 `dist/wechat` - `npm run create` 快速创建微信小程序页面