Update: package.json添加publish:boards
This commit is contained in:
@@ -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": {
|
||||
|
||||
@@ -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": {
|
||||
|
||||
@@ -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": {
|
||||
|
||||
@@ -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": {
|
||||
|
||||
@@ -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": {
|
||||
|
||||
@@ -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": {
|
||||
|
||||
@@ -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": {
|
||||
|
||||
@@ -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": {
|
||||
|
||||
@@ -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": {
|
||||
|
||||
@@ -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": {
|
||||
|
||||
@@ -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": {
|
||||
|
||||
@@ -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": {
|
||||
|
||||
@@ -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": {
|
||||
|
||||
@@ -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": {
|
||||
|
||||
@@ -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": {
|
||||
|
||||
@@ -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": {
|
||||
|
||||
@@ -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": {
|
||||
|
||||
@@ -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": {
|
||||
|
||||
@@ -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": {
|
||||
|
||||
@@ -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",
|
||||
|
||||
@@ -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');
|
||||
}
|
||||
}
|
||||
47
scripts/publish-boards.js
Normal file
47
scripts/publish-boards.js
Normal 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');
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user