Skip to content

Commit

Permalink
fix(build): Source map reference missing in index.min.js
Browse files Browse the repository at this point in the history
Signed-off-by: Gordon Smith <gordonjsmith@gmail.com>
  • Loading branch information
GordonSmith committed Jun 21, 2019
1 parent b16f2a0 commit bf3bb07
Show file tree
Hide file tree
Showing 25 changed files with 60 additions and 54 deletions.
18 changes: 12 additions & 6 deletions demos/dashy/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -7,11 +7,11 @@
<link href="style/index.css" rel="stylesheet">

<script>
var mode = "dev"; // "dev" | "rollup" | "webpack" | "unpkg"
var mode = "dist"; // "dev" | "rollup" | "webpack" | "unpkg" | "dist"
switch (window.location.protocol) {
case "file:":
document.write('<link rel="stylesheet" href="../../packages/common/font-awesome/css/font-awesome.min.css">');
switch(mode) {
switch (mode) {
case "dev":
document.write('<script type="text/javascript" src="../../packages/loader/dist/index.js" charset=\"utf-8\"><' + '/script>');
break;
Expand All @@ -27,9 +27,15 @@
}
break;
default:
mode = "unpkg";
document.write('<link rel="stylesheet" href="https://unpkg.com/@hpcc-js/common/font-awesome/css/font-awesome.min.css">');
document.write('<script type="text/javascript" src="https://unpkg.com/@hpcc-js/loader" charset=\"utf-8\"><' + '/script>');
switch (mode) {
case "dist":
document.write('<link rel="stylesheet" href="https://unpkg.com/@hpcc-js/common/font-awesome/css/font-awesome.min.css">');
document.write('<script type="text/javascript" src="../../packages/loader/dist/index.min.js" charset=\"utf-8\"><' + '/script>');
break;
default:
document.write('<link rel="stylesheet" href="https://unpkg.com/@hpcc-js/common/font-awesome/css/font-awesome.min.css">');
document.write('<script type="text/javascript" src="https://unpkg.com/@hpcc-js/loader@v2.7.1/dist/index.min.js" charset=\"utf-8\"><' + '/script>');
}
}
</script>

Expand All @@ -44,7 +50,7 @@
</div>
<script>
if (hpccLoader) {
hpccLoader.amd().then(function(require) {
hpccLoader.amd().then(function (require) {
require(["lib-umd/index"], function (indexMod) {
indexMod.loadDashy("placeholder");
// indexMod.loadDashboard("placeholder");
Expand Down
2 changes: 1 addition & 1 deletion demos/quickstart/rollup/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
"scripts": {
"bundle": "rollup -c",
"bundle-watch": "rollup -c -w",
"minimize": "terser dist/index.js -c -m --source-map -o dist/index.min.js",
"minimize": "terser dist/index.js -c -m --source-map \"content='dist/index.js.map',url='index.min.js.map'\" -o dist/index.min.js",
"build": "npm run bundle && npm run minimize",
"test": "echo \"Error: no test specified\" && exit 1"
},
Expand Down
4 changes: 2 additions & 2 deletions packages/api/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
"compile-umd": "tsc --module umd --outDir ./lib-umd",
"bundle": "rollup -c",
"bundle-watch": "npm run bundle -- -w",
"minimize": "terser dist/index.js -c -m --source-map -o dist/index.min.js",
"minimize": "terser dist/index.js -c -m --source-map \"content='dist/index.js.map',url='index.min.js.map'\" -o dist/index.min.js",
"build": "npm run compile-es6 && npm run bundle",
"watch": "run-p compile-es6-watch bundle-watch",
"stamp": "node node_modules/@hpcc-js/bundle/src/stamp.js",
Expand Down Expand Up @@ -55,4 +55,4 @@
"url": "https://github.com/hpcc-systems/Visualization/issues"
},
"homepage": "https://github.com/hpcc-systems/Visualization"
}
}
4 changes: 2 additions & 2 deletions packages/chart/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
"compile-umd": "tsc --module umd --outDir ./lib-umd",
"bundle": "rollup -c",
"bundle-watch": "npm run bundle -- -w",
"minimize": "terser dist/index.js -c -m --source-map -o dist/index.min.js",
"minimize": "terser dist/index.js -c -m --source-map \"content='dist/index.js.map',url='index.min.js.map'\" -o dist/index.min.js",
"build": "npm run compile-es6 && npm run bundle",
"watch": "run-p compile-es6-watch bundle-watch",
"stamp": "node node_modules/@hpcc-js/bundle/src/stamp.js",
Expand Down Expand Up @@ -78,4 +78,4 @@
"url": "https://github.com/hpcc-systems/Visualization/issues"
},
"homepage": "https://github.com/hpcc-systems/Visualization"
}
}
4 changes: 2 additions & 2 deletions packages/codemirror/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
"compile-umd": "tsc --module umd --outDir ./lib-umd",
"bundle": "rollup -c",
"bundle-watch": "npm run bundle -- -w",
"minimize": "terser dist/index.js -c -m --source-map -o dist/index.min.js",
"minimize": "terser dist/index.js -c -m --source-map \"content='dist/index.js.map',url='index.min.js.map'\" -o dist/index.min.js",
"build": "npm run compile-es6 && npm run bundle",
"watch": "run-p compile-es6-watch bundle-watch",
"stamp": "node node_modules/@hpcc-js/bundle/src/stamp.js",
Expand Down Expand Up @@ -56,4 +56,4 @@
"url": "https://github.com/hpcc-systems/Visualization/issues"
},
"homepage": "https://github.com/hpcc-systems/Visualization"
}
}
4 changes: 2 additions & 2 deletions packages/common/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@
"compile-umd": "tsc --module umd --outDir ./lib-umd",
"bundle": "rollup -c",
"bundle-watch": "npm run bundle -- -w",
"minimize": "terser dist/index.js -c -m --source-map -o dist/index.min.js",
"minimize": "terser dist/index.js -c -m --source-map \"content='dist/index.js.map',url='index.min.js.map'\" -o dist/index.min.js",
"build": "npm run compile-es6 && npm run copy-resources && npm run bundle",
"watch": "run-p compile-es6-watch bundle-watch",
"stamp": "node node_modules/@hpcc-js/bundle/src/stamp.js",
Expand Down Expand Up @@ -91,4 +91,4 @@
"url": "https://github.com/hpcc-systems/Visualization/issues"
},
"homepage": "https://github.com/hpcc-systems/Visualization"
}
}
6 changes: 3 additions & 3 deletions packages/comms/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -20,8 +20,8 @@
"compile-umd": "tsc --module umd --outDir ./lib-umd",
"bundle": "rollup -c",
"bundle-watch": "npm run bundle -- -w",
"minimize-browser": "terser dist/index.js -c -m --source-map -o dist/index.min.js",
"minimize-node": "terser dist/index.node.js -c -m --source-map -o dist/index.node.min.js",
"minimize-browser": "terser dist/index.js -c -m --source-map \"content='dist/index.js.map',url='index.min.js.map'\" -o dist/index.min.js",
"minimize-node": "terser dist/index.node.js -c -m --source-map \"content='dist/index.node.js.map',url='index.node.min.js.map'\" -o dist/index.node.min.js",
"minimize": "npm run minimize-browser && npm run minimize-node",
"build": "npm run compile-es6 && npm run bundle",
"watch": "run-p compile-es6-watch bundle-watch",
Expand Down Expand Up @@ -70,4 +70,4 @@
"url": "https://github.com/hpcc-systems/Visualization/issues"
},
"homepage": "https://github.com/hpcc-systems/Visualization"
}
}
4 changes: 2 additions & 2 deletions packages/composite/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
"compile-umd": "tsc --module umd --outDir ./lib-umd",
"bundle": "rollup -c",
"bundle-watch": "npm run bundle -- -w",
"minimize": "terser dist/index.js -c -m --source-map -o dist/index.min.js",
"minimize": "terser dist/index.js -c -m --source-map \"content='dist/index.js.map',url='index.min.js.map'\" -o dist/index.min.js",
"build": "npm run compile-es6 && npm run bundle",
"watch": "run-p compile-es6-watch bundle-watch",
"stamp": "node node_modules/@hpcc-js/bundle/src/stamp.js",
Expand Down Expand Up @@ -67,4 +67,4 @@
"url": "https://github.com/hpcc-systems/Visualization/issues"
},
"homepage": "https://github.com/hpcc-systems/Visualization"
}
}
4 changes: 2 additions & 2 deletions packages/dgrid/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@
"compile-umd": "tsc --module umd --outDir ./lib-umd",
"bundle": "rollup -c",
"bundle-watch": "npm run bundle -- -w",
"minimize": "terser dist/index.js -c -m --source-map -o dist/index.min.js",
"minimize": "terser dist/index.js -c -m --source-map \"content='dist/index.js.map',url='index.min.js.map'\" -o dist/index.min.js",
"build": "npm run compile-es6 && npm run bundle",
"watch": "run-p compile-es6-watch bundle-watch",
"stamp": "node node_modules/@hpcc-js/bundle/src/stamp.js",
Expand Down Expand Up @@ -61,4 +61,4 @@
"url": "https://github.com/hpcc-systems/Visualization/issues"
},
"homepage": "https://github.com/hpcc-systems/Visualization"
}
}
4 changes: 2 additions & 2 deletions packages/eclwatch/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
"compile-umd": "tsc --module umd --outDir ./lib-umd",
"bundle": "rollup -c",
"bundle-watch": "npm run bundle -- -w",
"minimize": "terser dist/index.js -c -m --source-map -o dist/index.min.js",
"minimize": "terser dist/index.js -c -m --source-map \"content='dist/index.js.map',url='index.min.js.map'\" -o dist/index.min.js",
"build": "npm run compile-es6 && npm run bundle",
"watch": "run-p compile-es6-watch bundle-watch",
"stamp": "node node_modules/@hpcc-js/bundle/src/stamp.js",
Expand Down Expand Up @@ -62,4 +62,4 @@
"url": "https://github.com/hpcc-systems/Visualization/issues"
},
"homepage": "https://github.com/hpcc-systems/Visualization"
}
}
4 changes: 2 additions & 2 deletions packages/form/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
"compile-umd": "tsc --module umd --outDir ./lib-umd",
"bundle": "rollup -c",
"bundle-watch": "npm run bundle -- -w",
"minimize": "terser dist/index.js -c -m --source-map -o dist/index.min.js",
"minimize": "terser dist/index.js -c -m --source-map \"content='dist/index.js.map',url='index.min.js.map'\" -o dist/index.min.js",
"build": "npm run compile-es6 && npm run bundle",
"watch": "run-p compile-es6-watch bundle-watch",
"stamp": "node node_modules/@hpcc-js/bundle/src/stamp.js",
Expand Down Expand Up @@ -62,4 +62,4 @@
"url": "https://github.com/hpcc-systems/Visualization/issues"
},
"homepage": "https://github.com/hpcc-systems/Visualization"
}
}
4 changes: 2 additions & 2 deletions packages/graph/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
"compile-umd": "tsc --module umd --outDir ./lib-umd",
"bundle": "rollup -c",
"bundle-watch": "npm run bundle -- -w",
"minimize": "terser dist/index.js -c -m --source-map -o dist/index.min.js",
"minimize": "terser dist/index.js -c -m --source-map \"content='dist/index.js.map',url='index.min.js.map'\" -o dist/index.min.js",
"build": "npm run compile-es6 && npm run bundle",
"watch": "run-p compile-es6-watch bundle-watch",
"stamp": "node node_modules/@hpcc-js/bundle/src/stamp.js",
Expand Down Expand Up @@ -66,4 +66,4 @@
"url": "https://github.com/hpcc-systems/Visualization/issues"
},
"homepage": "https://github.com/hpcc-systems/Visualization"
}
}
4 changes: 2 additions & 2 deletions packages/html/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
"compile-umd": "tsc --module umd --outDir ./lib-umd",
"bundle": "rollup -c",
"bundle-watch": "npm run bundle -- -w",
"minimize": "terser dist/index.js -c -m --source-map -o dist/index.min.js",
"minimize": "terser dist/index.js -c -m --source-map \"content='dist/index.js.map',url='index.min.js.map'\" -o dist/index.min.js",
"build": "npm run compile-es6 && npm run bundle",
"watch": "run-p compile-es6-watch bundle-watch",
"stamp": "node node_modules/@hpcc-js/bundle/src/stamp.js",
Expand Down Expand Up @@ -58,4 +58,4 @@
"url": "https://github.com/hpcc-systems/Visualization/issues"
},
"homepage": "https://github.com/hpcc-systems/Visualization"
}
}
4 changes: 2 additions & 2 deletions packages/layout/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
"compile-umd": "tsc --module umd --outDir ./lib-umd",
"bundle": "rollup -c",
"bundle-watch": "npm run bundle -- -w",
"minimize": "terser dist/index.js -c -m --source-map -o dist/index.min.js",
"minimize": "terser dist/index.js -c -m --source-map \"content='dist/index.js.map',url='index.min.js.map'\" -o dist/index.min.js",
"build": "npm run compile-es6 && npm run bundle",
"watch": "run-p compile-es6-watch bundle-watch",
"stamp": "node node_modules/@hpcc-js/bundle/src/stamp.js",
Expand Down Expand Up @@ -64,4 +64,4 @@
"url": "https://github.com/hpcc-systems/Visualization/issues"
},
"homepage": "https://github.com/hpcc-systems/Visualization"
}
}
4 changes: 2 additions & 2 deletions packages/loader/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
"compile-umd": "tsc --module umd --outDir ./lib-umd",
"bundle": "rollup -c",
"bundle-watch": "npm run bundle -- -w",
"minimize": "terser dist/index.js -c -m --source-map -o dist/index.min.js",
"minimize": "terser dist/index.js -c -m --source-map \"content='dist/index.js.map',url='index.min.js.map'\" -o dist/index.min.js",
"build": "npm run compile-es6 && npm run bundle",
"watch": "run-p compile-es6-watch bundle-watch",
"stamp": "node node_modules/@hpcc-js/bundle/src/stamp.js",
Expand Down Expand Up @@ -76,4 +76,4 @@
"url": "https://github.com/hpcc-systems/Visualization/issues"
},
"homepage": "https://github.com/hpcc-systems/Visualization"
}
}
4 changes: 2 additions & 2 deletions packages/map/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@
"compile-umd": "tsc --module umd --outDir ./lib-umd",
"bundle": "rollup -c",
"bundle-watch": "npm run bundle -- -w",
"minimize": "terser dist/index.js -c -m --source-map -o dist/index.min.js",
"minimize": "terser dist/index.js -c -m --source-map \"content='dist/index.js.map',url='index.min.js.map'\" -o dist/index.min.js",
"build": "npm run compile-es6 && npm run bundle",
"watch": "run-p compile-es6-watch bundle-watch",
"stamp": "node node_modules/@hpcc-js/bundle/src/stamp.js",
Expand Down Expand Up @@ -74,4 +74,4 @@
"url": "https://github.com/hpcc-systems/Visualization/issues"
},
"homepage": "https://github.com/hpcc-systems/Visualization"
}
}
4 changes: 2 additions & 2 deletions packages/marshaller/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
"compile-umd": "tsc --module umd --outDir ./lib-umd",
"bundle": "rollup -c",
"bundle-watch": "npm run bundle -- -w",
"minimize": "terser dist/index.js -c -m --source-map -o dist/index.min.js",
"minimize": "terser dist/index.js -c -m --source-map \"content='dist/index.js.map',url='index.min.js.map'\" -o dist/index.min.js",
"build": "npm run compile-es6 && npm run bundle",
"watch": "run-p compile-es6-watch bundle-watch",
"stamp": "node node_modules/@hpcc-js/bundle/src/stamp.js",
Expand Down Expand Up @@ -72,4 +72,4 @@
"url": "https://github.com/hpcc-systems/Visualization/issues"
},
"homepage": "https://github.com/hpcc-systems/Visualization"
}
}
4 changes: 2 additions & 2 deletions packages/other/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
"compile-umd": "tsc --module umd --outDir ./lib-umd",
"bundle": "rollup -c",
"bundle-watch": "npm run bundle -- -w",
"minimize": "terser dist/index.js -c -m --source-map -o dist/index.min.js",
"minimize": "terser dist/index.js -c -m --source-map \"content='dist/index.js.map',url='index.min.js.map'\" -o dist/index.min.js",
"build": "npm run compile-es6 && npm run bundle",
"watch": "run-p compile-es6-watch bundle-watch",
"stamp": "node node_modules/@hpcc-js/bundle/src/stamp.js",
Expand Down Expand Up @@ -69,4 +69,4 @@
"url": "https://github.com/hpcc-systems/Visualization/issues"
},
"homepage": "https://github.com/hpcc-systems/Visualization"
}
}
4 changes: 2 additions & 2 deletions packages/phosphor-shim/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
"compile-umd": "tsc --module umd --outDir ./lib-umd",
"bundle": "rollup -c",
"bundle-watch": "npm run bundle -- -w",
"minimize": "terser dist/index.js -c -m --source-map -o dist/index.min.js",
"minimize": "terser dist/index.js -c -m --source-map \"content='dist/index.js.map',url='index.min.js.map'\" -o dist/index.min.js",
"build": "npm run compile-es6 && npm run bundle",
"watch": "run-p compile-es6-watch bundle-watch",
"stamp": "node node_modules/@hpcc-js/bundle/src/stamp.js",
Expand Down Expand Up @@ -56,4 +56,4 @@
"url": "https://github.com/hpcc-systems/Visualization/issues"
},
"homepage": "https://github.com/hpcc-systems/Visualization"
}
}
4 changes: 2 additions & 2 deletions packages/phosphor/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
"compile-umd": "tsc --module umd --outDir ./lib-umd",
"bundle": "rollup -c",
"bundle-watch": "npm run bundle -- -w",
"minimize": "terser dist/index.js -c -m --source-map -o dist/index.min.js",
"minimize": "terser dist/index.js -c -m --source-map \"content='dist/index.js.map',url='index.min.js.map'\" -o dist/index.min.js",
"build": "npm run compile-es6 && npm run bundle",
"watch": "run-p compile-es6-watch bundle-watch",
"stamp": "node node_modules/@hpcc-js/bundle/src/stamp.js",
Expand Down Expand Up @@ -59,4 +59,4 @@
"url": "https://github.com/hpcc-systems/Visualization/issues"
},
"homepage": "https://github.com/hpcc-systems/Visualization"
}
}
4 changes: 2 additions & 2 deletions packages/preact-shim/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
"compile-umd": "tsc --module umd --outDir ./lib-umd",
"bundle": "rollup -c",
"bundle-watch": "npm run bundle -- -w",
"minimize": "terser dist/index.js -c -m --source-map -o dist/index.min.js",
"minimize": "terser dist/index.js -c -m --source-map \"content='dist/index.js.map',url='index.min.js.map'\" -o dist/index.min.js",
"build": "npm run compile-es6 && npm run bundle",
"watch": "run-p compile-es6-watch bundle-watch",
"stamp": "node node_modules/@hpcc-js/bundle/src/stamp.js",
Expand Down Expand Up @@ -52,4 +52,4 @@
"url": "https://github.com/hpcc-systems/Visualization/issues"
},
"homepage": "https://github.com/hpcc-systems/Visualization"
}
}
4 changes: 2 additions & 2 deletions packages/react/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
"compile-umd": "tsc --module umd --outDir ./lib-umd",
"bundle": "rollup -c",
"bundle-watch": "npm run bundle -- -w",
"minimize": "terser dist/index.js -c -m --source-map -o dist/index.min.js",
"minimize": "terser dist/index.js -c -m --source-map \"content='dist/index.js.map',url='index.min.js.map'\" -o dist/index.min.js",
"build": "npm run compile-es6 && npm run bundle",
"watch": "run-p compile-es6-watch bundle-watch",
"stamp": "node node_modules/@hpcc-js/bundle/src/stamp.js",
Expand Down Expand Up @@ -57,4 +57,4 @@
"url": "https://github.com/hpcc-systems/Visualization/issues"
},
"homepage": "https://github.com/hpcc-systems/Visualization"
}
}
4 changes: 2 additions & 2 deletions packages/timeline/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
"compile-umd": "tsc --module umd --outDir ./lib-umd",
"bundle": "rollup -c",
"bundle-watch": "npm run bundle -- -w",
"minimize": "terser dist/index.js -c -m --source-map -o dist/index.min.js",
"minimize": "terser dist/index.js -c -m --source-map \"content='dist/index.js.map',url='index.min.js.map'\" -o dist/index.min.js",
"build": "npm run compile-es6 && npm run bundle",
"watch": "run-p compile-es6-watch bundle-watch",
"stamp": "node node_modules/@hpcc-js/bundle/src/stamp.js",
Expand Down Expand Up @@ -62,4 +62,4 @@
"url": "https://github.com/hpcc-systems/Visualization/issues"
},
"homepage": "https://github.com/hpcc-systems/Visualization"
}
}

0 comments on commit bf3bb07

Please sign in to comment.