Skip to content

Commit a5d2bdf

Browse files
Use webpack to reduce package size (microsoft#533)
* Use webpack to reduce package size Signed-off-by: Jinbo Wang <[email protected]> * Fix build failure Signed-off-by: Jinbo Wang <[email protected]> * Add license header Signed-off-by: Jinbo Wang <[email protected]>
1 parent 4a85531 commit a5d2bdf

10 files changed

Lines changed: 2984 additions & 375 deletions

File tree

‎.gitignore‎

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,4 +4,5 @@ server
44
node_modules
55
.vscode-test/
66
vscode-java-debug-*.vsix
7-
packages/
7+
packages/
8+
dist

‎.travis.yml‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,4 +23,5 @@ install:
2323
script:
2424
- gulp tslint
2525
- vsce package
26+
- npm run compile
2627
- npm test --silent

‎.vscode/launch.json‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@
2222
"stopOnEntry": false,
2323
"sourceMaps": true,
2424
"outFiles": [ "${workspaceRoot}/out/test/**/*.js" ],
25-
"preLaunchTask": "npm: watch"
25+
"preLaunchTask": "npm: compile"
2626
}
2727
]
2828
}

‎.vscode/tasks.json‎

Lines changed: 16 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,22 @@
1313
{
1414
"type": "npm",
1515
"script": "watch",
16-
"problemMatcher": "$tsc-watch",
16+
"problemMatcher": {
17+
"owner": "typescript",
18+
"pattern": [
19+
{
20+
"regexp": "\\[tsl\\] ERROR",
21+
"file": 1,
22+
"location": 2,
23+
"message": 3
24+
}
25+
],
26+
"background": {
27+
"activeOnStart": true,
28+
"beginsPattern": "Compilation \\w+ starting…",
29+
"endsPattern": "Compilation\\s+finished"
30+
}
31+
},
1732
"isBackground": true,
1833
"presentation": {
1934
"reveal": "never"

‎.vscodeignore‎

Lines changed: 9 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
.vscode/**
22
.vscode-test/**
3-
out/test/**
3+
out/**
44
test/**
55
src/**
66
**/*.map
@@ -10,4 +10,11 @@ gulpfile.js
1010
images/**
1111
testprojects/**
1212
TestPlan.md
13-
.github/**
13+
.github/**
14+
.travis.yml
15+
tsconfig.json
16+
tslint.json
17+
packages
18+
package-lock.json
19+
node_modules
20+
webpack.config.js

‎gulpfile.js‎

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,6 @@
1+
// Copyright (c) Microsoft Corporation. All rights reserved.
2+
// Licensed under the MIT license.
3+
14
const gulp = require("gulp");
25
const cp = require('child_process');
36
const tslint = require("gulp-tslint");

0 commit comments

Comments
 (0)