From 5ae54dd9d0e1aa9ea5f28ca529a43f2c8b6dbf70 Mon Sep 17 00:00:00 2001 From: Alex Dima Date: Thu, 20 Oct 2016 10:41:15 +0200 Subject: [PATCH] Reduce devDependencies --- build/lib/nls.js | 8 +++++++- build/lib/nls.ts | 9 ++++++++- build/lib/typings/clone.d.ts | 4 ---- package.json | 4 ++-- 4 files changed, 17 insertions(+), 8 deletions(-) delete mode 100644 build/lib/typings/clone.d.ts diff --git a/build/lib/nls.js b/build/lib/nls.js index b3c881d9e99..305b2c1487d 100644 --- a/build/lib/nls.js +++ b/build/lib/nls.js @@ -5,7 +5,6 @@ var event_stream_1 = require('event-stream'); var File = require('vinyl'); var sm = require('source-map'); var assign = require('object-assign'); -var clone = require('clone'); var path = require('path'); var CollectStepResult; (function (CollectStepResult) { @@ -28,6 +27,13 @@ function collect(node, fn) { loop(node); return result; } +function clone(object) { + var result = {}; + for (var id in object) { + result[id] = object[id]; + } + return result; +} function template(lines) { var indent = '', wrap = ''; if (lines.length > 1) { diff --git a/build/lib/nls.ts b/build/lib/nls.ts index 309926daaca..2a813f6301b 100644 --- a/build/lib/nls.ts +++ b/build/lib/nls.ts @@ -5,7 +5,6 @@ import { Stream } from 'stream'; import File = require('vinyl'); import * as sm from 'source-map'; import assign = require('object-assign'); -import clone = require('clone'); import path = require('path'); declare class FileSourceMap extends File { @@ -38,6 +37,14 @@ function collect(node: ts.Node, fn: (node: ts.Node) => CollectStepResult): ts.No return result; } +function clone(object:T): T { + var result = {}; + for (var id in object) { + result[id] = object[id]; + } + return result; +} + function template(lines: string[]): string { let indent = '', wrap = ''; diff --git a/build/lib/typings/clone.d.ts b/build/lib/typings/clone.d.ts deleted file mode 100644 index 30fa9aac2ca..00000000000 --- a/build/lib/typings/clone.d.ts +++ /dev/null @@ -1,4 +0,0 @@ -declare module 'clone' { - function fn(obj: T): T; - export = fn; -} \ No newline at end of file diff --git a/package.json b/package.json index d97a650c336..52cfab9aee2 100644 --- a/package.json +++ b/package.json @@ -12,7 +12,8 @@ "test": "mocha", "preinstall": "node build/npm/preinstall.js", "postinstall": "node build/npm/postinstall.js", - "watch": "gulp watch" + "watch": "gulp watch", + "monaco-editor-setup": "node scripts/monaco-editor-setup.js" }, "dependencies": { "applicationinsights": "0.15.6", @@ -39,7 +40,6 @@ "async": "^1.4.0", "azure-storage": "^0.3.1", "clean-css": "3.4.6", - "clone": "^1.0.2", "coveralls": "^2.11.11", "cson-parser": "^1.3.3", "debounce": "^1.0.0", -- GitLab