@robotical/martyblocks 1.4.25 → 1.4.34
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/.github/workflows/release-action.yml +10 -5
- package/dist/lib.min.js +1 -1
- package/martyBlocksCliProfile +25 -1
- package/package.json +1 -1
package/martyBlocksCliProfile
CHANGED
|
@@ -55,8 +55,9 @@ npmlinkAll() {
|
|
|
55
55
|
buildAllAndStart () {
|
|
56
56
|
# arguments [all, blocks, vm, gui]
|
|
57
57
|
local type="${1:-all}"
|
|
58
|
+
setDevelopment
|
|
58
59
|
cpReplacements
|
|
59
|
-
|
|
60
|
+
buildScratchStart $type
|
|
60
61
|
cd $gui_original
|
|
61
62
|
npm start
|
|
62
63
|
}
|
|
@@ -71,12 +72,23 @@ buildAllAndStart () {
|
|
|
71
72
|
##################### Helper functions ####################
|
|
72
73
|
buildAllAndCpToWebApp () {
|
|
73
74
|
local type="${1:-all}"
|
|
75
|
+
setDevelopment
|
|
74
76
|
cpReplacements
|
|
75
77
|
buildScratch $type
|
|
76
78
|
cpToDist
|
|
77
79
|
cpToWebapp
|
|
78
80
|
}
|
|
79
81
|
|
|
82
|
+
setProduction () {
|
|
83
|
+
cd $mblib
|
|
84
|
+
npx node ./set-production.js
|
|
85
|
+
}
|
|
86
|
+
|
|
87
|
+
setDevelopment () {
|
|
88
|
+
cd $mblib
|
|
89
|
+
npx node ./set-development.js
|
|
90
|
+
}
|
|
91
|
+
|
|
80
92
|
cpReplacements ()
|
|
81
93
|
{
|
|
82
94
|
cp -r $REPLACEMENTS/* $MBHome
|
|
@@ -90,6 +102,14 @@ buildScratch () {
|
|
|
90
102
|
if [ $type = gui ]; then buildGui; fi
|
|
91
103
|
}
|
|
92
104
|
|
|
105
|
+
buildScratchStart () {
|
|
106
|
+
local type="${1:-all}"
|
|
107
|
+
if [ $type = all ]; then buildBlocks; buildVm; buildGui; fi
|
|
108
|
+
if [ $type = blocks ]; then buildBlocks; fi
|
|
109
|
+
if [ $type = vm ]; then buildBlocks; buildVm; fi
|
|
110
|
+
if [ $type = gui ]; then buildGuiStart; fi
|
|
111
|
+
}
|
|
112
|
+
|
|
93
113
|
cpToWebapp () {
|
|
94
114
|
rm -rf $WebappHome/public/MartyBlocks/*
|
|
95
115
|
cp -r $gui_original/build/* $WebappHome/public/MartyBlocks
|
|
@@ -120,6 +140,10 @@ buildGui() {
|
|
|
120
140
|
cd $gui_original && BUILD_MODE=dist npm run build
|
|
121
141
|
}
|
|
122
142
|
|
|
143
|
+
buildGuiStart() {
|
|
144
|
+
cd $gui_original && npm run build
|
|
145
|
+
}
|
|
146
|
+
|
|
123
147
|
publishPackage() {
|
|
124
148
|
cdhome;
|
|
125
149
|
rm -rf dist;
|