Update: package.json添加publish:boards

This commit is contained in:
王立帮
2024-07-21 10:47:37 +08:00
parent 64749a6541
commit eda4a88758
22 changed files with 147 additions and 96 deletions

View File

@@ -1,10 +1,10 @@
{ {
"name": "@mixly/arduino", "name": "@mixly/arduino",
"version": "1.4.0", "version": "1.6.0",
"description": "适用于mixly的arduino模块", "description": "适用于mixly的arduino模块",
"scripts": { "scripts": {
"build:dev": "webpack --config=webpack.dev.js", "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", "main": "./export.js",
"author": "Mixly Team", "author": "Mixly Team",
@@ -13,13 +13,13 @@
"mixly-plugin", "mixly-plugin",
"arduino" "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": { "bugs": {
"url": "https://gitee.com/mixly2/mixly2.0_src/issues" "url": "https://gitee.com/bnu_mixly/mixly3/issues"
}, },
"repository": { "repository": {
"type": "git", "type": "git",
"url": "https://gitee.com/mixly2/mixly2.0_src.git", "url": "https://gitee.com/bnu_mixly/mixly3.git",
"directory": "default_src/arduino" "directory": "default_src/arduino"
}, },
"publishConfig": { "publishConfig": {

View File

@@ -1,10 +1,10 @@
{ {
"name": "@mixly/arduino-avr", "name": "@mixly/arduino-avr",
"version": "1.3.0", "version": "1.4.0",
"description": "适用于mixly的arduino avr模块", "description": "适用于mixly的arduino avr模块",
"scripts": { "scripts": {
"build:dev": "webpack --config=webpack.dev.js", "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", "main": "./export.js",
"author": "Mixly Team", "author": "Mixly Team",
@@ -13,13 +13,13 @@
"mixly-plugin", "mixly-plugin",
"arduino-avr" "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": { "bugs": {
"url": "https://gitee.com/mixly2/mixly2.0_src/issues" "url": "https://gitee.com/bnu_mixly/mixly3/issues"
}, },
"repository": { "repository": {
"type": "git", "type": "git",
"url": "https://gitee.com/mixly2/mixly2.0_src.git", "url": "https://gitee.com/bnu_mixly/mixly3.git",
"directory": "default_src/arduino_avr" "directory": "default_src/arduino_avr"
}, },
"publishConfig": { "publishConfig": {

View File

@@ -1,10 +1,10 @@
{ {
"name": "@mixly/arduino-esp32", "name": "@mixly/arduino-esp32",
"version": "1.1.0", "version": "1.2.0",
"description": "适用于mixly的arduino esp32模块", "description": "适用于mixly的arduino esp32模块",
"scripts": { "scripts": {
"build:dev": "webpack --config=webpack.dev.js", "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", "main": "./export.js",
"author": "Mixly Team", "author": "Mixly Team",
@@ -13,13 +13,13 @@
"mixly-plugin", "mixly-plugin",
"arduino-esp32" "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": { "bugs": {
"url": "https://gitee.com/mixly2/mixly2.0_src/issues" "url": "https://gitee.com/bnu_mixly/mixly3/issues"
}, },
"repository": { "repository": {
"type": "git", "type": "git",
"url": "https://gitee.com/mixly2/mixly2.0_src.git", "url": "https://gitee.com/bnu_mixly/mixly3.git",
"directory": "default_src/arduino_esp32" "directory": "default_src/arduino_esp32"
}, },
"publishConfig": { "publishConfig": {

View File

@@ -1,10 +1,10 @@
{ {
"name": "@mixly/arduino-esp8266", "name": "@mixly/arduino-esp8266",
"version": "1.1.0", "version": "1.2.0",
"description": "适用于mixly的arduino esp8266模块", "description": "适用于mixly的arduino esp8266模块",
"scripts": { "scripts": {
"build:dev": "webpack --config=webpack.dev.js", "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", "main": "./export.js",
"author": "Mixly Team", "author": "Mixly Team",
@@ -13,13 +13,13 @@
"mixly-plugin", "mixly-plugin",
"arduino-esp8266" "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": { "bugs": {
"url": "https://gitee.com/mixly2/mixly2.0_src/issues" "url": "https://gitee.com/bnu_mixly/mixly3/issues"
}, },
"repository": { "repository": {
"type": "git", "type": "git",
"url": "https://gitee.com/mixly2/mixly2.0_src.git", "url": "https://gitee.com/bnu_mixly/mixly3.git",
"directory": "default_src/arduino_esp8266" "directory": "default_src/arduino_esp8266"
}, },
"publishConfig": { "publishConfig": {

View File

@@ -1,10 +1,10 @@
{ {
"name": "@mixly/micropython", "name": "@mixly/micropython",
"version": "1.1.0", "version": "1.2.0",
"description": "适用于mixly的micropython模块", "description": "适用于mixly的micropython模块",
"scripts": { "scripts": {
"build:dev": "webpack --config=webpack.dev.js", "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", "main": "./export.js",
"author": "Mixly Team", "author": "Mixly Team",
@@ -13,13 +13,13 @@
"mixly-plugin", "mixly-plugin",
"micropython" "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": { "bugs": {
"url": "https://gitee.com/mixly2/mixly2.0_src/issues" "url": "https://gitee.com/bnu_mixly/mixly3/issues"
}, },
"repository": { "repository": {
"type": "git", "type": "git",
"url": "https://gitee.com/mixly2/mixly2.0_src.git", "url": "https://gitee.com/bnu_mixly/mixly3.git",
"directory": "default_src/micropython" "directory": "default_src/micropython"
}, },
"publishConfig": { "publishConfig": {

View File

@@ -1,10 +1,10 @@
{ {
"name": "@mixly/micropython-esp32", "name": "@mixly/micropython-esp32",
"version": "1.2.0", "version": "1.3.0",
"description": "适用于mixly的micropython esp32模块", "description": "适用于mixly的micropython esp32模块",
"scripts": { "scripts": {
"build:dev": "webpack --config=webpack.dev.js", "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", "main": "./export.js",
"author": "Mixly Team", "author": "Mixly Team",
@@ -13,13 +13,13 @@
"mixly-plugin", "mixly-plugin",
"micropython-esp32" "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": { "bugs": {
"url": "https://gitee.com/mixly2/mixly2.0_src/issues" "url": "https://gitee.com/bnu_mixly/mixly3/issues"
}, },
"repository": { "repository": {
"type": "git", "type": "git",
"url": "https://gitee.com/mixly2/mixly2.0_src.git", "url": "https://gitee.com/bnu_mixly/mixly3.git",
"directory": "default_src/micropython_esp32" "directory": "default_src/micropython_esp32"
}, },
"publishConfig": { "publishConfig": {

View File

@@ -1,10 +1,10 @@
{ {
"name": "@mixly/micropython-esp32c2", "name": "@mixly/micropython-esp32c2",
"version": "1.2.0", "version": "1.3.0",
"description": "适用于mixly的micropython esp32c2模块", "description": "适用于mixly的micropython esp32c2模块",
"scripts": { "scripts": {
"build:dev": "webpack --config=webpack.dev.js", "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", "main": "./export.js",
"author": "Mixly Team", "author": "Mixly Team",
@@ -13,13 +13,13 @@
"mixly-plugin", "mixly-plugin",
"micropython-esp32c2" "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": { "bugs": {
"url": "https://gitee.com/mixly2/mixly2.0_src/issues" "url": "https://gitee.com/bnu_mixly/mixly3/issues"
}, },
"repository": { "repository": {
"type": "git", "type": "git",
"url": "https://gitee.com/mixly2/mixly2.0_src.git", "url": "https://gitee.com/bnu_mixly/mixly3.git",
"directory": "default_src/micropython_esp32c2" "directory": "default_src/micropython_esp32c2"
}, },
"publishConfig": { "publishConfig": {

View File

@@ -1,10 +1,10 @@
{ {
"name": "@mixly/micropython-esp32c3", "name": "@mixly/micropython-esp32c3",
"version": "1.2.0", "version": "1.3.0",
"description": "适用于mixly的micropython esp32c3模块", "description": "适用于mixly的micropython esp32c3模块",
"scripts": { "scripts": {
"build:dev": "webpack --config=webpack.dev.js", "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", "main": "./export.js",
"author": "Mixly Team", "author": "Mixly Team",
@@ -13,13 +13,13 @@
"mixly-plugin", "mixly-plugin",
"micropython-esp32c3" "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": { "bugs": {
"url": "https://gitee.com/mixly2/mixly2.0_src/issues" "url": "https://gitee.com/bnu_mixly/mixly3/issues"
}, },
"repository": { "repository": {
"type": "git", "type": "git",
"url": "https://gitee.com/mixly2/mixly2.0_src.git", "url": "https://gitee.com/bnu_mixly/mixly3.git",
"directory": "default_src/micropython_esp32c3" "directory": "default_src/micropython_esp32c3"
}, },
"publishConfig": { "publishConfig": {

View File

@@ -1,10 +1,10 @@
{ {
"name": "@mixly/micropython-esp32s2", "name": "@mixly/micropython-esp32s2",
"version": "1.4.0", "version": "1.5.0",
"description": "适用于mixly的micropython esp32s2模块", "description": "适用于mixly的micropython esp32s2模块",
"scripts": { "scripts": {
"build:dev": "webpack --config=webpack.dev.js", "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", "main": "./export.js",
"author": "Mixly Team", "author": "Mixly Team",
@@ -13,13 +13,13 @@
"mixly-plugin", "mixly-plugin",
"micropython-esp32s2" "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": { "bugs": {
"url": "https://gitee.com/mixly2/mixly2.0_src/issues" "url": "https://gitee.com/bnu_mixly/mixly3/issues"
}, },
"repository": { "repository": {
"type": "git", "type": "git",
"url": "https://gitee.com/mixly2/mixly2.0_src.git", "url": "https://gitee.com/bnu_mixly/mixly3.git",
"directory": "default_src/micropython_esp32s2" "directory": "default_src/micropython_esp32s2"
}, },
"publishConfig": { "publishConfig": {

View File

@@ -1,10 +1,10 @@
{ {
"name": "@mixly/micropython-esp32s3", "name": "@mixly/micropython-esp32s3",
"version": "1.2.0", "version": "1.3.0",
"description": "适用于mixly的micropython esp32s3模块", "description": "适用于mixly的micropython esp32s3模块",
"scripts": { "scripts": {
"build:dev": "webpack --config=webpack.dev.js", "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", "main": "./export.js",
"author": "Mixly Team", "author": "Mixly Team",
@@ -13,13 +13,13 @@
"mixly-plugin", "mixly-plugin",
"micropython-esp32s3" "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": { "bugs": {
"url": "https://gitee.com/mixly2/mixly2.0_src/issues" "url": "https://gitee.com/bnu_mixly/mixly3/issues"
}, },
"repository": { "repository": {
"type": "git", "type": "git",
"url": "https://gitee.com/mixly2/mixly2.0_src.git", "url": "https://gitee.com/bnu_mixly/mixly3.git",
"directory": "default_src/micropython_esp32s3" "directory": "default_src/micropython_esp32s3"
}, },
"publishConfig": { "publishConfig": {

View File

@@ -1,10 +1,10 @@
{ {
"name": "@mixly/micropython-k210-mixgoai", "name": "@mixly/micropython-k210-mixgoai",
"version": "1.2.0", "version": "1.3.0",
"description": "适用于mixly的micropython k210 mixgoai模块", "description": "适用于mixly的micropython k210 mixgoai模块",
"scripts": { "scripts": {
"build:dev": "webpack --config=webpack.dev.js", "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", "main": "./export.js",
"author": "Mixly Team", "author": "Mixly Team",
@@ -13,13 +13,13 @@
"mixly-plugin", "mixly-plugin",
"micropython-k210-mixgoai" "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": { "bugs": {
"url": "https://gitee.com/mixly2/mixly2.0_src/issues" "url": "https://gitee.com/bnu_mixly/mixly3/issues"
}, },
"repository": { "repository": {
"type": "git", "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" "directory": "default_src/micropython_k210_mixgoai"
}, },
"publishConfig": { "publishConfig": {

View File

@@ -1,10 +1,10 @@
{ {
"name": "@mixly/micropython-nrf51822-microbit", "name": "@mixly/micropython-nrf51822-microbit",
"version": "1.2.0", "version": "1.3.0",
"description": "适用于mixly的micropython nrf51822 microbit模块", "description": "适用于mixly的micropython nrf51822 microbit模块",
"scripts": { "scripts": {
"build:dev": "webpack --config=webpack.dev.js", "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", "main": "./export.js",
"author": "Mixly Team", "author": "Mixly Team",
@@ -13,13 +13,13 @@
"mixly-plugin", "mixly-plugin",
"micropython-nrf51822-microbit" "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": { "bugs": {
"url": "https://gitee.com/mixly2/mixly2.0_src/issues" "url": "https://gitee.com/bnu_mixly/mixly3/issues"
}, },
"repository": { "repository": {
"type": "git", "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" "directory": "default_src/micropython_nrf51822_microbit"
}, },
"publishConfig": { "publishConfig": {

View File

@@ -1,10 +1,10 @@
{ {
"name": "@mixly/micropython-nrf51822-mithoncc", "name": "@mixly/micropython-nrf51822-mithoncc",
"version": "1.1.0", "version": "1.2.0",
"description": "适用于mixly的micropython nrf51822 mithoncc模块", "description": "适用于mixly的micropython nrf51822 mithoncc模块",
"scripts": { "scripts": {
"build:dev": "webpack --config=webpack.dev.js", "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", "main": "./export.js",
"author": "Mixly Team", "author": "Mixly Team",
@@ -13,13 +13,13 @@
"mixly-plugin", "mixly-plugin",
"micropython-nrf51822-mithoncc" "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": { "bugs": {
"url": "https://gitee.com/mixly2/mixly2.0_src/issues" "url": "https://gitee.com/bnu_mixly/mixly3/issues"
}, },
"repository": { "repository": {
"type": "git", "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" "directory": "default_src/micropython_nrf51822_mithoncc"
}, },
"publishConfig": { "publishConfig": {

View File

@@ -1,10 +1,10 @@
{ {
"name": "@mixly/micropython-robot", "name": "@mixly/micropython-robot",
"version": "1.1.0", "version": "1.2.0",
"description": "适用于mixly的micropython robot模块", "description": "适用于mixly的micropython robot模块",
"scripts": { "scripts": {
"build:dev": "webpack --config=webpack.dev.js", "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", "main": "./export.js",
"author": "Mixly Team", "author": "Mixly Team",
@@ -13,13 +13,13 @@
"mixly-plugin", "mixly-plugin",
"micropython-robot" "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": { "bugs": {
"url": "https://gitee.com/mixly2/mixly2.0_src/issues" "url": "https://gitee.com/bnu_mixly/mixly3/issues"
}, },
"repository": { "repository": {
"type": "git", "type": "git",
"url": "https://gitee.com/mixly2/mixly2.0_src.git", "url": "https://gitee.com/bnu_mixly/mixly3.git",
"directory": "default_src/micropython_robot" "directory": "default_src/micropython_robot"
}, },
"publishConfig": { "publishConfig": {

View File

@@ -1,10 +1,10 @@
{ {
"name": "@mixly/python", "name": "@mixly/python",
"version": "1.0.0", "version": "1.1.0",
"description": "适用于mixly的python模块", "description": "适用于mixly的python模块",
"scripts": { "scripts": {
"build:dev": "webpack --config=webpack.dev.js", "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", "main": "./export.js",
"author": "Mixly Team", "author": "Mixly Team",
@@ -13,13 +13,13 @@
"mixly-plugin", "mixly-plugin",
"python" "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": { "bugs": {
"url": "https://gitee.com/mixly2/mixly2.0_src/issues" "url": "https://gitee.com/bnu_mixly/mixly3/issues"
}, },
"repository": { "repository": {
"type": "git", "type": "git",
"url": "https://gitee.com/mixly2/mixly2.0_src.git", "url": "https://gitee.com/bnu_mixly/mixly3.git",
"directory": "default_src/python" "directory": "default_src/python"
}, },
"publishConfig": { "publishConfig": {

View File

@@ -1,10 +1,10 @@
{ {
"name": "@mixly/python-mixpy", "name": "@mixly/python-mixpy",
"version": "1.1.0", "version": "1.2.0",
"description": "适用于mixly的python mixpy模块", "description": "适用于mixly的python mixpy模块",
"scripts": { "scripts": {
"build:dev": "webpack --config=webpack.dev.js", "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", "main": "./export.js",
"author": "Mixly Team", "author": "Mixly Team",
@@ -13,13 +13,13 @@
"mixly-plugin", "mixly-plugin",
"python-mixpy" "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": { "bugs": {
"url": "https://gitee.com/mixly2/mixly2.0_src/issues" "url": "https://gitee.com/bnu_mixly/mixly3/issues"
}, },
"repository": { "repository": {
"type": "git", "type": "git",
"url": "https://gitee.com/mixly2/mixly2.0_src.git", "url": "https://gitee.com/bnu_mixly/mixly3.git",
"directory": "default_src/python_mixpy" "directory": "default_src/python_mixpy"
}, },
"publishConfig": { "publishConfig": {

View File

@@ -1,10 +1,10 @@
{ {
"name": "@mixly/python-skulpt", "name": "@mixly/python-skulpt",
"version": "1.0.0", "version": "1.2.0",
"description": "适用于mixly的python skulpt模块", "description": "适用于mixly的python skulpt模块",
"scripts": { "scripts": {
"build:dev": "webpack --config=webpack.dev.js", "build:dev": "webpack --config=webpack.dev.js",
"build:prod": "webpack --config=webpack.prod.js" "publish:board": "npm publish --registry https://registry.npmjs.org/"
}, },
"devDependencies": { "devDependencies": {
"@mixly/python": "1.0.0" "@mixly/python": "1.0.0"
@@ -16,13 +16,13 @@
"mixly-plugin", "mixly-plugin",
"python-skulpt" "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": { "bugs": {
"url": "https://gitee.com/mixly2/mixly2.0_src/issues" "url": "https://gitee.com/bnu_mixly/mixly3/issues"
}, },
"repository": { "repository": {
"type": "git", "type": "git",
"url": "https://gitee.com/mixly2/mixly2.0_src.git", "url": "https://gitee.com/bnu_mixly/mixly3.git",
"directory": "default_src/python_skulpt" "directory": "default_src/python_skulpt"
}, },
"publishConfig": { "publishConfig": {

View File

@@ -1,10 +1,10 @@
{ {
"name": "@mixly/python-skulpt-car", "name": "@mixly/python-skulpt-car",
"version": "1.0.0", "version": "1.1.0",
"description": "适用于mixly的python skulpt car模块", "description": "适用于mixly的python skulpt car模块",
"scripts": { "scripts": {
"build:dev": "webpack --config=webpack.dev.js", "build:dev": "webpack --config=webpack.dev.js",
"build:prod": "webpack --config=webpack.prod.js" "publish:board": "npm publish --registry https://registry.npmjs.org/"
}, },
"devDependencies": { "devDependencies": {
"@mixly/python": "1.0.0" "@mixly/python": "1.0.0"
@@ -16,13 +16,13 @@
"mixly-plugin", "mixly-plugin",
"python-skulpt-car" "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": { "bugs": {
"url": "https://gitee.com/mixly2/mixly2.0_src/issues" "url": "https://gitee.com/bnu_mixly/mixly3/issues"
}, },
"repository": { "repository": {
"type": "git", "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" "directory": "default_src/python_skulpt_car"
}, },
"publishConfig": { "publishConfig": {

View File

@@ -1,10 +1,10 @@
{ {
"name": "@mixly/python-skulpt-mixtoy", "name": "@mixly/python-skulpt-mixtoy",
"version": "1.0.0", "version": "1.1.0",
"description": "适用于mixly的python skulpt mixtoy模块", "description": "适用于mixly的python skulpt mixtoy模块",
"scripts": { "scripts": {
"build:dev": "webpack --config=webpack.dev.js", "build:dev": "webpack --config=webpack.dev.js",
"build:prod": "webpack --config=webpack.prod.js" "publish:board": "npm publish --registry https://registry.npmjs.org/"
}, },
"devDependencies": { "devDependencies": {
"@mixly/python": "1.0.0" "@mixly/python": "1.0.0"
@@ -16,13 +16,13 @@
"mixly-plugin", "mixly-plugin",
"python-skulpt-mixtoy" "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": { "bugs": {
"url": "https://gitee.com/mixly2/mixly2.0_src/issues" "url": "https://gitee.com/bnu_mixly/mixly3/issues"
}, },
"repository": { "repository": {
"type": "git", "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" "directory": "default_src/python_skulpt_mixtoy"
}, },
"publishConfig": { "publishConfig": {

View File

@@ -10,6 +10,10 @@
"build:boards:arduino": "node scripts/build-boards.js --type arduino", "build:boards:arduino": "node scripts/build-boards.js --type arduino",
"build:boards:micropython": "node scripts/build-boards.js --type micropython", "build:boards:micropython": "node scripts/build-boards.js --type micropython",
"build:boards:python": "node scripts/build-boards.js --type python", "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" "build:examples": "node scripts/build-examples.js"
}, },
"author": "Mixly", "author": "Mixly",

View File

@@ -42,6 +42,6 @@ if (fs_plus.isDirectorySync(DEFAULT_SRC_DIR)) {
continue; continue;
} }
shell.cd(now); shell.cd(now);
shell.exec(`npm run build:prod`); shell.exec('npm run build:prod');
} }
} }

47
scripts/publish-boards.js Normal file
View File

@@ -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 <string>', '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');
}
}