-
Notifications
You must be signed in to change notification settings - Fork 22
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(ifc-cli): enable static file hosting in ifc-cli server
This allows ifc-cli to serve static files in addition to acting as a proxy to a dev server, for simpler client-embedding setups. We have also updated the example app to use this hosting in conjunction with build changes that make it easier to build both an app js file and web workers for future IFC features
- Loading branch information
1 parent
9dfc6a8
commit 1d32fd3
Showing
9 changed files
with
197 additions
and
105 deletions.
There are no files selected for viewing
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
File renamed without changes.
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,7 @@ | ||
// This module is a POC placeholder for a future IFC-integrated web-worker example | ||
|
||
// This doesn't work because Client references HTMLElement, which doesn't exist | ||
// in the worker context, but will work for a new worker client. | ||
// import { Client } from "iframe-coordinator/dist/client.js"; | ||
|
||
console.log("Worker Started!"); |
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,3 +1,5 @@ | ||
{ | ||
"/clients/": "http://localhost:8080/" | ||
"static": { | ||
"/clients": "." | ||
} | ||
} |
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,18 @@ | ||
import { nodeResolve } from "@rollup/plugin-node-resolve"; | ||
|
||
import { dirname, resolve } from "path"; | ||
import { fileURLToPath } from "url"; | ||
|
||
const __dirname = dirname(fileURLToPath(import.meta.url)); | ||
|
||
export default { | ||
input: [ | ||
resolve(__dirname, "client-app.js"), | ||
resolve(__dirname, "client-worker.js"), | ||
], | ||
output: { | ||
preserveModules: false, | ||
dir: "dist", | ||
}, | ||
plugins: [nodeResolve()], | ||
}; |
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.