diff --git a/boards/default_src/arduino/package.json b/boards/default_src/arduino/package.json index 4afc821a..711a339c 100644 --- a/boards/default_src/arduino/package.json +++ b/boards/default_src/arduino/package.json @@ -1,10 +1,10 @@ { "name": "@mixly/arduino", - "version": "1.4.0", + "version": "1.6.0", "description": "适用于mixly的arduino模块", "scripts": { "build:dev": "webpack --config=webpack.dev.js", - "build:prod": "webpack --config=webpack.prod.js" + "publish:board": "npm publish --registry https://registry.npmjs.org/" }, "main": "./export.js", "author": "Mixly Team", @@ -13,13 +13,13 @@ "mixly-plugin", "arduino" ], - "homepage": "https://gitee.com/mixly2/mixly2.0_src/tree/develop/boards/default_src/arduino", + "homepage": "https://gitee.com/bnu_mixly/mixly3/tree/master/boards/default_src/arduino", "bugs": { - "url": "https://gitee.com/mixly2/mixly2.0_src/issues" + "url": "https://gitee.com/bnu_mixly/mixly3/issues" }, "repository": { "type": "git", - "url": "https://gitee.com/mixly2/mixly2.0_src.git", + "url": "https://gitee.com/bnu_mixly/mixly3.git", "directory": "default_src/arduino" }, "publishConfig": { diff --git a/boards/default_src/arduino_avr/package.json b/boards/default_src/arduino_avr/package.json index 8eecab18..c0c04e29 100644 --- a/boards/default_src/arduino_avr/package.json +++ b/boards/default_src/arduino_avr/package.json @@ -1,10 +1,10 @@ { "name": "@mixly/arduino-avr", - "version": "1.3.0", + "version": "1.4.0", "description": "适用于mixly的arduino avr模块", "scripts": { "build:dev": "webpack --config=webpack.dev.js", - "build:prod": "webpack --config=webpack.prod.js" + "publish:board": "npm publish --registry https://registry.npmjs.org/" }, "main": "./export.js", "author": "Mixly Team", @@ -13,13 +13,13 @@ "mixly-plugin", "arduino-avr" ], - "homepage": "https://gitee.com/mixly2/mixly2.0_src/tree/develop/boards/default_src/arduino_avr", + "homepage": "https://gitee.com/bnu_mixly/mixly3/tree/master/boards/default_src/arduino_avr", "bugs": { - "url": "https://gitee.com/mixly2/mixly2.0_src/issues" + "url": "https://gitee.com/bnu_mixly/mixly3/issues" }, "repository": { "type": "git", - "url": "https://gitee.com/mixly2/mixly2.0_src.git", + "url": "https://gitee.com/bnu_mixly/mixly3.git", "directory": "default_src/arduino_avr" }, "publishConfig": { diff --git a/boards/default_src/arduino_esp32/package.json b/boards/default_src/arduino_esp32/package.json index db1c2095..262bd8b5 100644 --- a/boards/default_src/arduino_esp32/package.json +++ b/boards/default_src/arduino_esp32/package.json @@ -1,10 +1,10 @@ { "name": "@mixly/arduino-esp32", - "version": "1.1.0", + "version": "1.2.0", "description": "适用于mixly的arduino esp32模块", "scripts": { "build:dev": "webpack --config=webpack.dev.js", - "build:prod": "webpack --config=webpack.prod.js" + "publish:board": "npm publish --registry https://registry.npmjs.org/" }, "main": "./export.js", "author": "Mixly Team", @@ -13,13 +13,13 @@ "mixly-plugin", "arduino-esp32" ], - "homepage": "https://gitee.com/mixly2/mixly2.0_src/tree/develop/boards/default_src/arduino_esp32", + "homepage": "https://gitee.com/bnu_mixly/mixly3/tree/master/boards/default_src/arduino_esp32", "bugs": { - "url": "https://gitee.com/mixly2/mixly2.0_src/issues" + "url": "https://gitee.com/bnu_mixly/mixly3/issues" }, "repository": { "type": "git", - "url": "https://gitee.com/mixly2/mixly2.0_src.git", + "url": "https://gitee.com/bnu_mixly/mixly3.git", "directory": "default_src/arduino_esp32" }, "publishConfig": { diff --git a/boards/default_src/arduino_esp8266/package.json b/boards/default_src/arduino_esp8266/package.json index 568c76cb..0cf6afd3 100644 --- a/boards/default_src/arduino_esp8266/package.json +++ b/boards/default_src/arduino_esp8266/package.json @@ -1,10 +1,10 @@ { "name": "@mixly/arduino-esp8266", - "version": "1.1.0", + "version": "1.2.0", "description": "适用于mixly的arduino esp8266模块", "scripts": { "build:dev": "webpack --config=webpack.dev.js", - "build:prod": "webpack --config=webpack.prod.js" + "publish:board": "npm publish --registry https://registry.npmjs.org/" }, "main": "./export.js", "author": "Mixly Team", @@ -13,13 +13,13 @@ "mixly-plugin", "arduino-esp8266" ], - "homepage": "https://gitee.com/mixly2/mixly2.0_src/tree/develop/boards/default_src/arduino_esp8266", + "homepage": "https://gitee.com/bnu_mixly/mixly3/tree/master/boards/default_src/arduino_esp8266", "bugs": { - "url": "https://gitee.com/mixly2/mixly2.0_src/issues" + "url": "https://gitee.com/bnu_mixly/mixly3/issues" }, "repository": { "type": "git", - "url": "https://gitee.com/mixly2/mixly2.0_src.git", + "url": "https://gitee.com/bnu_mixly/mixly3.git", "directory": "default_src/arduino_esp8266" }, "publishConfig": { diff --git a/boards/default_src/micropython/package.json b/boards/default_src/micropython/package.json index c98fca6d..c3d87b7b 100644 --- a/boards/default_src/micropython/package.json +++ b/boards/default_src/micropython/package.json @@ -1,10 +1,10 @@ { "name": "@mixly/micropython", - "version": "1.1.0", + "version": "1.2.0", "description": "适用于mixly的micropython模块", "scripts": { "build:dev": "webpack --config=webpack.dev.js", - "build:prod": "webpack --config=webpack.prod.js" + "publish:board": "npm publish --registry https://registry.npmjs.org/" }, "main": "./export.js", "author": "Mixly Team", @@ -13,13 +13,13 @@ "mixly-plugin", "micropython" ], - "homepage": "https://gitee.com/mixly2/mixly2.0_src/tree/develop/boards/default_src/micropython", + "homepage": "https://gitee.com/bnu_mixly/mixly3/tree/master/boards/default_src/micropython", "bugs": { - "url": "https://gitee.com/mixly2/mixly2.0_src/issues" + "url": "https://gitee.com/bnu_mixly/mixly3/issues" }, "repository": { "type": "git", - "url": "https://gitee.com/mixly2/mixly2.0_src.git", + "url": "https://gitee.com/bnu_mixly/mixly3.git", "directory": "default_src/micropython" }, "publishConfig": { diff --git a/boards/default_src/micropython_esp32/package.json b/boards/default_src/micropython_esp32/package.json index f01ce196..f0a7672a 100644 --- a/boards/default_src/micropython_esp32/package.json +++ b/boards/default_src/micropython_esp32/package.json @@ -1,10 +1,10 @@ { "name": "@mixly/micropython-esp32", - "version": "1.2.0", + "version": "1.3.0", "description": "适用于mixly的micropython esp32模块", "scripts": { "build:dev": "webpack --config=webpack.dev.js", - "build:prod": "webpack --config=webpack.prod.js" + "publish:board": "npm publish --registry https://registry.npmjs.org/" }, "main": "./export.js", "author": "Mixly Team", @@ -13,13 +13,13 @@ "mixly-plugin", "micropython-esp32" ], - "homepage": "https://gitee.com/mixly2/mixly2.0_src/tree/develop/boards/default_src/micropython_esp32", + "homepage": "https://gitee.com/bnu_mixly/mixly3/tree/master/boards/default_src/micropython_esp32", "bugs": { - "url": "https://gitee.com/mixly2/mixly2.0_src/issues" + "url": "https://gitee.com/bnu_mixly/mixly3/issues" }, "repository": { "type": "git", - "url": "https://gitee.com/mixly2/mixly2.0_src.git", + "url": "https://gitee.com/bnu_mixly/mixly3.git", "directory": "default_src/micropython_esp32" }, "publishConfig": { diff --git a/boards/default_src/micropython_esp32c2/package.json b/boards/default_src/micropython_esp32c2/package.json index a38f3baa..e11ad229 100644 --- a/boards/default_src/micropython_esp32c2/package.json +++ b/boards/default_src/micropython_esp32c2/package.json @@ -1,10 +1,10 @@ { "name": "@mixly/micropython-esp32c2", - "version": "1.2.0", + "version": "1.3.0", "description": "适用于mixly的micropython esp32c2模块", "scripts": { "build:dev": "webpack --config=webpack.dev.js", - "build:prod": "webpack --config=webpack.prod.js" + "publish:board": "npm publish --registry https://registry.npmjs.org/" }, "main": "./export.js", "author": "Mixly Team", @@ -13,13 +13,13 @@ "mixly-plugin", "micropython-esp32c2" ], - "homepage": "https://gitee.com/mixly2/mixly2.0_src/tree/develop/boards/default_src/micropython_esp32c2", + "homepage": "https://gitee.com/bnu_mixly/mixly3/tree/master/boards/default_src/micropython_esp32c2", "bugs": { - "url": "https://gitee.com/mixly2/mixly2.0_src/issues" + "url": "https://gitee.com/bnu_mixly/mixly3/issues" }, "repository": { "type": "git", - "url": "https://gitee.com/mixly2/mixly2.0_src.git", + "url": "https://gitee.com/bnu_mixly/mixly3.git", "directory": "default_src/micropython_esp32c2" }, "publishConfig": { diff --git a/boards/default_src/micropython_esp32c3/package.json b/boards/default_src/micropython_esp32c3/package.json index 2e8c0bf0..71a27feb 100644 --- a/boards/default_src/micropython_esp32c3/package.json +++ b/boards/default_src/micropython_esp32c3/package.json @@ -1,10 +1,10 @@ { "name": "@mixly/micropython-esp32c3", - "version": "1.2.0", + "version": "1.3.0", "description": "适用于mixly的micropython esp32c3模块", "scripts": { "build:dev": "webpack --config=webpack.dev.js", - "build:prod": "webpack --config=webpack.prod.js" + "publish:board": "npm publish --registry https://registry.npmjs.org/" }, "main": "./export.js", "author": "Mixly Team", @@ -13,13 +13,13 @@ "mixly-plugin", "micropython-esp32c3" ], - "homepage": "https://gitee.com/mixly2/mixly2.0_src/tree/develop/boards/default_src/micropython_esp32c3", + "homepage": "https://gitee.com/bnu_mixly/mixly3/tree/master/boards/default_src/micropython_esp32c3", "bugs": { - "url": "https://gitee.com/mixly2/mixly2.0_src/issues" + "url": "https://gitee.com/bnu_mixly/mixly3/issues" }, "repository": { "type": "git", - "url": "https://gitee.com/mixly2/mixly2.0_src.git", + "url": "https://gitee.com/bnu_mixly/mixly3.git", "directory": "default_src/micropython_esp32c3" }, "publishConfig": { diff --git a/boards/default_src/micropython_esp32s2/package.json b/boards/default_src/micropython_esp32s2/package.json index ea6edb81..d21f849c 100644 --- a/boards/default_src/micropython_esp32s2/package.json +++ b/boards/default_src/micropython_esp32s2/package.json @@ -1,10 +1,10 @@ { "name": "@mixly/micropython-esp32s2", - "version": "1.4.0", + "version": "1.5.0", "description": "适用于mixly的micropython esp32s2模块", "scripts": { "build:dev": "webpack --config=webpack.dev.js", - "build:prod": "webpack --config=webpack.prod.js" + "publish:board": "npm publish --registry https://registry.npmjs.org/" }, "main": "./export.js", "author": "Mixly Team", @@ -13,13 +13,13 @@ "mixly-plugin", "micropython-esp32s2" ], - "homepage": "https://gitee.com/mixly2/mixly2.0_src/tree/develop/boards/default_src/micropython_esp32s2", + "homepage": "https://gitee.com/bnu_mixly/mixly3/tree/master/boards/default_src/micropython_esp32s2", "bugs": { - "url": "https://gitee.com/mixly2/mixly2.0_src/issues" + "url": "https://gitee.com/bnu_mixly/mixly3/issues" }, "repository": { "type": "git", - "url": "https://gitee.com/mixly2/mixly2.0_src.git", + "url": "https://gitee.com/bnu_mixly/mixly3.git", "directory": "default_src/micropython_esp32s2" }, "publishConfig": { diff --git a/boards/default_src/micropython_esp32s3/package.json b/boards/default_src/micropython_esp32s3/package.json index 7469e7de..c580ede8 100644 --- a/boards/default_src/micropython_esp32s3/package.json +++ b/boards/default_src/micropython_esp32s3/package.json @@ -1,10 +1,10 @@ { "name": "@mixly/micropython-esp32s3", - "version": "1.2.0", + "version": "1.3.0", "description": "适用于mixly的micropython esp32s3模块", "scripts": { "build:dev": "webpack --config=webpack.dev.js", - "build:prod": "webpack --config=webpack.prod.js" + "publish:board": "npm publish --registry https://registry.npmjs.org/" }, "main": "./export.js", "author": "Mixly Team", @@ -13,13 +13,13 @@ "mixly-plugin", "micropython-esp32s3" ], - "homepage": "https://gitee.com/mixly2/mixly2.0_src/tree/develop/boards/default_src/micropython_esp32s3", + "homepage": "https://gitee.com/bnu_mixly/mixly3/tree/master/boards/default_src/micropython_esp32s3", "bugs": { - "url": "https://gitee.com/mixly2/mixly2.0_src/issues" + "url": "https://gitee.com/bnu_mixly/mixly3/issues" }, "repository": { "type": "git", - "url": "https://gitee.com/mixly2/mixly2.0_src.git", + "url": "https://gitee.com/bnu_mixly/mixly3.git", "directory": "default_src/micropython_esp32s3" }, "publishConfig": { diff --git a/boards/default_src/micropython_k210_mixgoai/package.json b/boards/default_src/micropython_k210_mixgoai/package.json index 05dd91e4..0b1a99ed 100644 --- a/boards/default_src/micropython_k210_mixgoai/package.json +++ b/boards/default_src/micropython_k210_mixgoai/package.json @@ -1,10 +1,10 @@ { "name": "@mixly/micropython-k210-mixgoai", - "version": "1.2.0", + "version": "1.3.0", "description": "适用于mixly的micropython k210 mixgoai模块", "scripts": { "build:dev": "webpack --config=webpack.dev.js", - "build:prod": "webpack --config=webpack.prod.js" + "publish:board": "npm publish --registry https://registry.npmjs.org/" }, "main": "./export.js", "author": "Mixly Team", @@ -13,13 +13,13 @@ "mixly-plugin", "micropython-k210-mixgoai" ], - "homepage": "https://gitee.com/mixly2/mixly2.0_src/tree/develop/boards/default_src/micropython_k210_mixgoai", + "homepage": "https://gitee.com/bnu_mixly/mixly3/tree/master/boards/default_src/micropython_k210_mixgoai", "bugs": { - "url": "https://gitee.com/mixly2/mixly2.0_src/issues" + "url": "https://gitee.com/bnu_mixly/mixly3/issues" }, "repository": { "type": "git", - "url": "https://gitee.com/mixly2/mixly2.0_src.git", + "url": "https://gitee.com/bnu_mixly/mixly3.git", "directory": "default_src/micropython_k210_mixgoai" }, "publishConfig": { diff --git a/boards/default_src/micropython_nrf51822_microbit/package.json b/boards/default_src/micropython_nrf51822_microbit/package.json index 3994a3d2..2f5ea7e8 100644 --- a/boards/default_src/micropython_nrf51822_microbit/package.json +++ b/boards/default_src/micropython_nrf51822_microbit/package.json @@ -1,10 +1,10 @@ { "name": "@mixly/micropython-nrf51822-microbit", - "version": "1.2.0", + "version": "1.3.0", "description": "适用于mixly的micropython nrf51822 microbit模块", "scripts": { "build:dev": "webpack --config=webpack.dev.js", - "build:prod": "webpack --config=webpack.prod.js" + "publish:board": "npm publish --registry https://registry.npmjs.org/" }, "main": "./export.js", "author": "Mixly Team", @@ -13,13 +13,13 @@ "mixly-plugin", "micropython-nrf51822-microbit" ], - "homepage": "https://gitee.com/mixly2/mixly2.0_src/tree/develop/boards/default_src/micropython_nrf51822_microbit", + "homepage": "https://gitee.com/bnu_mixly/mixly3/tree/master/boards/default_src/micropython_nrf51822_microbit", "bugs": { - "url": "https://gitee.com/mixly2/mixly2.0_src/issues" + "url": "https://gitee.com/bnu_mixly/mixly3/issues" }, "repository": { "type": "git", - "url": "https://gitee.com/mixly2/mixly2.0_src.git", + "url": "https://gitee.com/bnu_mixly/mixly3.git", "directory": "default_src/micropython_nrf51822_microbit" }, "publishConfig": { diff --git a/boards/default_src/micropython_nrf51822_mithoncc/package.json b/boards/default_src/micropython_nrf51822_mithoncc/package.json index aa587b97..a43bb132 100644 --- a/boards/default_src/micropython_nrf51822_mithoncc/package.json +++ b/boards/default_src/micropython_nrf51822_mithoncc/package.json @@ -1,10 +1,10 @@ { "name": "@mixly/micropython-nrf51822-mithoncc", - "version": "1.1.0", + "version": "1.2.0", "description": "适用于mixly的micropython nrf51822 mithoncc模块", "scripts": { "build:dev": "webpack --config=webpack.dev.js", - "build:prod": "webpack --config=webpack.prod.js" + "publish:board": "npm publish --registry https://registry.npmjs.org/" }, "main": "./export.js", "author": "Mixly Team", @@ -13,13 +13,13 @@ "mixly-plugin", "micropython-nrf51822-mithoncc" ], - "homepage": "https://gitee.com/mixly2/mixly2.0_src/tree/develop/boards/default_src/micropython_nrf51822_mithoncc", + "homepage": "https://gitee.com/bnu_mixly/mixly3/tree/master/boards/default_src/micropython_nrf51822_mithoncc", "bugs": { - "url": "https://gitee.com/mixly2/mixly2.0_src/issues" + "url": "https://gitee.com/bnu_mixly/mixly3/issues" }, "repository": { "type": "git", - "url": "https://gitee.com/mixly2/mixly2.0_src.git", + "url": "https://gitee.com/bnu_mixly/mixly3.git", "directory": "default_src/micropython_nrf51822_mithoncc" }, "publishConfig": { diff --git a/boards/default_src/micropython_robot/package.json b/boards/default_src/micropython_robot/package.json index c8c8b225..87d74afb 100644 --- a/boards/default_src/micropython_robot/package.json +++ b/boards/default_src/micropython_robot/package.json @@ -1,10 +1,10 @@ { "name": "@mixly/micropython-robot", - "version": "1.1.0", + "version": "1.2.0", "description": "适用于mixly的micropython robot模块", "scripts": { "build:dev": "webpack --config=webpack.dev.js", - "build:prod": "webpack --config=webpack.prod.js" + "publish:board": "npm publish --registry https://registry.npmjs.org/" }, "main": "./export.js", "author": "Mixly Team", @@ -13,13 +13,13 @@ "mixly-plugin", "micropython-robot" ], - "homepage": "https://gitee.com/mixly2/mixly2.0_src/tree/develop/boards/default_src/micropython_robot", + "homepage": "https://gitee.com/bnu_mixly/mixly3/tree/master/boards/default_src/micropython_robot", "bugs": { - "url": "https://gitee.com/mixly2/mixly2.0_src/issues" + "url": "https://gitee.com/bnu_mixly/mixly3/issues" }, "repository": { "type": "git", - "url": "https://gitee.com/mixly2/mixly2.0_src.git", + "url": "https://gitee.com/bnu_mixly/mixly3.git", "directory": "default_src/micropython_robot" }, "publishConfig": { diff --git a/boards/default_src/python/package.json b/boards/default_src/python/package.json index 173c482f..6505ae6f 100644 --- a/boards/default_src/python/package.json +++ b/boards/default_src/python/package.json @@ -1,10 +1,10 @@ { "name": "@mixly/python", - "version": "1.0.0", + "version": "1.1.0", "description": "适用于mixly的python模块", "scripts": { "build:dev": "webpack --config=webpack.dev.js", - "build:prod": "webpack --config=webpack.prod.js" + "publish:board": "npm publish --registry https://registry.npmjs.org/" }, "main": "./export.js", "author": "Mixly Team", @@ -13,13 +13,13 @@ "mixly-plugin", "python" ], - "homepage": "https://gitee.com/mixly2/mixly2.0_src/tree/develop/boards/default_src/python", + "homepage": "https://gitee.com/bnu_mixly/mixly3/tree/master/boards/default_src/python", "bugs": { - "url": "https://gitee.com/mixly2/mixly2.0_src/issues" + "url": "https://gitee.com/bnu_mixly/mixly3/issues" }, "repository": { "type": "git", - "url": "https://gitee.com/mixly2/mixly2.0_src.git", + "url": "https://gitee.com/bnu_mixly/mixly3.git", "directory": "default_src/python" }, "publishConfig": { diff --git a/boards/default_src/python_mixpy/package.json b/boards/default_src/python_mixpy/package.json index d4265d74..224f5993 100644 --- a/boards/default_src/python_mixpy/package.json +++ b/boards/default_src/python_mixpy/package.json @@ -1,10 +1,10 @@ { "name": "@mixly/python-mixpy", - "version": "1.1.0", + "version": "1.2.0", "description": "适用于mixly的python mixpy模块", "scripts": { "build:dev": "webpack --config=webpack.dev.js", - "build:prod": "webpack --config=webpack.prod.js" + "publish:board": "npm publish --registry https://registry.npmjs.org/" }, "main": "./export.js", "author": "Mixly Team", @@ -13,13 +13,13 @@ "mixly-plugin", "python-mixpy" ], - "homepage": "https://gitee.com/mixly2/mixly2.0_src/tree/develop/boards/default_src/python_mixpy", + "homepage": "https://gitee.com/bnu_mixly/mixly3/tree/master/boards/default_src/python_mixpy", "bugs": { - "url": "https://gitee.com/mixly2/mixly2.0_src/issues" + "url": "https://gitee.com/bnu_mixly/mixly3/issues" }, "repository": { "type": "git", - "url": "https://gitee.com/mixly2/mixly2.0_src.git", + "url": "https://gitee.com/bnu_mixly/mixly3.git", "directory": "default_src/python_mixpy" }, "publishConfig": { diff --git a/boards/default_src/python_skulpt/package.json b/boards/default_src/python_skulpt/package.json index e046d63a..e84c9225 100644 --- a/boards/default_src/python_skulpt/package.json +++ b/boards/default_src/python_skulpt/package.json @@ -1,10 +1,10 @@ { "name": "@mixly/python-skulpt", - "version": "1.0.0", + "version": "1.2.0", "description": "适用于mixly的python skulpt模块", "scripts": { "build:dev": "webpack --config=webpack.dev.js", - "build:prod": "webpack --config=webpack.prod.js" + "publish:board": "npm publish --registry https://registry.npmjs.org/" }, "devDependencies": { "@mixly/python": "1.0.0" @@ -16,13 +16,13 @@ "mixly-plugin", "python-skulpt" ], - "homepage": "https://gitee.com/mixly2/mixly2.0_src/tree/develop/boards/default_src/python_skulpt", + "homepage": "https://gitee.com/bnu_mixly/mixly3/tree/master/boards/default_src/python_skulpt", "bugs": { - "url": "https://gitee.com/mixly2/mixly2.0_src/issues" + "url": "https://gitee.com/bnu_mixly/mixly3/issues" }, "repository": { "type": "git", - "url": "https://gitee.com/mixly2/mixly2.0_src.git", + "url": "https://gitee.com/bnu_mixly/mixly3.git", "directory": "default_src/python_skulpt" }, "publishConfig": { diff --git a/boards/default_src/python_skulpt_car/package.json b/boards/default_src/python_skulpt_car/package.json index 79a789ff..c6a88548 100644 --- a/boards/default_src/python_skulpt_car/package.json +++ b/boards/default_src/python_skulpt_car/package.json @@ -1,10 +1,10 @@ { "name": "@mixly/python-skulpt-car", - "version": "1.0.0", + "version": "1.1.0", "description": "适用于mixly的python skulpt car模块", "scripts": { "build:dev": "webpack --config=webpack.dev.js", - "build:prod": "webpack --config=webpack.prod.js" + "publish:board": "npm publish --registry https://registry.npmjs.org/" }, "devDependencies": { "@mixly/python": "1.0.0" @@ -16,13 +16,13 @@ "mixly-plugin", "python-skulpt-car" ], - "homepage": "https://gitee.com/mixly2/mixly2.0_src/tree/develop/boards/default_src/python_skulpt_car", + "homepage": "https://gitee.com/bnu_mixly/mixly3/tree/master/boards/default_src/python_skulpt_car", "bugs": { - "url": "https://gitee.com/mixly2/mixly2.0_src/issues" + "url": "https://gitee.com/bnu_mixly/mixly3/issues" }, "repository": { "type": "git", - "url": "https://gitee.com/mixly2/mixly2.0_src.git", + "url": "https://gitee.com/bnu_mixly/mixly3.git", "directory": "default_src/python_skulpt_car" }, "publishConfig": { diff --git a/boards/default_src/python_skulpt_mixtoy/package.json b/boards/default_src/python_skulpt_mixtoy/package.json index e24f16ef..080598cc 100644 --- a/boards/default_src/python_skulpt_mixtoy/package.json +++ b/boards/default_src/python_skulpt_mixtoy/package.json @@ -1,10 +1,10 @@ { "name": "@mixly/python-skulpt-mixtoy", - "version": "1.0.0", + "version": "1.1.0", "description": "适用于mixly的python skulpt mixtoy模块", "scripts": { "build:dev": "webpack --config=webpack.dev.js", - "build:prod": "webpack --config=webpack.prod.js" + "publish:board": "npm publish --registry https://registry.npmjs.org/" }, "devDependencies": { "@mixly/python": "1.0.0" @@ -16,13 +16,13 @@ "mixly-plugin", "python-skulpt-mixtoy" ], - "homepage": "https://gitee.com/mixly2/mixly2.0_src/tree/develop/boards/default_src/python_skulpt_mixtoy", + "homepage": "https://gitee.com/bnu_mixly/mixly3/tree/master/boards/default_src/python_skulpt_mixtoy", "bugs": { - "url": "https://gitee.com/mixly2/mixly2.0_src/issues" + "url": "https://gitee.com/bnu_mixly/mixly3/issues" }, "repository": { "type": "git", - "url": "https://gitee.com/mixly2/mixly2.0_src.git", + "url": "https://gitee.com/bnu_mixly/mixly3.git", "directory": "default_src/python_skulpt_mixtoy" }, "publishConfig": { diff --git a/package.json b/package.json index e934850c..b5b4d649 100644 --- a/package.json +++ b/package.json @@ -10,6 +10,10 @@ "build:boards:arduino": "node scripts/build-boards.js --type arduino", "build:boards:micropython": "node scripts/build-boards.js --type micropython", "build:boards:python": "node scripts/build-boards.js --type python", + "publish:boards:all": "node scripts/publish-boards.js --type all", + "publish:boards:arduino": "node scripts/publish-boards.js --type arduino", + "publish:boards:micropython": "node scripts/publish-boards.js --type micropython", + "publish:boards:python": "node scripts/publish-boards.js --type python", "build:examples": "node scripts/build-examples.js" }, "author": "Mixly", diff --git a/scripts/build-boards.js b/scripts/build-boards.js index c3412965..45c26dcf 100644 --- a/scripts/build-boards.js +++ b/scripts/build-boards.js @@ -42,6 +42,6 @@ if (fs_plus.isDirectorySync(DEFAULT_SRC_DIR)) { continue; } shell.cd(now); - shell.exec(`npm run build:prod`); + shell.exec('npm run build:prod'); } } \ No newline at end of file diff --git a/scripts/publish-boards.js b/scripts/publish-boards.js new file mode 100644 index 00000000..29509027 --- /dev/null +++ b/scripts/publish-boards.js @@ -0,0 +1,47 @@ +const shell = require('shelljs'); +const fs = require('fs'); +const fs_plus = require('fs-plus'); +const path = require('path'); +const { Command, Option } = require('commander'); + +const program = new Command(); + +program + .addOption(new Option('-t, --type ', 'boards type', 'micropython').choices([ + 'all', 'arduino', 'micropython', 'python' + ])); + +program.parse(); + +const options = program.opts(); + +let ignore = ['arduino', 'micropython', 'python']; + +if (ignore.includes(options.type)) { + ignore.splice(ignore.indexOf(options.type), 1); +} else if (options.type === 'all') { + ignore = []; +} + +const ORIGIN_DIR = process.cwd(); +const DEFAULT_SRC_DIR = path.resolve(ORIGIN_DIR, 'boards/default_src'); + +if (fs_plus.isDirectorySync(DEFAULT_SRC_DIR)) { + const names = fs.readdirSync(DEFAULT_SRC_DIR); + for (let name of names) { + let splitName = name.split('_'); + if (ignore.includes(splitName[0])) { + continue; + } + const now = path.resolve(DEFAULT_SRC_DIR, name); + if (!fs_plus.isDirectorySync(now)) { + continue; + } + const packagejsonPath = path.resolve(now, 'package.json'); + if (!fs_plus.isFileSync(packagejsonPath)) { + continue; + } + shell.cd(now); + shell.exec('npm run publish:board'); + } +} \ No newline at end of file