@slashid/jump-page 0.0.7-beta.0 → 0.0.7-beta.1
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 +14 -17
- package/package.json +9 -1
- package/src/config.ts +1 -7
- 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/public/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 { build, preview } from "astro";
|
|
6
6
|
|
|
7
7
|
const require = createRequire(import.meta.url);
|
|
8
8
|
|
|
@@ -16,7 +16,14 @@ 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",
|
|
@@ -27,22 +34,12 @@ program
|
|
|
27
34
|
"SlashID SDK URL",
|
|
28
35
|
"https://cdn.sandbox.slashid.com/sdk.html"
|
|
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
|
+
await build({});
|
|
42
|
+
await preview({ server: { port: options.port } });
|
|
46
43
|
});
|
|
47
44
|
|
|
48
45
|
// Parse the command line arguments
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@slashid/jump-page",
|
|
3
3
|
"type": "module",
|
|
4
|
-
"version": "0.0.7-beta.
|
|
4
|
+
"version": "0.0.7-beta.1",
|
|
5
5
|
"private": false,
|
|
6
6
|
"publishConfig": {
|
|
7
7
|
"access": "restricted"
|
|
@@ -9,6 +9,14 @@
|
|
|
9
9
|
"bin": {
|
|
10
10
|
"sid-jump-cli": "./cli.js"
|
|
11
11
|
},
|
|
12
|
+
"files": [
|
|
13
|
+
"src",
|
|
14
|
+
"package.json",
|
|
15
|
+
"README.md",
|
|
16
|
+
"cli.js",
|
|
17
|
+
"astro.config.mjs",
|
|
18
|
+
"tsconfig.json"
|
|
19
|
+
],
|
|
12
20
|
"scripts": {
|
|
13
21
|
"dev": "astro dev",
|
|
14
22
|
"start": "astro dev",
|
package/src/config.ts
CHANGED
|
@@ -1,13 +1,7 @@
|
|
|
1
|
-
|
|
2
|
-
/* export const config = {
|
|
1
|
+
export const config = {
|
|
3
2
|
sdkURL:
|
|
4
3
|
import.meta.env.PUBLIC_SID_SDK_URL ||
|
|
5
4
|
"https://cdn.sandbox.slashid.com/sdk.html",
|
|
6
5
|
baseURL:
|
|
7
6
|
import.meta.env.PUBLIC_SID_API_URL || "https://api.sandbox.slashid.com",
|
|
8
|
-
}; */
|
|
9
|
-
|
|
10
|
-
export const config = {
|
|
11
|
-
baseURL: "https://slashid.local",
|
|
12
|
-
sdkURL: "https://jump.slashid.local/sdk.html",
|
|
13
7
|
};
|
package/.turbo/turbo-build.log
DELETED
|
@@ -1,32 +0,0 @@
|
|
|
1
|
-
|
|
2
|
-
> @slashid/jump-page@0.0.6 build /Users/ivankovic/projects/slashid/javascript/apps/jump-page
|
|
3
|
-
> astro build
|
|
4
|
-
|
|
5
|
-
05:00:06 PM [content] No content directory found. Skipping type generation.
|
|
6
|
-
05:00:06 PM [build] output target: static
|
|
7
|
-
05:00:06 PM [build] Collecting build info...
|
|
8
|
-
05:00:06 PM [build] Completed in 111ms.
|
|
9
|
-
05:00:06 PM [build] Building static entrypoints...
|
|
10
|
-
05:00:07 PM [build] Completed in 1.68s.
|
|
11
|
-
|
|
12
|
-
building client
|
|
13
|
-
vite v4.5.0 building for production...
|
|
14
|
-
transforming...
|
|
15
|
-
✓ 384 modules transformed.
|
|
16
|
-
rendering chunks...
|
|
17
|
-
computing gzip size...
|
|
18
|
-
dist/_astro/index.cc62d81f.css 31.75 kB │ gzip: 5.49 kB
|
|
19
|
-
dist/_astro/index.03be2d59.js 6.83 kB │ gzip: 2.72 kB
|
|
20
|
-
dist/_astro/client.a5ffbec0.js 135.34 kB │ gzip: 43.73 kB
|
|
21
|
-
dist/_astro/app.51fc6a0f.js 203.42 kB │ gzip: 56.61 kB
|
|
22
|
-
✓ built in 1.94s
|
|
23
|
-
Completed in 1.95s.
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
generating static routes
|
|
27
|
-
▶ src/pages/index.astro
|
|
28
|
-
└─ /index.html (+122ms)
|
|
29
|
-
Completed in 132ms.
|
|
30
|
-
|
|
31
|
-
05:00:09 PM [build] 1 page(s) built in 3.88s
|
|
32
|
-
05:00:09 PM [build] Complete!
|
package/.vscode/extensions.json
DELETED
package/.vscode/launch.json
DELETED
package/CHANGELOG.md
DELETED
|
@@ -1,37 +0,0 @@
|
|
|
1
|
-
# @slashid/jump-page
|
|
2
|
-
|
|
3
|
-
## 0.0.6
|
|
4
|
-
|
|
5
|
-
### Patch Changes
|
|
6
|
-
|
|
7
|
-
- Updated dependencies [64212fd]
|
|
8
|
-
- @slashid/react-primitives@0.1.4
|
|
9
|
-
|
|
10
|
-
## 0.0.5
|
|
11
|
-
|
|
12
|
-
### Patch Changes
|
|
13
|
-
|
|
14
|
-
- Updated dependencies [21c2948]
|
|
15
|
-
- @slashid/react-primitives@0.1.3
|
|
16
|
-
|
|
17
|
-
## 0.0.4
|
|
18
|
-
|
|
19
|
-
### Patch Changes
|
|
20
|
-
|
|
21
|
-
- Updated dependencies [0e2fb6b]
|
|
22
|
-
- @slashid/react-primitives@0.1.2
|
|
23
|
-
|
|
24
|
-
## 0.0.3
|
|
25
|
-
|
|
26
|
-
### Patch Changes
|
|
27
|
-
|
|
28
|
-
- Updated dependencies [0e4746c]
|
|
29
|
-
- @slashid/react-primitives@0.1.1
|
|
30
|
-
|
|
31
|
-
## 0.0.2
|
|
32
|
-
|
|
33
|
-
### Patch Changes
|
|
34
|
-
|
|
35
|
-
- c1cf068: Update dependencies
|
|
36
|
-
- Updated dependencies [c1cf068]
|
|
37
|
-
- @slashid/react-primitives@0.1.0
|
package/public/favicon.png
DELETED
|
Binary file
|