Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Use webpack to reduce the code loading times #2835

Merged
merged 16 commits into from
Feb 6, 2019
Merged
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ out
.razor
.vscode-test
.razor
dist/

install.*

Expand Down
8 changes: 4 additions & 4 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
language: node_js

node_js:
- "10"
- "8"

env:
- CODE_VERSION=1.28.0
Expand Down Expand Up @@ -32,9 +32,9 @@ install:

script:
- gulp 'vsix:release:unpackage'
- gulp cov:instrument --codeExtensionPath ./vsix/extension
- gulp test --codeExtensionPath ./vsix/extension
- gulp cov:report --codeExtensionPath ./vsix/extension
- gulp cov:instrument
- gulp test
- gulp cov:report
- npm run test:artifacts
- 'if [[ "$TRAVIS_BRANCH" != "master" && "$TRAVIS_PULL_REQUEST" = "false" ]]; then npm run test:release; fi'

Expand Down
24 changes: 16 additions & 8 deletions .vscode/launch.json
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,9 @@
"stopOnEntry": false,
"sourceMaps": true,
"outFiles": [
"${workspaceRoot}/out/src/**/*.js"
]
"${workspaceRoot}/dist/*.js"
],
"preLaunchTask": "buildDev"
},
{
"type": "node",
Expand All @@ -32,14 +33,16 @@
"internalConsoleOptions": "openOnSessionStart",
"outFiles": [
"${workspaceRoot}/out/test/**/*.js"
]
],
"preLaunchTask": "build"
},
{
"name": "Launch Feature Tests",
"type": "extensionHost",
"request": "launch",
"runtimeExecutable": "${execPath}",
"args": [
"--disable-extensions",
"--extensionDevelopmentPath=${workspaceRoot}",
"--extensionTestsPath=${workspaceRoot}/out/test/featureTests"
],
Expand All @@ -53,14 +56,16 @@
"sourceMaps": true,
"outFiles": [
"${workspaceRoot}/out/test/**/*.js"
]
],
"preLaunchTask": "build"
},
{
"name": "Launch singleCsproj Workspace Tests",
"type": "extensionHost",
"request": "launch",
"runtimeExecutable": "${execPath}",
"args": [
"--disable-extensions",
"${workspaceRoot}/test/integrationTests/testAssets/singleCsproj",
"--extensionDevelopmentPath=${workspaceRoot}",
"--extensionTestsPath=${workspaceRoot}/out/test/integrationTests"
Expand All @@ -75,15 +80,17 @@
"stopOnEntry": false,
"sourceMaps": true,
"outFiles": [
"${workspaceRoot}/out/test/**/*.js"
]
"${workspaceRoot}/dist/*.js"
],
"preLaunchTask": "buildDev"
},
{
"name": "Launch slnWithCsproj Workspace Tests",
"type": "extensionHost",
"request": "launch",
"runtimeExecutable": "${execPath}",
"args": [
"--disable-extensions",
"${workspaceRoot}/test/integrationTests/testAssets/slnWithCsproj",
"--extensionDevelopmentPath=${workspaceRoot}",
"--extensionTestsPath=${workspaceRoot}/out/test/integrationTests"
Expand All @@ -98,8 +105,9 @@
"stopOnEntry": false,
"sourceMaps": true,
"outFiles": [
"${workspaceRoot}/out/test/**/*.js"
]
"${workspaceRoot}/dist/*.js"
],
"preLaunchTask": "buildDev"
},
{
"type": "node",
Expand Down
47 changes: 34 additions & 13 deletions .vscode/tasks.json
Original file line number Diff line number Diff line change
@@ -1,32 +1,53 @@
{
"version": "0.1.0",
"version": "2.0.0",
"presentation": {
"echo": true,
"reveal": "always",
"focus": false,
"panel": "shared"
},
"tasks": [
{
"taskName": "build",
"label": "build",
"command": "npm",
"isShellCommand": true,
"type": "shell",
"args": [
"run",
"compile"
],
"showOutput": "always",
"isBuildCommand": true,
"problemMatcher":"$tsc"
"group": {
"kind": "build",
"isDefault": true
}
},
{
"taskName": "test",
"label": "buildDev",
"command": "npm",
"type": "shell",
"args": [
"run",
"compileDev"
],
"group": {
"kind": "build",
"isDefault": true
}
},
{
"label": "test",
"command": "echo",
"showOutput": "always",
"isShellCommand": true,
"group": {
"kind": "test",
"isDefault": true
},
"args": [
"Run tests in VS Code by launching the debugger with the 'Launch Tests' configuration."
],
"isTestCommand": true
]
},
{
"taskName": "tslint",
"label": "tslint",
"command": "gulp",
"isShellCommand": true,
"type": "shell",
"args": [
"tslint"
],
Expand Down
4 changes: 3 additions & 1 deletion offline.vscodeignore
Original file line number Diff line number Diff line change
Expand Up @@ -2,17 +2,19 @@
.logs/**
.nyc_output/**
!.omnisharp/**
!.razor/**
.rpt2_cache/**
.travis/**
.vscode/**
.vscode-test/**
coverage/**
out/test/**
out/**
src/**
tasks/**
test/**
typings/**
vsix/**
node_modules

**/*.map
*.vsix
Expand Down
Loading