Skip to content

Commit

Permalink
package vscode extension
Browse files Browse the repository at this point in the history
  • Loading branch information
koenekelschot committed Apr 10, 2020
1 parent 5d6705e commit 0347ada
Show file tree
Hide file tree
Showing 5 changed files with 390 additions and 29 deletions.
35 changes: 16 additions & 19 deletions .vscode/launch.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,26 +11,23 @@
"request": "launch",
"runtimeExecutable": "${execPath}",
"args": [
"--extensionDevelopmentPath=${workspaceFolder}/src/vscode"
"--extensionDevelopmentPath=${workspaceFolder}/dist/vscode"
],
"outFiles": [
"${workspaceFolder}/dist/vscode/**/*.js"
],
"preLaunchTask": "npm: build-vscode"
"preLaunchTask": "npm: vscode/build"
},
{
"name": "Extension Tests",
"type": "extensionHost",
"request": "launch",
"runtimeExecutable": "${execPath}",
"args": [
"--extensionDevelopmentPath=${workspaceFolder}",
"--extensionTestsPath=${workspaceFolder}/out/test/suite/index"
],
"outFiles": [
"${workspaceFolder}/out/test/**/*.js"
],
"preLaunchTask": "${defaultBuildTask}"
}
// {
// "name": "Extension Tests",
// "type": "extensionHost",
// "request": "launch",
// "runtimeExecutable": "${execPath}",
// "args": [
// "--extensionDevelopmentPath=${workspaceFolder}",
// "--extensionTestsPath=${workspaceFolder}/out/test/suite/index"
// ],
// "outFiles": [
// "${workspaceFolder}/out/test/**/*.js"
// ],
// "preLaunchTask": "${defaultBuildTask}"
// }
]
}
13 changes: 12 additions & 1 deletion build/webpack.vscode.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
const webpack = require("webpack");
const path = require('path');
const CopyWebpackPlugin = require('copy-webpack-plugin');
const { CleanWebpackPlugin } = require('clean-webpack-plugin');

const srcDir = '../src/vscode';
Expand Down Expand Up @@ -33,6 +34,16 @@ module.exports = {
extensions: ['.ts', '.js']
},
plugins: [
new CleanWebpackPlugin()
new CleanWebpackPlugin(),
new CopyWebpackPlugin([
{
from: '*',
to: path.join(__dirname, outDir),
ignore: ['*.ts']
}
],
{
context: path.join(__dirname, srcDir)
})
]
}
Loading

0 comments on commit 0347ada

Please sign in to comment.