GraphicaL User Interface for creating and running Scratch 3.0 projects
npm install mscratchbash
yarn
`$3
因为使用了公司内部 npm 服务器,绑定方法如下:`
vim /etc/hosts
添加如下地址到 hosts 中
192.168.13.228 npm.makeblock.local 【ip地址具体参考下面文档】
`设置仓库
`
npm set registry http://npm.makeblock.local:4873
`参考:http://km.makeblock.com/pages/viewpage.action?pageId=23979311
运行
mac
`
运行
npm start
编译到开发环境
npm run build
编译到生产环境
npm run dist
`win
`
运行
npm run _start
`启动硬件联调模式
`
npm install sensorium-server -g
`
在命令行任意目录,输入以下命令,开启工具,即可连线调试 mscratch:
`
ss
`其他问题
$3
* webpack.config.js 和 scratch-extend/ 文件: 改动地方应添加简单注释,方便文件更新时对比,建议格式为:
`
// modified by Kane: url changed, file changed, new file...
``* scratch-vm 和 scratch-gui 更新
1. 项目存放在 https://github.com/MakeblockTeam中
1. 将官方最新的 develop 分支合并到我们 fork 的仓库中
1. mscratch 中更新这中 npm 包路径为 github 项目的,需要使用 yarn add 的方式