diff --git a/README.md b/README.md index 53bdd948..d248cefe 100644 --- a/README.md +++ b/README.md @@ -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 给我们。 diff --git a/package.json b/package.json index f537b661..9aa42de2 100644 --- a/package.json +++ b/package.json @@ -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" },