add ui publishing mechanism for plugins

This commit is contained in:
Konstantin Schaper
2020-10-20 11:08:49 +02:00
parent 9b874e7eab
commit 8c78b058a3
7 changed files with 240 additions and 52 deletions

View File

@@ -21,21 +21,7 @@
* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
* SOFTWARE.
*/
const { spawnSync } = require("child_process");
const os = require("os");
const yarnCmd = os.platform() === "win32" ? "yarn.cmd" : "yarn";
const yarn = args => {
const result = spawnSync(yarnCmd, args, { stdio: "inherit" });
if (result.error) {
console.log("could not start yarn command:", result.error);
process.exit(2);
} else if (result.status !== 0) {
console.log("yarn process ends with status code:", result.status);
process.exit(3);
}
};
const { yarn } = require("./yarn");
const version = v => {
yarn(["run", "lerna", "--no-git-tag-version", "--no-push", "version", "--force-publish", "--yes", v]);