소스 검색

gupfile website: temporarily create package.json

Martin Aeschlimann 9 년 전
부모
커밋
e7a464ac1a
1개의 변경된 파일5개의 추가작업 그리고 0개의 파일을 삭제
  1. 5 0
      gulpfile.js

+ 5 - 0
gulpfile.js

@@ -359,9 +359,14 @@ gulp.task('website', ['clean-website', 'playground-samples'], function() {
 		.pipe(es.through(function(data) {
 			this.emit('data', data);
 		}, 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', {
 				cwd: path.join(__dirname, '../monaco-editor-website')
 			});
+			fs.unlink('../monaco-editor-website/package.json');
+
 			cp.execSync('git init', {
 				cwd: path.join(__dirname, '../monaco-editor-website')
 			});