Skip to content

Commit

Permalink
speed up refreshDeps.sh by using gulp
Browse files Browse the repository at this point in the history
All of the lines (except cleanup_css.sh which we don't really need anymore) in refreshDeps.sh are present in the gulp file.  I made a new gulp task dev-dependencies-and-build that combines the same ones as we had in refreshDeps.sh.  In my tests, this shaves about 10 seconds off the run time.
  • Loading branch information
megahirt committed Mar 9, 2018
1 parent 21edbf3 commit 62fc6ed
Show file tree
Hide file tree
Showing 2 changed files with 24 additions and 8 deletions.
23 changes: 23 additions & 0 deletions gulpfile.js
Original file line number Diff line number Diff line change
Expand Up @@ -1230,6 +1230,29 @@ gulp.task('build',
'build-changeGroup')
);

gulp.task('get-dependencies',
gulp.parallel(
'build-composer',
'build-npm-front-end'
)
);

gulp.task('dev-build',
gulp.parallel(
'sass',
'test-e2e-webdriver_update',
'test-e2e-compile',
'build-webpack'
)
);

gulp.task('dev-dependencies-and-build',
gulp.series(
'get-dependencies',
'dev-build'
)
);

// -------------------------------------
// Task: Build and Upload to destination
// -------------------------------------
Expand Down
9 changes: 1 addition & 8 deletions refreshDeps.sh
Original file line number Diff line number Diff line change
Expand Up @@ -14,12 +14,5 @@ else
APP_NAME="languageforge"
fi

npm install
cd src
composer install
gulp test-e2e-webdriver_update
../cleanup_css.sh
gulp sass
gulp build-webpack --applicationName $APP_NAME --doNoCompression true
gulp test-e2e-compile
gulp dev-dependencies-and-build --applicationName $APP_NAME --doNoCompression true
echo -e "\n---------Finished refreshing npm, composer, webdriver, sass and webpack build----------"

0 comments on commit 62fc6ed

Please sign in to comment.