-
Notifications
You must be signed in to change notification settings - Fork 62
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Signed-off-by: Gordon Smith <[email protected]>
- Loading branch information
1 parent
ea6f502
commit 0b1c585
Showing
18 changed files
with
1,242 additions
and
229 deletions.
There are no files selected for viewing
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,47 @@ | ||
{ | ||
"version": "0.2.0", | ||
"configurations": [ | ||
{ | ||
"name": "test-browser", | ||
"type": "msedge", | ||
"request": "launch", | ||
"url": "http://localhost:8888", | ||
"webRoot": "${workspaceFolder}", | ||
"outFiles": [ | ||
"${workspaceFolder}/**/*.js", | ||
"!**/node_modules/**" | ||
], | ||
}, | ||
{ | ||
"name": "test-node", | ||
"type": "node", | ||
"request": "launch", | ||
"runtimeArgs": [ | ||
"run-script", | ||
"test-node" | ||
], | ||
"runtimeExecutable": "npm", | ||
"skipFiles": [ | ||
"<node_internals>/**" | ||
], | ||
"outFiles": [ | ||
"${workspaceFolder}/**/*.js", | ||
"!**/node_modules/**" | ||
], | ||
}, | ||
{ | ||
"name": "index.html", | ||
"request": "launch", | ||
"type": "msedge", | ||
"url": "file:///${workspaceFolder}/index.html", | ||
"runtimeArgs": [ | ||
"--disable-web-security" | ||
], | ||
"webRoot": "${workspaceFolder}", | ||
"outFiles": [ | ||
"${workspaceFolder}/**/*.js", | ||
"!**/node_modules/**" | ||
] | ||
} | ||
] | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,20 +1,36 @@ | ||
{ | ||
// See https://go.microsoft.com/fwlink/?LinkId=733558 | ||
// for the documentation about the tasks.json format | ||
"version": "2.0.0", | ||
"tasks": [ | ||
{ | ||
"label": "gen-types-watch", | ||
"type": "npm", | ||
"script": "compile-umd-watch", | ||
"group": { | ||
"kind": "build", | ||
"isDefault": true | ||
}, | ||
"script": "gen-types-watch", | ||
"problemMatcher": [ | ||
"$tsc-watch" | ||
], | ||
"label": "npm: compile-umd-watch", | ||
"detail": "tsc --module umd --outDir ./lib-umd --watch" | ||
"presentation": { | ||
"group": "group-build" | ||
} | ||
}, | ||
{ | ||
"label": "bundle-watch", | ||
"type": "npm", | ||
"script": "bundle-watch", | ||
"problemMatcher": [], | ||
"presentation": { | ||
"group": "group-build" | ||
} | ||
}, | ||
{ | ||
"label": "build", | ||
"dependsOn": [ | ||
"gen-types-watch", | ||
"bundle-watch", | ||
], | ||
"group": { | ||
"kind": "build", | ||
"isDefault": true | ||
} | ||
} | ||
] | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,29 @@ | ||
import { browserTpl } from "@hpcc-js/esbuild-plugins"; | ||
import pkg from "./package.json" with { type: "json" }; | ||
|
||
// config --- | ||
await Promise.all([ | ||
browserTpl("src/index.ts", "dist/index", { | ||
keepNames: true, | ||
alias: { | ||
"d3-array": "@hpcc-js/common", | ||
"d3-brush": "@hpcc-js/common", | ||
"d3-collection": "@hpcc-js/common", | ||
"d3-color": "@hpcc-js/common", | ||
"d3-dispatch": "@hpcc-js/common", | ||
"d3-drag": "@hpcc-js/common", | ||
"d3-dsv": "@hpcc-js/common", | ||
"d3-ease": "@hpcc-js/common", | ||
"d3-format": "@hpcc-js/common", | ||
"d3-interpolate": "@hpcc-js/common", | ||
"d3-scale": "@hpcc-js/common", | ||
"d3-selection": "@hpcc-js/common", | ||
"d3-time-format": "@hpcc-js/common", | ||
"d3-transition": "@hpcc-js/common", | ||
"d3-zoom": "@hpcc-js/common" | ||
}, | ||
external: [ | ||
...Object.keys(pkg.dependencies), | ||
] | ||
}) | ||
]); |
Oops, something went wrong.