wepy one
1.0.1版本
npm install wepy-cli -g
npm install cross-env -g # 正式环境编译用
cd wepy-one
npm install
wepy build --watch
├── dist 微信开发者工具指定的目录
├── node_modules
├── src 代码编写的目录
| ├── components 组件文件夹(非完整页面)
| | ├── com_a.wpy 可复用组件 a
| | └── com_b.wpy 可复用组件 b
| ├── pages 页面文件夹(完整页面)
| | ├── index.wpy 页面 index
| | └── page.wpy 页面 page
| └── app.wpy 小程序配置项(全局样式配置、声明钩子等)
└── package.json package 配置
微信开发者工具
to create a new project and select the dist
directory for local development.微信开发者工具
--> Project --> Close ES6 and convert to ES5.wepy build --watch
in the local project root directory to enable real-time compilation.###Code specification:
$
. Methods or properties starting with $
are built-in methods or properties of the framework and can be used. Please refer to the API documentation before use..wpy
. Externally linked files can have other suffixes. Please refer to the wpy file descriptionasync/await
for development. This program is based on a large number of code references from weapp-one. I hereby declare that I would like to express my gratitude.
ReactNativeOne
wepy