@aklinker1/aframe 0.4.8 → 0.4.10

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/bin/aframe.ts CHANGED
@@ -11,16 +11,19 @@ async function dev(root?: string) {
11
11
  const config = await resolveConfig(root, "serve", "development");
12
12
  const devServer = await createServer(config);
13
13
  await devServer.listen();
14
-
15
- console.log(`${GREEN}✔${RESET} Dev servers started in ${devServerTimer()}`);
16
- console.log(
17
- ` ${BOLD}${GREEN}→${RESET} ${BOLD}App${RESET} ${DIM}@${RESET} ${UNDERLINE}http://localhost:${config.appPort}${RESET}`,
18
- );
19
14
  console.log(
20
- ` ${BOLD}${GREEN}→${RESET} ${BOLD}Server Proxy${RESET} ${DIM}@${RESET} ${UNDERLINE}http://localhost:${config.appPort}/api${RESET}`,
15
+ `${BOLD}${GREEN}✓${RESET} Dev servers started in ${devServerTimer()}`,
21
16
  );
17
+ devServer.printUrls();
18
+
19
+ const appProtocol = config.vite.server?.https == null ? "http:" : "https:";
20
+ config.proxyPaths.forEach((path) => {
21
+ console.log(
22
+ ` ${GREEN}→${RESET} ${BOLD}Server:${RESET} ${CYAN}${appProtocol}//localhost${BOLD}:${config.appPort}${RESET}${CYAN}${path}${RESET}`,
23
+ );
24
+ });
22
25
  console.log(
23
- ` ${BOLD}${GREEN}→${RESET} ${BOLD}Server${RESET} ${DIM}@${RESET} ${UNDERLINE}http://localhost:${config.serverPort}${RESET}`,
26
+ ` ${GREEN}→${RESET} ${BOLD}Server:${RESET} ${CYAN}http://localhost${BOLD}:${config.serverPort}${RESET}${CYAN}${RESET}`,
24
27
  );
25
28
  }
26
29
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@aklinker1/aframe",
3
- "version": "0.4.8",
3
+ "version": "0.4.10",
4
4
  "packageManager": "bun@1.2.5",
5
5
  "type": "module",
6
6
  "license": "MIT",
package/src/config.ts CHANGED
@@ -40,6 +40,7 @@ export type ResolvedConfig = {
40
40
  serverModule: string;
41
41
  serverEntry: string;
42
42
  prerenderToDir: string;
43
+ proxyPaths: string[];
43
44
  outDir: string;
44
45
  serverOutDir: string;
45
46
  appOutDir: string;
@@ -114,7 +115,7 @@ export async function resolveConfig(
114
115
  viteConfig,
115
116
  // Overrides
116
117
  {
117
- logLevel: "warn",
118
+ // logLevel: "warn",
118
119
  configFile: false,
119
120
  root: appDir,
120
121
  publicDir,
@@ -143,6 +144,7 @@ export async function resolveConfig(
143
144
  prerenderToDir,
144
145
  appPort,
145
146
  serverPort,
147
+ proxyPaths,
146
148
 
147
149
  prerenderedRoutes: userConfig.prerenderedRoutes ?? ["/"],
148
150
  vite: viteConfig,