@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 CHANGED
@@ -36,8 +36,9 @@ export function buildContext(args, promptResults) {
36
36
  sdk,
37
37
  framework,
38
38
  useCase,
39
- analytics: Boolean(merged.analytics),
40
- tailwind: Boolean(merged.tailwind),
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
- .option('--analytics', 'Include Blockberry analytics', false)
27
- .option('--no-tailwind', 'Exclude Tailwind CSS')
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
- type: initial.analytics !== undefined ? null : 'confirm',
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
- type: initial.tailwind !== undefined ? null : 'confirm',
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: true,
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.3",
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,4 +1,4 @@
1
- import { formatBytes, formatDate } from '../../../base/src/utils/format.js';
1
+ import { formatBytes, formatDate } from '../utils/format.js';
2
2
  import { removeItem } from '../utils/index-manager.js';
3
3
  import type { GalleryItem } from '../types/gallery.js';
4
4
 
@@ -1,5 +1,5 @@
1
1
  import { useState } from 'react';
2
- import { useUpload } from '../../../react/src/hooks/useStorage.js';
2
+ import { useUpload } from '../hooks/useStorage.js';
3
3
  import { addItem } from '../utils/index-manager.js';
4
4
 
5
5
  interface UploadModalProps {
@@ -1,5 +1,5 @@
1
1
  // Re-export storage adapter from SDK layer for use case templates
2
- export { storageAdapter } from '../../sdk-mysten/src/index.js';
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 '../../base/src/adapters/storage.js';
10
+ } from './adapters/storage.js';
@@ -3,7 +3,7 @@ import type {
3
3
  BlobMetadata,
4
4
  UploadOptions,
5
5
  DownloadOptions,
6
- } from '../../base/src/adapters/storage.js';
6
+ } from '../adapters/storage.js';
7
7
  import { getWalrusClient } from './client.js';
8
8
 
9
9
  export class MystenStorageAdapter implements StorageAdapter {
@@ -1,8 +1,8 @@
1
1
  import { WalrusClient } from '@mysten/walrus';
2
2
  import { SuiClient, getFullnodeUrl } from '@mysten/sui/client';
3
- import { loadEnv } from '../../base/src/utils/env.js';
3
+ import { loadEnv } from '../utils/env.js';
4
4
  import { getNetworkConfig } from './config.js';
5
- import type { WalrusNetwork } from '../../base/src/types/walrus.js';
5
+ import type { WalrusNetwork } from '../types/walrus.js';
6
6
 
7
7
  let walrusClient: WalrusClient | null = null;
8
8
 
@@ -1,4 +1,4 @@
1
- import type { WalrusNetwork } from '../../base/src/types/walrus.js';
1
+ import type { WalrusNetwork } from '../types/walrus.js';
2
2
 
3
3
  export interface MystenWalrusConfig {
4
4
  network: WalrusNetwork;
@@ -8,4 +8,4 @@ export type {
8
8
  BlobMetadata,
9
9
  UploadOptions,
10
10
  DownloadOptions,
11
- } from '../../base/src/adapters/storage.js';
11
+ } from '../adapters/storage.js';
@@ -1,5 +1,5 @@
1
1
  import { useState } from 'react';
2
- import { useDownload } from '../../../react/src/hooks/useStorage.js';
2
+ import { useDownload } from '../hooks/useStorage.js';
3
3
 
4
4
  export function FilePreview() {
5
5
  const [blobId, setBlobId] = useState('');
@@ -1,5 +1,5 @@
1
1
  import { useState } from 'react';
2
- import { useUpload } from '../../../react/src/hooks/useStorage.js';
2
+ import { useUpload } from '../hooks/useStorage.js';
3
3
 
4
4
  export function UploadForm() {
5
5
  const [selectedFile, setSelectedFile] = useState<File | null>(null);