Commit f3874f70 authored by Guillaume Agniéray's avatar Guillaume Agniéray Committed by Johan Cwiklinski
Browse files

Toolchain scripts update

parent 34cef605
......@@ -4,5 +4,4 @@ cd $DIR
composer install --optimize-autoloader --ignore-platform-reqs
cd ..
npm install
npm run-script gulp
npm run-script gulp-ui build
npm run build
......@@ -328,16 +328,11 @@ def add_libs(rel_name, galette_archive):
p1 = subprocess.Popen(npm_cmd, shell=True, cwd=npm_dir)
p1.wait()
#run gulp install script for assets
wp_cmd = 'npm run-script gulp build'
#build the UI assets
wp_cmd = 'npm run build'
p1 = subprocess.Popen(wp_cmd, shell=True, cwd=npm_dir)
p1.wait()
#run gulp build task for fomantic-ui assets
ui_cmd = 'npm run-script gulp-ui build'
p1 = subprocess.Popen(ui_cmd, shell=True, cwd=npm_dir)
p1.wait()
#node modules are no longer needed
shutil.rmtree(os.path.join(npm_dir, 'node_modules'))
......
......@@ -7,12 +7,11 @@
"lib": "lib"
},
"scripts": {
"build": "webpack",
"build-dist": "webpack --mode=production",
"watch": "webpack --watch",
"clean": "rm -rf ./webroot/js/libs/",
"gulp": "gulp",
"gulp-ui": "cp -r ./theme/theme* ./semantic/src && cd semantic && gulp"
"clean": "rm -rf node_modules && rm -rf semantic && rm -rf galette/vendor && rm -rf galette/webroot/assets",
"install-deps": "npm run clean && cd galette && composer install -o && cd .. && npm install",
"build": "gulp",
"rebuild": "npm run install-deps && gulp",
"watch": "gulp watch"
},
"repository": {
"type": "git",
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment