Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
30 changes: 28 additions & 2 deletions scripts/gulpfiles/appengine_tasks.js
Original file line number Diff line number Diff line change
Expand Up @@ -51,10 +51,34 @@ function copyStaticSrc(done) {
* Prerequisite: clean, build.
*/
function copyBuilt(done) {
return gulp.src(['build/msg/**/*', 'dist/*_compressed.js*'], {base: '.'})
return gulp.src(['build/msg/*', 'dist/*_compressed.js*'], {base: '.'})
.pipe(gulp.dest(demoStaticTmpDir));
}

/**
* Copies compressed files into the places they used to be used from, for the
* benefit of our Developers site and (for now) any other websites that
* hotlink them. Delete this once devsite is fixed.
*
* Prerequisite: clean, build.
*/
function copyCompressedToOldLocation(done) {
return gulp.src(['dist/*_compressed.js*'])
.pipe(gulp.dest(demoStaticTmpDir));
}

/**
* Copies messages files into the places they used to be used from, for the
* benefit of our Developers site and (for now) any other websites that
* hotlink them. Delete this once devsite is fixed.
*
* Prerequisite: clean, build.
*/
function copyMessagesToOldLocation(done) {
return gulp.src(['build/msg/*'])
.pipe(gulp.dest(demoStaticTmpDir + '/msg/js'));
}

/**
* Copies appengine files into deploy directory.
*/
Expand Down Expand Up @@ -153,7 +177,9 @@ const prepareDemos = gulp.series(
gulp.parallel(buildTasks.cleanBuildDir,
packageTasks.cleanReleaseDir),
buildTasks.build,
copyBuilt),
gulp.parallel(copyBuilt,
copyCompressedToOldLocation,
copyMessagesToOldLocation)),
copyPlaygroundDeps));

/**
Expand Down