@blu1606/create-walrus-app 0.1.3 → 0.1.4
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/dist/context.js +3 -2
- package/dist/index.js +3 -2
- package/dist/prompts.js +5 -3
- package/package.json +68 -68
- package/templates/gallery/src/components/FileCard.tsx +1 -1
- package/templates/gallery/src/components/UploadModal.tsx +1 -1
- package/templates/react/src/index.ts +2 -2
- package/templates/sdk-mysten/src/adapter.ts +1 -1
- package/templates/sdk-mysten/src/client.ts +2 -2
- package/templates/sdk-mysten/src/config.ts +1 -1
- package/templates/sdk-mysten/src/index.ts +1 -1
- package/templates/simple-upload/src/components/FilePreview.tsx +1 -1
- package/templates/simple-upload/src/components/UploadForm.tsx +1 -1
package/dist/context.js
CHANGED
|
@@ -36,8 +36,9 @@ export function buildContext(args, promptResults) {
|
|
|
36
36
|
sdk,
|
|
37
37
|
framework,
|
|
38
38
|
useCase,
|
|
39
|
-
|
|
40
|
-
|
|
39
|
+
// Temporarily disabled until templates are implemented
|
|
40
|
+
analytics: false, // Boolean(merged.analytics),
|
|
41
|
+
tailwind: false, // Boolean(merged.tailwind),
|
|
41
42
|
packageManager: packageManager,
|
|
42
43
|
};
|
|
43
44
|
}
|
package/dist/index.js
CHANGED
|
@@ -23,8 +23,9 @@ program
|
|
|
23
23
|
.option('--sdk <sdk>', 'SDK to use (mysten | tusky | hibernuts)')
|
|
24
24
|
.option('--framework <framework>', 'Framework (react | vue | plain-ts)')
|
|
25
25
|
.option('--use-case <use-case>', 'Use case (simple-upload | gallery | defi-nft)')
|
|
26
|
-
|
|
27
|
-
.option('--
|
|
26
|
+
// TODO: Re-enable when templates are implemented
|
|
27
|
+
// .option('--analytics', 'Include Blockberry analytics', false)
|
|
28
|
+
// .option('--no-tailwind', 'Exclude Tailwind CSS')
|
|
28
29
|
.option('--skip-install', 'Skip dependency installation', false)
|
|
29
30
|
.option('--skip-git', 'Skip git initialization', false)
|
|
30
31
|
.option('--skip-validation', 'Skip project validation', false)
|
package/dist/prompts.js
CHANGED
|
@@ -73,16 +73,18 @@ export async function runPrompts(initial = {}) {
|
|
|
73
73
|
},
|
|
74
74
|
},
|
|
75
75
|
{
|
|
76
|
-
|
|
76
|
+
// TODO: Re-enable when analytics template is created
|
|
77
|
+
type: null, // Temporarily disabled - template not implemented
|
|
77
78
|
name: 'analytics',
|
|
78
79
|
message: 'Include Blockberry analytics?',
|
|
79
80
|
initial: false,
|
|
80
81
|
},
|
|
81
82
|
{
|
|
82
|
-
|
|
83
|
+
// TODO: Re-enable when tailwind template is created
|
|
84
|
+
type: null, // Temporarily disabled - template not implemented
|
|
83
85
|
name: 'tailwind',
|
|
84
86
|
message: 'Include Tailwind CSS?',
|
|
85
|
-
initial:
|
|
87
|
+
initial: false, // Changed to false to prevent layer lookup
|
|
86
88
|
},
|
|
87
89
|
{
|
|
88
90
|
type: initial.packageManager ? null : 'select',
|
package/package.json
CHANGED
|
@@ -1,69 +1,69 @@
|
|
|
1
|
-
{
|
|
2
|
-
"name": "@blu1606/create-walrus-app",
|
|
3
|
-
"version": "0.1.
|
|
4
|
-
"description": "Interactive CLI for scaffolding Walrus applications",
|
|
5
|
-
"type": "module",
|
|
6
|
-
"bin": {
|
|
7
|
-
"create-walrus-app": "./dist/index.js"
|
|
8
|
-
},
|
|
9
|
-
"files": [
|
|
10
|
-
"dist",
|
|
11
|
-
"templates",
|
|
12
|
-
"README.md"
|
|
13
|
-
],
|
|
14
|
-
"scripts": {
|
|
15
|
-
"build": "tsc",
|
|
16
|
-
"dev": "tsc --watch",
|
|
17
|
-
"test": "vitest run",
|
|
18
|
-
"test:watch": "vitest",
|
|
19
|
-
"test:ui": "vitest --ui",
|
|
20
|
-
"test:coverage": "vitest run --coverage",
|
|
21
|
-
"test:integration": "node tests/integration/integration.test.mjs",
|
|
22
|
-
"test:validation": "node tests/integration/validation.test.mjs",
|
|
23
|
-
"test:manual": "node tests/integration/manual.test.js",
|
|
24
|
-
"test:e2e": "node tests/integration/cli.e2e.test.mjs",
|
|
25
|
-
"test:all": "vitest run && pnpm test:e2e",
|
|
26
|
-
"prepublishOnly": "pnpm build"
|
|
27
|
-
},
|
|
28
|
-
"keywords": [
|
|
29
|
-
"walrus",
|
|
30
|
-
"sui",
|
|
31
|
-
"scaffold",
|
|
32
|
-
"cli",
|
|
33
|
-
"template"
|
|
34
|
-
],
|
|
35
|
-
"author": "blu1606 dongthanhquandtq@gmail.com",
|
|
36
|
-
"license": "MIT",
|
|
37
|
-
"repository": {
|
|
38
|
-
"type": "git",
|
|
39
|
-
"url": "https://github.com/blu1606/walrus-starter-kit.git",
|
|
40
|
-
"directory": "packages/cli"
|
|
41
|
-
},
|
|
42
|
-
"dependencies": {
|
|
43
|
-
"commander": "^11.1.0",
|
|
44
|
-
"cross-spawn": "^7.0.3",
|
|
45
|
-
"fs-extra": "^11.2.0",
|
|
46
|
-
"kleur": "^4.1.5",
|
|
47
|
-
"prompts": "^2.4.2",
|
|
48
|
-
"sort-package-json": "^2.10.1"
|
|
49
|
-
},
|
|
50
|
-
"devDependencies": {
|
|
51
|
-
"@types/cross-spawn": "^6.0.6",
|
|
52
|
-
"@types/fs-extra": "^11.0.4",
|
|
53
|
-
"@types/node": "^20.11.0",
|
|
54
|
-
"@types/prompts": "^2.4.9",
|
|
55
|
-
"@vitest/coverage-v8": "^4.0.17",
|
|
56
|
-
"@vitest/ui": "^4.0.17",
|
|
57
|
-
"execa": "^9.5.2",
|
|
58
|
-
"strip-ansi": "^7.1.0",
|
|
59
|
-
"typescript": "^5.3.0",
|
|
60
|
-
"vitest": "^4.0.17"
|
|
61
|
-
},
|
|
62
|
-
"engines": {
|
|
63
|
-
"node": "^20.0.0 || ^22.0.0 || >=24.0.0",
|
|
64
|
-
"pnpm": ">=9.0.0"
|
|
65
|
-
},
|
|
66
|
-
"publishConfig": {
|
|
67
|
-
"access": "public"
|
|
68
|
-
}
|
|
1
|
+
{
|
|
2
|
+
"name": "@blu1606/create-walrus-app",
|
|
3
|
+
"version": "0.1.4",
|
|
4
|
+
"description": "Interactive CLI for scaffolding Walrus applications",
|
|
5
|
+
"type": "module",
|
|
6
|
+
"bin": {
|
|
7
|
+
"create-walrus-app": "./dist/index.js"
|
|
8
|
+
},
|
|
9
|
+
"files": [
|
|
10
|
+
"dist",
|
|
11
|
+
"templates",
|
|
12
|
+
"README.md"
|
|
13
|
+
],
|
|
14
|
+
"scripts": {
|
|
15
|
+
"build": "tsc",
|
|
16
|
+
"dev": "tsc --watch",
|
|
17
|
+
"test": "vitest run",
|
|
18
|
+
"test:watch": "vitest",
|
|
19
|
+
"test:ui": "vitest --ui",
|
|
20
|
+
"test:coverage": "vitest run --coverage",
|
|
21
|
+
"test:integration": "node tests/integration/integration.test.mjs",
|
|
22
|
+
"test:validation": "node tests/integration/validation.test.mjs",
|
|
23
|
+
"test:manual": "node tests/integration/manual.test.js",
|
|
24
|
+
"test:e2e": "node tests/integration/cli.e2e.test.mjs",
|
|
25
|
+
"test:all": "vitest run && pnpm test:e2e",
|
|
26
|
+
"prepublishOnly": "pnpm build"
|
|
27
|
+
},
|
|
28
|
+
"keywords": [
|
|
29
|
+
"walrus",
|
|
30
|
+
"sui",
|
|
31
|
+
"scaffold",
|
|
32
|
+
"cli",
|
|
33
|
+
"template"
|
|
34
|
+
],
|
|
35
|
+
"author": "blu1606 dongthanhquandtq@gmail.com",
|
|
36
|
+
"license": "MIT",
|
|
37
|
+
"repository": {
|
|
38
|
+
"type": "git",
|
|
39
|
+
"url": "https://github.com/blu1606/walrus-starter-kit.git",
|
|
40
|
+
"directory": "packages/cli"
|
|
41
|
+
},
|
|
42
|
+
"dependencies": {
|
|
43
|
+
"commander": "^11.1.0",
|
|
44
|
+
"cross-spawn": "^7.0.3",
|
|
45
|
+
"fs-extra": "^11.2.0",
|
|
46
|
+
"kleur": "^4.1.5",
|
|
47
|
+
"prompts": "^2.4.2",
|
|
48
|
+
"sort-package-json": "^2.10.1"
|
|
49
|
+
},
|
|
50
|
+
"devDependencies": {
|
|
51
|
+
"@types/cross-spawn": "^6.0.6",
|
|
52
|
+
"@types/fs-extra": "^11.0.4",
|
|
53
|
+
"@types/node": "^20.11.0",
|
|
54
|
+
"@types/prompts": "^2.4.9",
|
|
55
|
+
"@vitest/coverage-v8": "^4.0.17",
|
|
56
|
+
"@vitest/ui": "^4.0.17",
|
|
57
|
+
"execa": "^9.5.2",
|
|
58
|
+
"strip-ansi": "^7.1.0",
|
|
59
|
+
"typescript": "^5.3.0",
|
|
60
|
+
"vitest": "^4.0.17"
|
|
61
|
+
},
|
|
62
|
+
"engines": {
|
|
63
|
+
"node": "^20.0.0 || ^22.0.0 || >=24.0.0",
|
|
64
|
+
"pnpm": ">=9.0.0"
|
|
65
|
+
},
|
|
66
|
+
"publishConfig": {
|
|
67
|
+
"access": "public"
|
|
68
|
+
}
|
|
69
69
|
}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
// Re-export storage adapter from SDK layer for use case templates
|
|
2
|
-
export { storageAdapter } from '
|
|
2
|
+
export { storageAdapter } from './adapters/storage.js';
|
|
3
3
|
|
|
4
4
|
// Re-export base adapter types
|
|
5
5
|
export type {
|
|
@@ -7,4 +7,4 @@ export type {
|
|
|
7
7
|
BlobMetadata,
|
|
8
8
|
UploadOptions,
|
|
9
9
|
DownloadOptions,
|
|
10
|
-
} from '
|
|
10
|
+
} from './adapters/storage.js';
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { WalrusClient } from '@mysten/walrus';
|
|
2
2
|
import { SuiClient, getFullnodeUrl } from '@mysten/sui/client';
|
|
3
|
-
import { loadEnv } from '
|
|
3
|
+
import { loadEnv } from '../utils/env.js';
|
|
4
4
|
import { getNetworkConfig } from './config.js';
|
|
5
|
-
import type { WalrusNetwork } from '
|
|
5
|
+
import type { WalrusNetwork } from '../types/walrus.js';
|
|
6
6
|
|
|
7
7
|
let walrusClient: WalrusClient | null = null;
|
|
8
8
|
|