2021-02-26 01:32:35 +05:30
|
|
|
const path = require('path');
|
|
|
|
const fs = require('fs');
|
|
|
|
|
|
|
|
const { getChallengesForLang } = require('../../../curriculum/getChallenges');
|
|
|
|
|
|
|
|
const globalConfigPath = path.resolve(__dirname, '../../../config');
|
|
|
|
|
|
|
|
// We are defaulting to English because the ids for the challenges are same
|
2021-06-17 00:27:23 +09:00
|
|
|
// across all languages.
|
2021-02-26 01:32:35 +05:30
|
|
|
getChallengesForLang('english')
|
|
|
|
.then(JSON.stringify)
|
|
|
|
.then(x => fs.writeFileSync(`${globalConfigPath}/curriculum.json`, x));
|