浏览代码

Add Copyright headers

Alex Dima 7 年之前
父节点
当前提交
e8e78d99db
共有 6 个文件被更改,包括 25 次插入10 次删除
  1. 2 2
      .npmignore
  2. 5 5
      package.json
  3. 5 0
      scripts/copy.js
  4. 4 0
      scripts/release.js
  5. 8 1
      scripts/rmdir.js
  6. 1 2
      scripts/webpack.js

+ 2 - 2
.npmignore

@@ -1,10 +1,10 @@
 /.vscode/
 /.vscode/
-/lib/
 /out/
 /out/
 /scripts/
 /scripts/
 /src/
 /src/
 /test/
 /test/
-/release/dev/
+/.gitignore
 /.npmignore
 /.npmignore
+/package-lock.json
 /webpack.dev.config.js
 /webpack.dev.config.js
 /webpack.min.config.js
 /webpack.min.config.js

+ 5 - 5
package.json

@@ -20,11 +20,11 @@
   },
   },
   "devDependencies": {
   "devDependencies": {
     "jsonc-parser": "2.0.0-next.1",
     "jsonc-parser": "2.0.0-next.1",
-    "monaco-editor-core": "^0.11.1",
-    "monaco-languages": "^0.9.0",
-    "typescript": "^2.7.1",
-    "vscode-json-languageservice": "^3.0.12",
-    "vscode-languageserver-types": "^3.6.1",
+    "monaco-editor-core": "0.11.1",
+    "monaco-languages": "0.9.0",
+    "typescript": "2.7.2",
+    "vscode-json-languageservice": "3.0.12",
+    "vscode-languageserver-types": "3.6.1",
     "webpack": "^4.1.1",
     "webpack": "^4.1.1",
     "webpack-cli": "^2.0.10"
     "webpack-cli": "^2.0.10"
   }
   }

+ 5 - 0
scripts/copy.js

@@ -1,3 +1,8 @@
+/*---------------------------------------------------------------------------------------------
+ *  Copyright (c) Microsoft Corporation. All rights reserved.
+ *  Licensed under the MIT License. See License.txt in the project root for license information.
+ *--------------------------------------------------------------------------------------------*/
+
 const fs = require('fs');
 const fs = require('fs');
 const path = require('path');
 const path = require('path');
 
 

+ 4 - 0
scripts/release.js

@@ -1,4 +1,8 @@
 "use strict";
 "use strict";
+/*---------------------------------------------------------------------------------------------
+ *  Copyright (c) Microsoft Corporation. All rights reserved.
+ *  Licensed under the MIT License. See License.txt in the project root for license information.
+ *--------------------------------------------------------------------------------------------*/
 exports.__esModule = true;
 exports.__esModule = true;
 var fs = require("fs");
 var fs = require("fs");
 var ts = require("typescript");
 var ts = require("typescript");

+ 8 - 1
scripts/rmdir.js

@@ -1,8 +1,15 @@
+/*---------------------------------------------------------------------------------------------
+ *  Copyright (c) Microsoft Corporation. All rights reserved.
+ *  Licensed under the MIT License. See License.txt in the project root for license information.
+ *--------------------------------------------------------------------------------------------*/
+
 const fs = require('fs');
 const fs = require('fs');
 const path = require('path');
 const path = require('path');
 
 
 const target = path.join(process.cwd(), process.argv[2]);
 const target = path.join(process.cwd(), process.argv[2]);
-rmDir(target);
+if (fs.existsSync(target)) {
+	rmDir(target);
+}
 console.log(`Deleted ${process.argv[2]}`);
 console.log(`Deleted ${process.argv[2]}`);
 
 
 function rmDir(dirPath) {
 function rmDir(dirPath) {

+ 1 - 2
scripts/webpack.js

@@ -25,5 +25,4 @@ exports.createWebpackConfig = function (isDev) {
 			})
 			})
 		],
 		],
 	};
 	};
-
-}
+};