Skip to content

Commit 5de420e

Browse files
authored
Decrease F5 workflow time w/ VSCode (#3843)
* Decrease F5 workflow time w/ VSCode webpack is being called twice. Once with --mode production and then rewritten with --mode development. Fixing tasks and launch.
1 parent 6a73275 commit 5de420e

File tree

2 files changed

+4
-6
lines changed

2 files changed

+4
-6
lines changed

Extension/.vscode/tasks.json

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -64,9 +64,6 @@
6464
"run",
6565
"compileDev"
6666
],
67-
"dependsOn": [
68-
"TypeScript Compile"
69-
],
7067
"problemMatcher": "$tsc-watch"
7168
},
7269
{

Extension/package.json

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1459,14 +1459,15 @@
14591459
},
14601460
"scripts": {
14611461
"compile": "npm run vscode:prepublish",
1462-
"compileDev": "webpack --mode development",
1462+
"compileDev": "npm run prepublishjs && webpack --mode development",
14631463
"generateOptionsSchema": "gulp generateOptionsSchema",
14641464
"postinstall": "node ./node_modules/vscode/bin/install",
1465+
"prepublishjs": "node ./tools/prepublish.js",
14651466
"pretest": "tsc -p test.tsconfig.json",
14661467
"pr-check": "gulp pr-check",
14671468
"tslint": "gulp tslint",
14681469
"unitTests": "gulp unitTests",
1469-
"vscode:prepublish": "node ./tools/prepublish.js && webpack --mode production",
1470+
"vscode:prepublish": "npm run prepublishjs && webpack --mode production",
14701471
"watch": "webpack --watch --mode development"
14711472
},
14721473
"devDependencies": {
@@ -1670,4 +1671,4 @@
16701671
"binaries": []
16711672
}
16721673
]
1673-
}
1674+
}

0 commit comments

Comments
 (0)