From 2b624c6388e2d33f77b05f20cab1956c31994719 Mon Sep 17 00:00:00 2001 From: Johannes Rieken Date: Fri, 30 Dec 2016 10:58:25 +0100 Subject: [PATCH] modernize prevewhtml-sample --- previewhtml-sample/package.json | 35 ++++++++++--------- previewhtml-sample/tsconfig.json | 8 +++-- previewhtml-sample/typings/node.d.ts | 1 - .../typings/vscode-typings.d.ts | 1 - 4 files changed, 23 insertions(+), 22 deletions(-) delete mode 100644 previewhtml-sample/typings/node.d.ts delete mode 100644 previewhtml-sample/typings/vscode-typings.d.ts diff --git a/previewhtml-sample/package.json b/previewhtml-sample/package.json index 4174e1f5..f0e709f0 100644 --- a/previewhtml-sample/package.json +++ b/previewhtml-sample/package.json @@ -4,22 +4,22 @@ "description": "A sample illustrating the use of TextContentProviders and the `vscode.previewHtml` command, introduce in 0.10.7", "version": "0.0.10", "publisher": "eg2", - "galleryBanner": { - "color": "#5c2d91", - "theme": "dark" - }, - "bugs": { - "url": "https://github.com/Microsoft/vscode-extension-samples/issues", - "email": "egamma@microsoft.com" - }, - "repository": { - "type": "git", - "url": "https://github.com/Microsoft/vscode-extension-samples.git" - }, + "galleryBanner": { + "color": "#5c2d91", + "theme": "dark" + }, + "bugs": { + "url": "https://github.com/Microsoft/vscode-extension-samples/issues", + "email": "egamma@microsoft.com" + }, + "repository": { + "type": "git", + "url": "https://github.com/Microsoft/vscode-extension-samples.git" + }, "homepage": "https://github.com/Microsoft/vscode-extension-samples/tree/master/textdocumentprovider-sample/README.md", - "categories": [ - "Other" - ], + "categories": [ + "Other" + ], "engines": { "vscode": "^0.10.7" }, @@ -51,6 +51,7 @@ }, "devDependencies": { "typescript": "^1.7.5", - "vscode": "^0.11.0" + "vscode": "^1.0.0", + "@types/node": "*" } -} \ No newline at end of file +} diff --git a/previewhtml-sample/tsconfig.json b/previewhtml-sample/tsconfig.json index 36ec8ae7..5aee25d9 100644 --- a/previewhtml-sample/tsconfig.json +++ b/previewhtml-sample/tsconfig.json @@ -3,11 +3,13 @@ "module": "commonjs", "target": "es5", "outDir": "out", - "noLib": true, + "lib": [ + "es6" + ], "sourceMap": true, - "rootDir": "." + "rootDir": "src" }, "exclude": [ "node_modules" ] -} \ No newline at end of file +} diff --git a/previewhtml-sample/typings/node.d.ts b/previewhtml-sample/typings/node.d.ts deleted file mode 100644 index 5ed7730b..00000000 --- a/previewhtml-sample/typings/node.d.ts +++ /dev/null @@ -1 +0,0 @@ -/// \ No newline at end of file diff --git a/previewhtml-sample/typings/vscode-typings.d.ts b/previewhtml-sample/typings/vscode-typings.d.ts deleted file mode 100644 index 61430b1c..00000000 --- a/previewhtml-sample/typings/vscode-typings.d.ts +++ /dev/null @@ -1 +0,0 @@ -///