From e602dddb6c9033777951c9f963cc967cbda10e66 Mon Sep 17 00:00:00 2001 From: Alexandru Dima Date: Fri, 5 Mar 2021 17:06:47 +0100 Subject: [PATCH] Improve website script --- gulpfile.js | 4 ++-- package.json | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/gulpfile.js b/gulpfile.js index 13543f42..92bd2788 100644 --- a/gulpfile.js +++ b/gulpfile.js @@ -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')); diff --git a/package.json b/package.json index 06968598..7dd3a2e3 100644 --- a/package.json +++ b/package.json @@ -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" },