WIP ts
This commit is contained in:
parent
b498090d7b
commit
220b20476f
10 changed files with 19 additions and 25 deletions
|
|
@ -48,5 +48,5 @@
|
||||||
"source=decla-red-shared-node_modules-static,target=/workspace/shared/node_modules,type=volume"
|
"source=decla-red-shared-node_modules-static,target=/workspace/shared/node_modules,type=volume"
|
||||||
],
|
],
|
||||||
"forwardPorts": [3000, 8080],
|
"forwardPorts": [3000, 8080],
|
||||||
"postCreateCommand": "chown node:node ./**/node_modules && sudo npm install && npm run initialize && npm run build"
|
"postCreateCommand": "chown node:node ./**/node_modules && npm install && npm run initialize && npm run build"
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -27,7 +27,7 @@
|
||||||
"raw-loader": "^4.0.1",
|
"raw-loader": "^4.0.1",
|
||||||
"resolve-url-loader": "^3.1.1",
|
"resolve-url-loader": "^3.1.1",
|
||||||
"terser-webpack-plugin": "^2.3.5",
|
"terser-webpack-plugin": "^2.3.5",
|
||||||
"typescript": "^3.9.7",
|
"typescript": "^4.0.3",
|
||||||
"webpack": "^4.43.0",
|
"webpack": "^4.43.0",
|
||||||
"webpack-cli": "^3.3.11",
|
"webpack-cli": "^3.3.11",
|
||||||
"webpack-dev-server": "^3.10.3"
|
"webpack-dev-server": "^3.10.3"
|
||||||
|
|
|
||||||
|
|
@ -1,16 +1,16 @@
|
||||||
{
|
{
|
||||||
"compilerOptions": {
|
"compilerOptions": {
|
||||||
"outDir": "lib",
|
"outDir": "dist",
|
||||||
"sourceMap": true,
|
"sourceMap": true,
|
||||||
|
"target": "es5",
|
||||||
"declaration": true,
|
"declaration": true,
|
||||||
"declarationMap": true,
|
"declarationMap": true,
|
||||||
"target": "es2015",
|
|
||||||
"esModuleInterop": true,
|
"esModuleInterop": true,
|
||||||
"strict": true,
|
"strict": true,
|
||||||
"experimentalDecorators": true,
|
"experimentalDecorators": true,
|
||||||
"downlevelIteration": true,
|
"downlevelIteration": true,
|
||||||
"moduleResolution": "Node",
|
"moduleResolution": "node",
|
||||||
"module": "es6",
|
"module": "commonjs",
|
||||||
"composite": true,
|
"composite": true,
|
||||||
"lib": ["dom", "es2017"]
|
"lib": ["dom", "es2017"]
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -32,7 +32,7 @@
|
||||||
"sass-loader": "^9.0.2",
|
"sass-loader": "^9.0.2",
|
||||||
"svg-url-loader": "^6.0.0",
|
"svg-url-loader": "^6.0.0",
|
||||||
"terser-webpack-plugin": "^4.2.2",
|
"terser-webpack-plugin": "^4.2.2",
|
||||||
"typescript": "^3.9.7",
|
"typescript": "^4.0.3",
|
||||||
"webpack": "^4.43.0",
|
"webpack": "^4.43.0",
|
||||||
"webpack-bundle-analyzer": "^3.9.0",
|
"webpack-bundle-analyzer": "^3.9.0",
|
||||||
"webpack-cli": "^3.3.11",
|
"webpack-cli": "^3.3.11",
|
||||||
|
|
|
||||||
|
|
@ -1,14 +1,15 @@
|
||||||
{
|
{
|
||||||
"compilerOptions": {
|
"compilerOptions": {
|
||||||
|
"outDir": "dist",
|
||||||
|
"target": "es5",
|
||||||
"sourceMap": true,
|
"sourceMap": true,
|
||||||
"declaration": true,
|
"declaration": true,
|
||||||
"declarationMap": true,
|
"declarationMap": true,
|
||||||
"target": "es6",
|
|
||||||
"esModuleInterop": true,
|
"esModuleInterop": true,
|
||||||
"strict": true,
|
"strict": true,
|
||||||
"experimentalDecorators": true,
|
"experimentalDecorators": true,
|
||||||
"downlevelIteration": true,
|
"downlevelIteration": true,
|
||||||
"moduleResolution": "Node",
|
"moduleResolution": "node",
|
||||||
"module": "es6",
|
"module": "es6",
|
||||||
"composite": true,
|
"composite": true,
|
||||||
"lib": ["dom", "es2017"]
|
"lib": ["dom", "es2017"]
|
||||||
|
|
|
||||||
|
|
@ -38,7 +38,7 @@
|
||||||
"prettier": "^2.0.5",
|
"prettier": "^2.0.5",
|
||||||
"sdf-2d": "^0.4.0",
|
"sdf-2d": "^0.4.0",
|
||||||
"socket.io-client": "^2.3.1",
|
"socket.io-client": "^2.3.1",
|
||||||
"typescript": "^3.9.7",
|
"typescript": "^4.0.3",
|
||||||
"uuid": "^8.2.0"
|
"uuid": "^8.2.0"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -17,7 +17,7 @@
|
||||||
"clean-webpack-plugin": "^3.0.0",
|
"clean-webpack-plugin": "^3.0.0",
|
||||||
"terser-webpack-plugin": "^2.3.8",
|
"terser-webpack-plugin": "^2.3.8",
|
||||||
"ts-loader": "^8.0.3",
|
"ts-loader": "^8.0.3",
|
||||||
"typescript": "^3.9.7",
|
"typescript": "^4.0.3",
|
||||||
"webpack": "^4.43.0",
|
"webpack": "^4.43.0",
|
||||||
"webpack-cli": "^3.3.11"
|
"webpack-cli": "^3.3.11"
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -1,16 +1,16 @@
|
||||||
{
|
{
|
||||||
"compilerOptions": {
|
"compilerOptions": {
|
||||||
|
"target": "es5",
|
||||||
"outDir": "lib",
|
"outDir": "lib",
|
||||||
"sourceMap": true,
|
"sourceMap": true,
|
||||||
"declaration": true,
|
"declaration": true,
|
||||||
"declarationMap": true,
|
"declarationMap": true,
|
||||||
"target": "es2015",
|
|
||||||
"esModuleInterop": true,
|
"esModuleInterop": true,
|
||||||
"strict": true,
|
"strict": true,
|
||||||
"experimentalDecorators": true,
|
"experimentalDecorators": true,
|
||||||
"downlevelIteration": true,
|
"downlevelIteration": true,
|
||||||
"moduleResolution": "Node",
|
"moduleResolution": "node",
|
||||||
"module": "es6",
|
"module": "commonjs",
|
||||||
"composite": true,
|
"composite": true,
|
||||||
"lib": ["dom", "es2017"]
|
"lib": ["dom", "es2017"]
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -1,5 +1,4 @@
|
||||||
const path = require('path');
|
const path = require('path');
|
||||||
const { CleanWebpackPlugin } = require('clean-webpack-plugin');
|
|
||||||
|
|
||||||
const PATHS = {
|
const PATHS = {
|
||||||
entryPoint: path.resolve(__dirname, 'src/main.ts'),
|
entryPoint: path.resolve(__dirname, 'src/main.ts'),
|
||||||
|
|
@ -28,12 +27,7 @@ module.exports = (env, argv) => ({
|
||||||
optimization: {
|
optimization: {
|
||||||
minimize: false,
|
minimize: false,
|
||||||
},
|
},
|
||||||
plugins: [
|
plugins: [],
|
||||||
new CleanWebpackPlugin({
|
|
||||||
protectWebpackAssets: false,
|
|
||||||
cleanAfterEveryBuildPatterns: [],
|
|
||||||
}),
|
|
||||||
],
|
|
||||||
module: {
|
module: {
|
||||||
rules: [
|
rules: [
|
||||||
{
|
{
|
||||||
|
|
|
||||||
|
|
@ -9,10 +9,9 @@
|
||||||
"strict": true,
|
"strict": true,
|
||||||
"experimentalDecorators": true,
|
"experimentalDecorators": true,
|
||||||
"downlevelIteration": true,
|
"downlevelIteration": true,
|
||||||
"moduleResolution": "Node",
|
"moduleResolution": "node",
|
||||||
"module": "es6",
|
"module": "commonjs",
|
||||||
"composite": true,
|
"composite": true,
|
||||||
"lib": ["dom", "es2017"]
|
"lib": ["dom", "es2017"]
|
||||||
},
|
}
|
||||||
"include": ["**/src/**/*", "package.json"]
|
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue