Skip to content

Commit

Permalink
Merge pull request #2835 from akshita31/webpack
Browse files Browse the repository at this point in the history
Use webpack to reduce the code loading times
  • Loading branch information
colombod authored Feb 6, 2019
2 parents 656c182 + 93d69f8 commit ae80ee3
Show file tree
Hide file tree
Showing 31 changed files with 2,575 additions and 211 deletions.
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

0 comments on commit ae80ee3

Please sign in to comment.