-
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.
feat: Switch to esbuild and ESM first packaging (comms)
Changed type to "module" and dropped UMD support Signed-off-by: Gordon Smith <GordonJSmith@gmail.com>
- Loading branch information
1 parent
4a426f6
commit b225f92
Showing
127 changed files
with
6,384 additions
and
7,082 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,50 +1,36 @@ | ||
{ | ||
// Use IntelliSense to learn about possible attributes. | ||
// Hover to view descriptions of existing attributes. | ||
// For more information, visit: https://go.microsoft.com/fwlink/?linkid=830387 | ||
"version": "0.2.0", | ||
"configurations": [ | ||
{ | ||
"name": "WSDL Generation", | ||
"request": "launch", | ||
"runtimeArgs": [ | ||
"run-script", | ||
"wsdl-workunits" | ||
], | ||
"runtimeExecutable": "npm", | ||
"skipFiles": [ | ||
"<node_internals>/**" | ||
], | ||
"type": "node", | ||
"sourceMaps": true | ||
}, | ||
{ | ||
"name": "index.html", | ||
"name": "test-browser", | ||
"type": "msedge", | ||
"request": "launch", | ||
"url": "file:///${workspaceRoot}/index.html", | ||
"url": "http://localhost:8888", | ||
"webRoot": "${workspaceFolder}", | ||
"runtimeArgs": [ | ||
"--disable-web-security" | ||
], | ||
"webRoot": "${workspaceRoot}" | ||
"outFiles": [ | ||
"${workspaceFolder}/**/*.js", | ||
"!**/node_modules/**" | ||
], | ||
}, | ||
{ | ||
"name": "Mocha Tests", | ||
"name": "test-node", | ||
"type": "node", | ||
"request": "launch", | ||
"program": "${workspaceFolder}/../../node_modules/mocha/bin/_mocha", | ||
"args": [ | ||
"-u", | ||
"tdd", | ||
"--timeout", | ||
"999999", | ||
"--colors", | ||
"${workspaceFolder}/lib-umd/__tests__" | ||
"runtimeArgs": [ | ||
"run-script", | ||
"test-node" | ||
], | ||
"internalConsoleOptions": "openOnSessionStart", | ||
"runtimeExecutable": "npm", | ||
"skipFiles": [ | ||
"<node_internals>/**" | ||
] | ||
], | ||
"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
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,9 @@ | ||
import { browserTpl, nodeTpl } from "@hpcc-js/esbuild-plugins"; | ||
|
||
// config --- | ||
await Promise.all([nodeTpl("src/index.node.ts", "dist/index.node"), browserTpl("src/index.ts", "dist/index")]); | ||
await Promise.all([ | ||
browserTpl("spec/index.browser.ts", "dist-test/index.browser", undefined, undefined, undefined, ["@hpcc-js/comms"]), | ||
nodeTpl("spec/index.node.ts", "dist-test/index.node", undefined, undefined, undefined, ["@hpcc-js/*"]), | ||
]); | ||
|
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
Oops, something went wrong.