@robotical/martyblocksjr 1.3.23 → 1.3.27
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/martyBlocksJRCliProfile
CHANGED
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
export WebappHome=/Users/nikolastheodoropoulos/Documents/Robotical/marty-web-app
|
|
2
2
|
export MBJRHome=/Users/nikolastheodoropoulos/Documents/Robotical/phone-app/scratch/scratchjr
|
|
3
|
+
export PhoneAppHome=/Users/nikolastheodoropoulos/Documents/Robotical/phone-app/marty-react-native # <- replace this if you want to use the buildAllAndCpToWebApp function, which builds everything and copies the build files in the phoneapp
|
|
3
4
|
|
|
4
5
|
|
|
5
6
|
export gui_original=$MBJRHome/scratch-gui
|
|
@@ -18,3 +19,17 @@ cpToWebapp () {
|
|
|
18
19
|
rm -rf $WebappHome/public/MartyBlocksJR/*
|
|
19
20
|
cp -r $MBJRHome/editions/free/src/* $WebappHome/public/MartyBlocksJR
|
|
20
21
|
}
|
|
22
|
+
|
|
23
|
+
cpToPhoneApp() {
|
|
24
|
+
rm -rf $PhoneAppHome/assets/www/scratchjr-build/*
|
|
25
|
+
rm -rf $PhoneAppHome/node_modules/@robotical/martyblocksjr/editions/free/src
|
|
26
|
+
cp -r $MBJRHome/editions/free/src/* $PhoneAppHome/assets/www/scratchjr-build
|
|
27
|
+
cp -r $MBJRHome/editions/free/src $PhoneAppHome/node_modules/@robotical/martyblocksjr/editions/free
|
|
28
|
+
}
|
|
29
|
+
|
|
30
|
+
buildAllAndCpToPhoneApp () {
|
|
31
|
+
local type="${1:-debug}"
|
|
32
|
+
if [ $type = debug ]; then npm run build:copy; fi
|
|
33
|
+
if [ $type = prod ]; then npm run build-prod:copy; fi
|
|
34
|
+
cpToPhoneApp
|
|
35
|
+
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@robotical/martyblocksjr",
|
|
3
|
-
"version": "1.3.
|
|
3
|
+
"version": "1.3.27",
|
|
4
4
|
"description": "ScratchJr",
|
|
5
5
|
"publishConfig": {
|
|
6
6
|
"registry": "https://registry.npmjs.org/",
|
|
@@ -12,7 +12,7 @@
|
|
|
12
12
|
"dev": "webpack --mode=development --progress",
|
|
13
13
|
"build": "webpack --mode=production --progress",
|
|
14
14
|
"build-dev": "webpack --mode=development --progress",
|
|
15
|
-
"start": "serve ./editions/free/src",
|
|
15
|
+
"start": "serve --listen tcp://0.0.0.0:3011 ./editions/free/src",
|
|
16
16
|
"build:copy": "npm run build-dev && cp -f src/build/bundles/* editions/free/src",
|
|
17
17
|
"build-prod:copy": "npm run build && cp -f src/build/bundles/* editions/free/src",
|
|
18
18
|
"build:start": "npm run build:copy && npm start"
|