Skip to content

Commit

Permalink
fix ts-webpack tasks (fixes #299)
Browse files Browse the repository at this point in the history
  • Loading branch information
aeschli committed Sep 24, 2021
1 parent c3dc498 commit 2fc804e
Show file tree
Hide file tree
Showing 5 changed files with 25 additions and 11 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -27,8 +27,9 @@
"compile": "webpack",
"watch": "webpack --watch",
"package": "webpack --mode production --devtool hidden-source-map",
"test-compile": "tsc -p . --outDir out",
"pretest": "<%= pkgManager %> run test-compile && <%= pkgManager %> run compile && <%= pkgManager %> run lint",
"compile-tests": "tsc -p . --outDir out",
"watch-tests": "tsc -p -w . --outDir out",
"pretest": "<%= pkgManager %> run compile-tests && <%= pkgManager %> run compile && <%= pkgManager %> run lint",
"lint": "eslint src --ext ts",
"test": "node ./out/test/runTest.js"<% if (insiders) { %>,
"update-proposed-api": "vscode-dts dev"<% } %>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
"lib": [
"ES2020"
],
"sourceMap": true,
"rootDir": "src",
"strict": true /* enable all strict type-checking options */
/* Additional Checks */
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -26,9 +26,10 @@
"--extensionTestsPath=${workspaceFolder}/out/test/suite/index"
],
"outFiles": [
"${workspaceFolder}/out/test/**/*.js"
"${workspaceFolder}/out/**/*.js",
"${workspaceFolder}/dist/**/*.js"
],
"preLaunchTask": "npm: test-watch"
"preLaunchTask": "tasks: watch-tests"
}
]
}
Original file line number Diff line number Diff line change
Expand Up @@ -7,12 +7,13 @@
"type": "npm",
"script": "watch",
"problemMatcher": [
"$ts-webpack-watch",
"$tslint-webpack-watch"
"$ts-webpack-watch",
"$tslint-webpack-watch"
],
"isBackground": true,
"presentation": {
"reveal": "never"
"reveal": "never",
"group": "watchers"
},
"group": {
"kind": "build",
Expand All @@ -21,13 +22,22 @@
},
{
"type": "npm",
"script": "test-watch",
"script": "watch-tests",
"problemMatcher": "$tsc-watch",
"isBackground": true,
"presentation": {
"reveal": "never"
"reveal": "never",
"group": "watchers"
},
"group": "build"
},
{
"label": "tasks: watch-tests",
"dependsOn": [
"npm: watch",
"npm: watch-tests"
],
"problemMatcher": []
}
]
}
5 changes: 3 additions & 2 deletions test/test.js
Original file line number Diff line number Diff line change
Expand Up @@ -769,9 +769,10 @@ describe('test code generator', function () {
"compile": "webpack",
"watch": "webpack --watch",
"package": "webpack --mode production --devtool hidden-source-map",
"test-compile": "tsc -p . --outDir out",
"compile-tests": "tsc -p . --outDir out",
"watch-tests": "tsc -p -w . --outDir out",
"lint": "eslint src --ext ts",
"pretest": "npm run test-compile && npm run compile && npm run lint",
"pretest": "npm run compile-tests && npm run compile && npm run lint",
"test": "node ./out/test/runTest.js"
},
"categories": [
Expand Down

0 comments on commit 2fc804e

Please sign in to comment.