File tree Expand file tree Collapse file tree 2 files changed +16
-1
lines changed Expand file tree Collapse file tree 2 files changed +16
-1
lines changed Original file line number Diff line number Diff line change 7
7
"license" : " BSD-3-Clause" ,
8
8
"scripts" : {
9
9
"start" : " electron-webpack dev --bail --display-error-details --env.minify=false" ,
10
- "build-gui" : " cd ./node_modules/scratch -gui && BUILD_MODE=dist STATIC_PATH=static npm run build " ,
10
+ "build-gui" : " node ./scripts/build -gui.js " ,
11
11
"clean" : " rimraf ./dist/ ./static/assets/" ,
12
12
"compile" : " rimraf ./dist/ && electron-webpack --bail --display-error-details --env.minify=false" ,
13
13
"fetch" : " rimraf ./static/assets/ && mkdirp ./static/assets/ && node ./scripts/fetchMediaLibraryAssets.js" ,
Original file line number Diff line number Diff line change
1
+ const childProcess = require ( 'child_process' ) ;
2
+ const path = require ( 'path' ) ;
3
+
4
+ childProcess . spawnSync (
5
+ 'npm' , [ 'run' , 'build' ] ,
6
+ {
7
+ cwd : path . join ( 'node_modules' , 'scratch-gui' ) ,
8
+ env : {
9
+ BUILD_MODE : 'dist' ,
10
+ STATIC_PATH : 'static'
11
+ } ,
12
+ shell : true ,
13
+ stdio : 'inherit'
14
+ }
15
+ ) ;
You can’t perform that action at this time.
0 commit comments