feat: watch challenges (#34321)

This commit is contained in:
Stuart Taylor
2018-11-16 18:22:52 +00:00
committed by mrugesh mohapatra
parent 82ec250c75
commit cee98aef43
12 changed files with 173 additions and 87 deletions

View File

@ -1,6 +1,10 @@
const path = require('path');
const { buildChallenges } = require('./utils/buildChallenges');
const {
buildChallenges,
replaceChallengeNode,
localeChallengesRootDir
} = require('./utils/buildChallenges');
const { NODE_ENV: env, LOCALE: locale = 'english' } = process.env;
@ -36,7 +40,9 @@ module.exports = {
resolve: 'fcc-source-challenges',
options: {
name: 'challenges',
source: buildChallenges
source: buildChallenges,
onSourceChange: replaceChallengeNode,
curriculumPath: localeChallengesRootDir
}
},
{