mirror of
https://github.com/microsoft/monaco-editor.git
synced 2025-12-22 07:00:11 +01:00
Break up the gulp website task
This commit is contained in:
parent
0f4f663181
commit
3664cb4445
3 changed files with 637 additions and 633 deletions
13
gulpfile.js
13
gulpfile.js
|
|
@ -519,7 +519,7 @@ function addPluginThirdPartyNotices() {
|
|||
// --- website
|
||||
|
||||
gulp.task('clean-website', function(cb) { rimraf('../monaco-editor-website', { maxBusyTries: 1 }, cb); });
|
||||
gulp.task('website', ['clean-website'], function() {
|
||||
gulp.task('build-website', ['clean-website'], function() {
|
||||
|
||||
const initialCWD = process.cwd();
|
||||
|
||||
|
|
@ -653,6 +653,13 @@ gulp.task('website', ['clean-website'], function() {
|
|||
});
|
||||
fs.unlink('../monaco-editor-website/package.json');
|
||||
|
||||
this.emit('end');
|
||||
}))
|
||||
);
|
||||
|
||||
});
|
||||
|
||||
gulp.task('website', ['build-website'], function() {
|
||||
cp.execSync('git init', {
|
||||
cwd: path.join(__dirname, '../monaco-editor-website')
|
||||
});
|
||||
|
|
@ -681,10 +688,6 @@ gulp.task('website', ['clean-website'], function() {
|
|||
cwd: path.join(__dirname, '../monaco-editor-website')
|
||||
});
|
||||
console.log('RUN monaco-editor-website>git push origin gh-pages --force')
|
||||
this.emit('end');
|
||||
}))
|
||||
);
|
||||
|
||||
});
|
||||
|
||||
gulp.task('generate-test-samples', function() {
|
||||
|
|
|
|||
1206
package-lock.json
generated
1206
package-lock.json
generated
File diff suppressed because it is too large
Load diff
1
website/.gitignore
vendored
1
website/.gitignore
vendored
|
|
@ -1 +1,2 @@
|
|||
node_modules/monaco-editor/dev
|
||||
node_modules/monaco-editor/esm
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue