Update commands for webpack
- Move extension to dist/extension.js - Ignore node_modules when publishing - Fix debugging tests
This commit is contained in:
Родитель
35eee484be
Коммит
dd15b5e50d
|
@ -1,3 +1,4 @@
|
|||
dist
|
||||
out
|
||||
node_modules
|
||||
.vscode-test/
|
||||
|
|
|
@ -23,9 +23,8 @@
|
|||
"request": "launch",
|
||||
"runtimeExecutable": "${execPath}",
|
||||
"args": [
|
||||
"${workspaceFolder}/src/test/workspace/",
|
||||
"--extensionDevelopmentPath=${workspaceFolder}",
|
||||
"--extensionTestsPath=${workspaceFolder}/out/test"
|
||||
"--extensionTestsPath=${workspaceFolder}/out/test/suite/index"
|
||||
],
|
||||
"outFiles": [
|
||||
"${workspaceFolder}/out/test/**/*.js"
|
||||
|
|
|
@ -5,15 +5,12 @@
|
|||
.vsts-ci.yml
|
||||
tsconfig.json
|
||||
tslint.json
|
||||
vsc-extension-quickstart.md
|
||||
.vscode/**
|
||||
.vscode-test/**
|
||||
.pipelines/**
|
||||
examples/**
|
||||
out/genschema/**
|
||||
out/test/**
|
||||
out/testfromserver/**
|
||||
out/unittest/**
|
||||
out/**/*.map
|
||||
src/**
|
||||
tools/**
|
||||
webpack.config.js
|
||||
.azure-pipelines/
|
||||
.vscode/
|
||||
.vscode-test/
|
||||
examples/
|
||||
node_modules/
|
||||
out/
|
||||
src/
|
||||
tools/
|
||||
|
|
12
package.json
12
package.json
|
@ -40,7 +40,7 @@
|
|||
"onLanguage:azure-pipelines",
|
||||
"onCommand:azure-pipelines.configure-pipeline"
|
||||
],
|
||||
"main": "./out/extension",
|
||||
"main": "./dist/extension",
|
||||
"contributes": {
|
||||
"languages": [
|
||||
{
|
||||
|
@ -116,11 +116,11 @@
|
|||
},
|
||||
"scripts": {
|
||||
"vscode:prepublish": "npm run compile",
|
||||
"compile": "tsc -p ./ && node copyStaticFiles.js",
|
||||
"webpack:dev": "webpack --mode development --progress --color && node copyStaticFiles.js",
|
||||
"watch": "node copyStaticFiles.js && tsc -watch -p ./",
|
||||
"test": "node ./out/test/runTest.js",
|
||||
"unittest": "node_modules/.bin/mocha -u tdd out/unittest/*.js"
|
||||
"compile": "webpack --mode production --progress --color && node copyStaticFiles.js",
|
||||
"compile:dev": "webpack --mode development --progress --color && node copyStaticFiles.js",
|
||||
"watch": "node copyStaticFiles.js && webpack --mode development --progress --color --watch",
|
||||
"test": "tsc -p ./ && node ./out/test/runTest.js",
|
||||
"unittest": "tsc -p ./ && npx mocha -u tdd out/unittest/*.js"
|
||||
},
|
||||
"devDependencies": {
|
||||
"@types/fs-extra": "4.0.5",
|
||||
|
|
|
@ -9,7 +9,7 @@ const config = {
|
|||
target: 'node',
|
||||
entry: './src/extension.ts',
|
||||
output: {
|
||||
path: path.resolve(__dirname, 'out'),
|
||||
path: path.resolve(__dirname, 'dist'),
|
||||
filename: 'extension.js',
|
||||
libraryTarget: 'commonjs2',
|
||||
devtoolModuleFilenameTemplate: '../[resource-path]'
|
||||
|
|
Загрузка…
Ссылка в новой задаче