🏃 fixed build ignoring some js

This commit is contained in:
Matei Adriel 2019-06-02 20:32:30 +00:00
parent 4848e6c86c
commit 20af510780
4 changed files with 20 additions and 49 deletions

53
package-lock.json generated
View file

@ -881,9 +881,9 @@
} }
}, },
"bluebird": { "bluebird": {
"version": "3.5.4", "version": "3.5.5",
"resolved": "https://registry.npmjs.org/bluebird/-/bluebird-3.5.4.tgz", "resolved": "https://registry.npmjs.org/bluebird/-/bluebird-3.5.5.tgz",
"integrity": "sha512-FG+nFEZChJrbQ9tIccIfZJBz3J7mLrAhxakAbnrJWn8d7aKOC+LWifa0G+p4ZqKp4y13T7juYvdhq9NzKdsrjw==", "integrity": "sha512-5am6HnnfN+urzt4yfg7IgTbotDjIT/u8AJpEt0sIU9FtXfVeezXAPKswrG+xKUCOYAINpSdgZVDU6QFh+cuH3w==",
"dev": true "dev": true
}, },
"bn.js": { "bn.js": {
@ -3535,11 +3535,6 @@
"integrity": "sha512-6uHUhOPEBgQ24HM+r6b/QwWfZq+yiFcipKFrOFiBEnWdy5sdzYoi+pJeQaPI5qOLRFqWmAXUPQNsielzdLoecA==", "integrity": "sha512-6uHUhOPEBgQ24HM+r6b/QwWfZq+yiFcipKFrOFiBEnWdy5sdzYoi+pJeQaPI5qOLRFqWmAXUPQNsielzdLoecA==",
"dev": true "dev": true
}, },
"hamt_plus": {
"version": "1.0.2",
"resolved": "https://registry.npmjs.org/hamt_plus/-/hamt_plus-1.0.2.tgz",
"integrity": "sha1-4hwlKWjH4zsg9qGwlM2FeHomVgE="
},
"handle-thing": { "handle-thing": {
"version": "2.0.0", "version": "2.0.0",
"resolved": "https://registry.npmjs.org/handle-thing/-/handle-thing-2.0.0.tgz", "resolved": "https://registry.npmjs.org/handle-thing/-/handle-thing-2.0.0.tgz",
@ -3650,14 +3645,6 @@
"minimalistic-assert": "^1.0.1" "minimalistic-assert": "^1.0.1"
} }
}, },
"haunted": {
"version": "4.3.0",
"resolved": "https://registry.npmjs.org/haunted/-/haunted-4.3.0.tgz",
"integrity": "sha512-X4De9gNoeU3plA8n+YAOGKYGb7dKDpFdTDXrc3eNLXgVjmv6Fl87B/ACLbZwZYgx9mIk6G/9PN42Gp4Ct5huqQ==",
"requires": {
"lit-html": "^1.0.0"
}
},
"he": { "he": {
"version": "1.2.0", "version": "1.2.0",
"resolved": "https://registry.npmjs.org/he/-/he-1.2.0.tgz", "resolved": "https://registry.npmjs.org/he/-/he-1.2.0.tgz",
@ -4398,11 +4385,6 @@
"invert-kv": "^1.0.0" "invert-kv": "^1.0.0"
} }
}, },
"list": {
"version": "2.0.16",
"resolved": "https://registry.npmjs.org/list/-/list-2.0.16.tgz",
"integrity": "sha512-A/hl9z2uM/VChZbxNvt5QOCZW4f+eKeW4gfJB1npoE0RKp3g18K3/38hm9kkpXK45niy/BTAVjW8IDHKyCxzkg=="
},
"lit-html": { "lit-html": {
"version": "1.0.0", "version": "1.0.0",
"resolved": "https://registry.npmjs.org/lit-html/-/lit-html-1.0.0.tgz", "resolved": "https://registry.npmjs.org/lit-html/-/lit-html-1.0.0.tgz",
@ -4686,11 +4668,6 @@
"to-regex": "^3.0.2" "to-regex": "^3.0.2"
} }
}, },
"micromodal": {
"version": "0.4.0",
"resolved": "https://registry.npmjs.org/micromodal/-/micromodal-0.4.0.tgz",
"integrity": "sha512-YDku9Fi57S4Sm6oitSy3sr786qSp5L6NbatuH2kEeXf0jStvZgZk4bLBKaoSONBaq3BEvFz3hAaoUa7/pV1Kgg=="
},
"miller-rabin": { "miller-rabin": {
"version": "4.0.1", "version": "4.0.1",
"resolved": "https://registry.npmjs.org/miller-rabin/-/miller-rabin-4.0.1.tgz", "resolved": "https://registry.npmjs.org/miller-rabin/-/miller-rabin-4.0.1.tgz",
@ -5661,15 +5638,6 @@
"integrity": "sha512-pISE66AbVkp4fDQ7VHBwRNXzAAKJjw4Vw7nWI/+Q3vuly7SNfgYXvm6i5IgFylHGK5sP/xHAbB7N49OS4gWNyQ==", "integrity": "sha512-pISE66AbVkp4fDQ7VHBwRNXzAAKJjw4Vw7nWI/+Q3vuly7SNfgYXvm6i5IgFylHGK5sP/xHAbB7N49OS4gWNyQ==",
"dev": true "dev": true
}, },
"prelude-ts": {
"version": "0.8.2",
"resolved": "https://registry.npmjs.org/prelude-ts/-/prelude-ts-0.8.2.tgz",
"integrity": "sha512-Y1whOc7QNfXCKVsBRzZy29R5+vnGVivtHUTNb8gHHGLZBNt/pRtMCv7nkEovMAnMpRO7BjQTht19xcw45abVaw==",
"requires": {
"hamt_plus": "1.0.2",
"list": "2.0.16"
}
},
"prepend-http": { "prepend-http": {
"version": "1.0.4", "version": "1.0.4",
"resolved": "https://registry.npmjs.org/prepend-http/-/prepend-http-1.0.4.tgz", "resolved": "https://registry.npmjs.org/prepend-http/-/prepend-http-1.0.4.tgz",
@ -7070,9 +7038,9 @@
} }
}, },
"terser": { "terser": {
"version": "3.17.0", "version": "4.0.0",
"resolved": "https://registry.npmjs.org/terser/-/terser-3.17.0.tgz", "resolved": "https://registry.npmjs.org/terser/-/terser-4.0.0.tgz",
"integrity": "sha512-/FQzzPJmCpjAH9Xvk2paiWrFq+5M6aVOf+2KRbwhByISDX/EujxsK+BAvrhb6H+2rtrLCHK9N01wO014vrIwVQ==", "integrity": "sha512-dOapGTU0hETFl1tCo4t56FN+2jffoKyER9qBGoUFyZ6y7WLoKT0bF+lAYi6B6YsILcGF3q1C2FBh8QcKSCgkgA==",
"dev": true, "dev": true,
"requires": { "requires": {
"commander": "^2.19.0", "commander": "^2.19.0",
@ -7089,18 +7057,19 @@
} }
}, },
"terser-webpack-plugin": { "terser-webpack-plugin": {
"version": "1.2.4", "version": "1.3.0",
"resolved": "https://registry.npmjs.org/terser-webpack-plugin/-/terser-webpack-plugin-1.2.4.tgz", "resolved": "https://registry.npmjs.org/terser-webpack-plugin/-/terser-webpack-plugin-1.3.0.tgz",
"integrity": "sha512-64IiILNQlACWZLzFlpzNaG0bpQ4ytaB7fwOsbpsdIV70AfLUmIGGeuKL0YV2WmtcrURjE2aOvHD4/lrFV3Rg+Q==", "integrity": "sha512-W2YWmxPjjkUcOWa4pBEv4OP4er1aeQJlSo2UhtCFQCuRXEHjOFscO8VyWHj9JLlA0RzQb8Y2/Ta78XZvT54uGg==",
"dev": true, "dev": true,
"requires": { "requires": {
"cacache": "^11.3.2", "cacache": "^11.3.2",
"find-cache-dir": "^2.0.0", "find-cache-dir": "^2.0.0",
"is-wsl": "^1.1.0", "is-wsl": "^1.1.0",
"loader-utils": "^1.2.3",
"schema-utils": "^1.0.0", "schema-utils": "^1.0.0",
"serialize-javascript": "^1.7.0", "serialize-javascript": "^1.7.0",
"source-map": "^0.6.1", "source-map": "^0.6.1",
"terser": "^3.17.0", "terser": "^4.0.0",
"webpack-sources": "^1.3.0", "webpack-sources": "^1.3.0",
"worker-farm": "^1.7.0" "worker-farm": "^1.7.0"
} }

View file

@ -9,7 +9,8 @@
"deploy": "ts-node deploy" "deploy": "ts-node deploy"
}, },
"sideEffects": [ "sideEffects": [
"*.scss" "*.scss",
"./src/ts/main.ts"
], ],
"repository": { "repository": {
"type": "git", "type": "git",
@ -38,6 +39,7 @@
"sass-loader": "^7.1.0", "sass-loader": "^7.1.0",
"source-map-loader": "^0.2.4", "source-map-loader": "^0.2.4",
"style-loader": "^0.23.1", "style-loader": "^0.23.1",
"terser-webpack-plugin": "^1.3.0",
"ts-loader": "^5.3.3", "ts-loader": "^5.3.3",
"ts-node": "^8.2.0", "ts-node": "^8.2.0",
"typescript": "^3.3.3333", "typescript": "^3.3.3333",
@ -55,11 +57,8 @@
"@material/menu": "^2.3.0", "@material/menu": "^2.3.0",
"@material/theme": "^1.1.0", "@material/theme": "^1.1.0",
"file-saver": "^2.0.2", "file-saver": "^2.0.2",
"haunted": "^4.3.0",
"lit-html": "^1.0.0", "lit-html": "^1.0.0",
"lit-rx": "0.0.2", "lit-rx": "0.0.2",
"micromodal": "^0.4.0",
"prelude-ts": "^0.8.2",
"rxjs": "^6.5.2", "rxjs": "^6.5.2",
"toastr": "^2.1.4" "toastr": "^2.1.4"
} }

View file

@ -14,7 +14,6 @@ import { WireManager } from "../wires";
import { runCounter } from "../component/runCounter"; import { runCounter } from "../component/runCounter";
import { Settings } from "../store/settings"; import { Settings } from "../store/settings";
import { download } from "./download"; import { download } from "./download";
import Modal from "micromodal"
import { modal } from "../modals"; import { modal } from "../modals";
import { map } from "rxjs/operators"; import { map } from "rxjs/operators";
@ -327,7 +326,7 @@ All you work will be lost!`
<g @mousedown=${ (e: MouseEvent) => component.handleClick(e)} <g @mousedown=${ (e: MouseEvent) => component.handleClick(e)}
@mouseup=${mouseupHandler}> @mouseup=${mouseupHandler}>
<rect width=${ subscribe(component.width)} <rect width=${ subscribe(component.width)}
height=${ subscribe(component.height)} height=${ subscribe(component.height)}
x=${ subscribe(component.x)} x=${ subscribe(component.x)}
y=${ subscribe(component.y)} y=${ subscribe(component.y)}
stroke=${stroke} stroke=${stroke}

View file

@ -1,5 +1,6 @@
const HtmlWebPackPlugin = require("html-webpack-plugin"); const HtmlWebPackPlugin = require("html-webpack-plugin");
const ExtractTextPlugin = require('extract-text-webpack-plugin'); const ExtractTextPlugin = require('extract-text-webpack-plugin');
const TerserPlugin = require('terser-webpack-plugin');
module.exports = { module.exports = {
devtool: 'inline-source-map', devtool: 'inline-source-map',
@ -74,5 +75,8 @@ module.exports = {
}, },
entry: [ entry: [
"./src/index.ts" "./src/index.ts"
] ],
optimization: {
minimizer: [new TerserPlugin()],
}
}; };