Improve website script

pull/2455/head
Alexandru Dima 4 years ago
parent 398b1e18de
commit e602dddb6c
No known key found for this signature in database
GPG Key ID: 6E58D7B045760DA0

@ -644,7 +644,7 @@ const buildWebsiteTask = taskSeries(cleanWebsiteTask, function() {
});
gulp.task('build-website', buildWebsiteTask);
gulp.task('website', taskSeries(buildWebsiteTask, function() {
gulp.task('prepare-website-branch', async function() {
cp.execSync('git init', {
cwd: path.join(__dirname, '../monaco-editor-website')
});
@ -673,7 +673,7 @@ gulp.task('website', taskSeries(buildWebsiteTask, function() {
cwd: path.join(__dirname, '../monaco-editor-website')
});
console.log('RUN monaco-editor-website>git push origin gh-pages --force');
}));
});
const generateTestSamplesTask = function() {
var sampleNames = fs.readdirSync(path.join(__dirname, 'test/samples'));

@ -8,7 +8,7 @@
"scripts": {
"simpleserver": "gulp simpleserver",
"release": "gulp release",
"website": "gulp website && npm run typedoc",
"website": "gulp build-website && npm run typedoc && gulp prepare-website-branch",
"build-website": "gulp build-website && npm run typedoc",
"typedoc": "cd typedoc && \"../node_modules/.bin/typedoc\" --options ./typedoc.json"
},

Loading…
Cancel
Save