Skip to content

Commit

Permalink
Webpack only during vsce package
Browse files Browse the repository at this point in the history
  • Loading branch information
parithon committed Feb 17, 2019
1 parent 958314e commit 7a52006
Show file tree
Hide file tree
Showing 4 changed files with 22 additions and 13 deletions.
9 changes: 9 additions & 0 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

20 changes: 8 additions & 12 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -181,27 +181,23 @@
}
},
"scripts": {
"vscode:prepublish": "npm run compile:prod",
"compile:tsc": "tsc -p ./",
"watch:tsc": "tsc -watch -p ./",
"compile:prod": "webpack --config webpack.config.js --mode production",
"compile": "webpack --config webpack.config.js --mode development",
"watch": "webpack --config webpack.config.js",
"vscode:prepublish": "webpack --config webpack.config.js --mode production",
"compile": "tsc -p ./",
"watch": "tsc -watch -p ./",
"postinstall": "node ./node_modules/vscode/bin/install",
"test": "npm run compile && node ./node_modules/vscode/bin/test"
},
"devDependencies": {
"@types/mocha": "^2.2.42",
"@types/keytar": "^4.0.1",
"@types/mocha": "^2.2.42",
"@types/node": "^8.10.39",
"vscode": "^1.1.26",
"clean-webpack-plugin": "^1.0.1",
"ts-loader": "^5.3.3",
"tslint": "^5.8.0",
"typescript": "^2.6.1",
"vscode": "^1.1.26",
"webpack": "^4.29.4",
"webpack-cli": "^3.2.3",
"ts-loader": "^5.3.3",
"bufferutil": "^4.0.1",
"utf-8-validate": "^5.0.2"
"webpack-cli": "^3.2.3"
},
"dependencies": {
"twitch-js": "^1.2.17",
Expand Down
2 changes: 1 addition & 1 deletion tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
"lib": [
"es6"
],
// sourceMap": true,
"sourceMap": true,
"rootDir": "src",
/* Strict Type-Checking Option */
"strict": true /* enable all strict type-checking options */,
Expand Down
4 changes: 4 additions & 0 deletions webpack.config.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
'use strict';

const path = require('path');
const CleanWebpackPlugin = require('clean-webpack-plugin');

module.exports = {
target: 'node',
Expand All @@ -9,6 +10,9 @@ module.exports = {
twitchLanguageServer: './src/twitchLanguageServer.ts',
},
devtool: 'source-map',
plugins: [
new CleanWebpackPlugin(['out'])
],
module: {
rules: [
{
Expand Down

0 comments on commit 7a52006

Please sign in to comment.