# weapp-quick-start **Repository Path**: lbc19920615/weapp-quick-start ## Basic Information - **Project Name**: weapp-quick-start - **Description**: No description available - **Primary Language**: Unknown - **License**: Not specified - **Default Branch**: master - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 0 - **Forks**: 0 - **Created**: 2020-04-19 - **Last Updated**: 2020-12-18 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README # weapp quick start ### 结构 1. _package.json对应小程序目录里的package.json 支持动态修改 但不会去执行npm install 所以还是建议使用 `npm run install:npm` ### 注意的 1. require是小程序的函数 不翻译 2. import语句只支持node_modules引入 3. sass使用dart-sass 并不一定安全 ### 用到的库 ##### vant weapp https://youzan.github.io/vant-weapp/#/intro ##### 表单验证 http://github.com/yiminghe/async-validator ### 安装 ```bash npm install ``` #### 全局 ```bash npm install -g babel browserify webpack-cli npm install -g less npm install -g gulp ``` bash 可以执行 install.pre.sh ### 开发 ```bash npm run dev ``` 小程序更新npm ```bash npm run install:npm ``` ### build.js使用 全部编译 ```bash node build.js ``` 单个编译 ```bash node build.js --novue --folder "components/address-form" ```