mirror of
https://github.com/microsoft/monaco-editor.git
synced 2025-12-22 10:25:42 +01:00
More website scripts
This commit is contained in:
parent
5607714540
commit
66cbc99a1e
1 changed files with 16 additions and 0 deletions
16
gulpfile.js
16
gulpfile.js
|
|
@ -319,6 +319,22 @@ gulp.task('website', ['clean-website', 'playground-samples'], function() {
|
||||||
cp.execSync('npm install monaco-editor', {
|
cp.execSync('npm install monaco-editor', {
|
||||||
cwd: path.join(__dirname, '../monaco-editor-website')
|
cwd: path.join(__dirname, '../monaco-editor-website')
|
||||||
});
|
});
|
||||||
|
cp.execSync('git init', {
|
||||||
|
cwd: path.join(__dirname, '../monaco-editor-website')
|
||||||
|
});
|
||||||
|
cp.execSync('git checkout -b gh-pages', {
|
||||||
|
cwd: path.join(__dirname, '../monaco-editor-website')
|
||||||
|
});
|
||||||
|
cp.execSync('git add .', {
|
||||||
|
cwd: path.join(__dirname, '../monaco-editor-website')
|
||||||
|
});
|
||||||
|
cp.execSync('git commit -m "Publish website"', {
|
||||||
|
cwd: path.join(__dirname, '../monaco-editor-website')
|
||||||
|
});
|
||||||
|
cp.execSync('git remote add origin https://github.com/Microsoft/monaco-editor.git', {
|
||||||
|
cwd: path.join(__dirname, '../monaco-editor-website')
|
||||||
|
});
|
||||||
|
console.log('RUN monaco-editor-website>git push origin gh-pages --force')
|
||||||
this.emit('end');
|
this.emit('end');
|
||||||
}))
|
}))
|
||||||
);
|
);
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue