@slashid/jump-page 0.0.7-beta.0 → 0.0.7-beta.2
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/cli.js +16 -19
- package/dist/_astro/app.f7d04798.js +39 -0
- package/dist/_astro/client.a5ffbec0.js +24 -0
- package/dist/_astro/index.03be2d59.js +9 -0
- package/dist/_astro/index.2dd0ad08.css +1 -0
- package/dist/_astro/index.cc62d81f.css +1 -0
- package/dist/index.html +7 -0
- package/package.json +9 -1
- package/.turbo/turbo-build.log +0 -32
- package/.vscode/extensions.json +0 -4
- package/.vscode/launch.json +0 -11
- package/CHANGELOG.md +0 -37
- package/src/components/README.md +0 -3
- package/src/components/app/app.component.tsx +0 -83
- package/src/components/app/app.context.tsx +0 -41
- package/src/components/app/app.css.ts +0 -15
- package/src/components/app/index.ts +0 -1
- package/src/components/card/card.component.tsx +0 -42
- package/src/components/card/card.css.ts +0 -40
- package/src/components/card/index.ts +0 -1
- package/src/components/flow/flow.component.tsx +0 -99
- package/src/components/flow/flow.css.ts +0 -20
- package/src/components/flow/flow.domain.ts +0 -18
- package/src/components/flow/flow.error.tsx +0 -32
- package/src/components/flow/flow.initial.tsx +0 -14
- package/src/components/flow/flow.loader.tsx +0 -9
- package/src/components/flow/flow.progress.tsx +0 -119
- package/src/components/flow/flow.recover.tsx +0 -121
- package/src/components/flow/flow.success.tsx +0 -40
- package/src/components/flow/flow.types.ts +0 -48
- package/src/components/flow/index.ts +0 -3
- package/src/components/text/index.ts +0 -1
- package/src/components/text/text.component.tsx +0 -8
- package/src/components/text/use-i18n.ts +0 -13
- package/src/config.ts +0 -13
- package/src/domain/i18n.ts +0 -115
- package/src/env.d.ts +0 -1
- package/src/layouts/README.md +0 -3
- package/src/layouts/page.astro +0 -33
- package/src/pages/index.astro +0 -8
- /package/{public → dist}/favicon.png +0 -0
package/cli.js
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
2
|
|
|
3
3
|
import { program } from "commander";
|
|
4
|
-
import { exec } from "child_process";
|
|
5
4
|
import { createRequire } from "node:module";
|
|
5
|
+
import { preview } from "astro";
|
|
6
6
|
|
|
7
7
|
const require = createRequire(import.meta.url);
|
|
8
8
|
|
|
@@ -16,33 +16,30 @@ program
|
|
|
16
16
|
program
|
|
17
17
|
.command("serve")
|
|
18
18
|
.description("Start the development server")
|
|
19
|
-
.option(
|
|
19
|
+
.option(
|
|
20
|
+
"-p, --port <number>",
|
|
21
|
+
"Port to use for the development server",
|
|
22
|
+
(value) => {
|
|
23
|
+
return parseInt(value);
|
|
24
|
+
},
|
|
25
|
+
4321
|
|
26
|
+
)
|
|
20
27
|
.option(
|
|
21
28
|
"-a, --api-url <char>",
|
|
22
29
|
"SlashID API URL",
|
|
23
|
-
"https://
|
|
30
|
+
"https://slashid.local"
|
|
24
31
|
)
|
|
25
32
|
.option(
|
|
26
33
|
"-s, --sdk-url <char>",
|
|
27
34
|
"SlashID SDK URL",
|
|
28
|
-
"https://
|
|
35
|
+
"https://jump.slashid.local"
|
|
29
36
|
)
|
|
30
|
-
.action((options) => {
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
// Set the required env variables and execute the "dev" script defined in package.json
|
|
34
|
-
const childProcess = exec(command);
|
|
35
|
-
|
|
36
|
-
childProcess.stdout.pipe(process.stdout);
|
|
37
|
-
childProcess.stderr.pipe(process.stderr);
|
|
38
|
-
|
|
39
|
-
childProcess.on("error", (error) => {
|
|
40
|
-
console.error(`Error: ${error.message}`);
|
|
41
|
-
});
|
|
37
|
+
.action(async (options) => {
|
|
38
|
+
process.env.PUBLIC_SID_SDK_URL = options.sdkUrl;
|
|
39
|
+
process.env.PUBLIC_SID_API_URL = options.apiUrl;
|
|
42
40
|
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
});
|
|
41
|
+
// TODO this will build with the default values, not the ones passed in
|
|
42
|
+
await preview({ server: { port: options.port } });
|
|
46
43
|
});
|
|
47
44
|
|
|
48
45
|
// Parse the command line arguments
|