feat(challenge-redirect): Make '/challenge' and '/map' redirect to learn (#17144)

* feat(challenge-redirect): Make '/challenge' and '/map' redirect to learn

* fix(linting): Generate pathMigrationMap on 'prelint-js'

* fix(script): fix "only once" script

* fix(lock): Fix lock file
This commit is contained in:
Stuart Taylor
2018-05-14 08:34:51 +01:00
committed by mrugesh mohapatra
parent 058ec5d247
commit 5eb90ed8c8
7 changed files with 108 additions and 16 deletions

View File

@@ -38,7 +38,9 @@ const Rx = require('rx'),
// rev
rev = require('gulp-rev'),
revDel = require('rev-del');
revDel = require('rev-del'),
{ createPathMigrationMap } = require('./seed/createPathMigrationMap');
Rx.config.longStackSupport = true;
const sync = browserSync.create('fcc-sync-server');
@@ -395,6 +397,10 @@ gulp.task('build-manifest', buildDependents, function() {
.pipe(gulp.dest('server/'));
});
gulp.task('generate-migration-map', done => {
createPathMigrationMap().then(done);
});
gulp.task('build', [
'less',
'js',
@@ -402,7 +408,8 @@ gulp.task('build', [
'pack-frame-runner',
'move-webpack-manifest',
'clean-webpack-manifest',
'build-manifest'
'build-manifest',
'generate-migration-map'
]);
const watchDependents = [
@@ -424,5 +431,6 @@ gulp.task('default', [
'serve',
'watch',
'dev-server',
'pack-frame-runner'
'pack-frame-runner',
'generate-migration-map'
]);