Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

#fix 添加缺少的依赖包,npm run init脚本修改,更新readme,按照文档目前步骤,程序可以正常运行 #57

Open
wants to merge 2 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -12,9 +12,12 @@ npm run init
```
完成上述步骤后,使用微信开发者工具,点击【工具-构建npm】

打开project.config.json,将AppId替换为自己的AppId(登录[微信公众平台](https://mp.weixin.qq.com/),开发->开发管理->开发设置,复制自己的Appid)

使用[微信开发者工具](https://developers.weixin.qq.com/miniprogram/dev/devtools/download.html)打开该示例代码,云开发环境搭建请参考[云开发示例说明](https://github.com/wechat-miniprogram/miniprogram-demo/blob/master/miniprogram/page/cloud/README.md)。



## 贡献

如果你有 bug 反馈或其他任何建议,欢迎提 issue 给我们。
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
"version": "1.0.0",
"description": "WeChat miniprogram demo",
"scripts": {
"init": "cd cloudfunctions/ && tnpm i --production && cd ../miniprogram/ && tnpm i --production",
"init": "cd miniprogram/ && npm i --production",
"lint": "eslint .",
"wxss:transform-vars": "gulp transform-css-vars"
},
Expand Down