mirror of
https://github.com/microsoft/monaco-editor.git
synced 2025-12-22 12:45:39 +01:00
gupfile website: temporarily create package.json
This commit is contained in:
parent
ac3194b4b8
commit
e7a464ac1a
1 changed files with 5 additions and 0 deletions
|
|
@ -359,9 +359,14 @@ gulp.task('website', ['clean-website', 'playground-samples'], function() {
|
||||||
.pipe(es.through(function(data) {
|
.pipe(es.through(function(data) {
|
||||||
this.emit('data', data);
|
this.emit('data', data);
|
||||||
}, function() {
|
}, function() {
|
||||||
|
|
||||||
|
// temporarily create package.json so that npm install doesn't bark
|
||||||
|
fs.writeFileSync('../monaco-editor-website/package.json', '{}');
|
||||||
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')
|
||||||
});
|
});
|
||||||
|
fs.unlink('../monaco-editor-website/package.json');
|
||||||
|
|
||||||
cp.execSync('git init', {
|
cp.execSync('git init', {
|
||||||
cwd: path.join(__dirname, '../monaco-editor-website')
|
cwd: path.join(__dirname, '../monaco-editor-website')
|
||||||
});
|
});
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue