@devvmichael/create-stacks-app 0.2.2 → 0.2.3

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/index.js CHANGED
@@ -1,47 +1,47 @@
1
1
  #!/usr/bin/env node
2
- import { Command } from 'commander';
3
- import { createCommand } from './commands/create.js';
4
- import { addCommand } from './commands/add.js';
5
- import { deployCommand } from './commands/deploy.js';
6
- import { readFileSync } from 'fs';
7
- import { fileURLToPath } from 'url';
8
- import { dirname, join } from 'path';
2
+ import { Command } from "commander";
3
+ import { createCommand } from "./commands/create.js";
4
+ import { addCommand } from "./commands/add.js";
5
+ import { deployCommand } from "./commands/deploy.js";
6
+ import { readFileSync } from "fs";
7
+ import { fileURLToPath } from "url";
8
+ import { dirname, join } from "path";
9
9
  const __filename = fileURLToPath(import.meta.url);
10
10
  const __dirname = dirname(__filename);
11
- const packageJsonPath = join(__dirname, '..', 'package.json');
12
- const packageJson = JSON.parse(readFileSync(packageJsonPath, 'utf-8'));
11
+ const packageJsonPath = join(__dirname, "..", "package.json");
12
+ const packageJson = JSON.parse(readFileSync(packageJsonPath, "utf-8"));
13
13
  const program = new Command();
14
14
  program
15
- .name('create-stacks-app')
16
- .description('Scaffold full-stack Stacks blockchain applications')
15
+ .name("create-stacks-app")
16
+ .description("Scaffold full-stack Stacks blockchain applications")
17
17
  .version(packageJson.version);
18
18
  // Main create command (default)
19
19
  program
20
- .argument('[project-name]', 'Name of the project')
21
- .option('-t, --template <name>', 'Template to use (nextjs, react, vue)', 'nextjs')
22
- .option('-c, --contracts <list>', 'Contracts to include (counter,token,nft)')
23
- .option('--typescript', 'Use TypeScript', true)
24
- .option('--no-typescript', 'Use JavaScript')
25
- .option('--tailwind', 'Include Tailwind CSS', true)
26
- .option('--no-tailwind', 'Skip Tailwind CSS')
27
- .option('--no-git', 'Skip Git initialization')
28
- .option('--package-manager <pm>', 'Package manager (npm, pnpm, yarn)', 'pnpm')
29
- .option('--skip-install', 'Skip dependency installation')
30
- .option('-y, --yes', 'Skip prompts, use defaults')
20
+ .argument("[project-name]", "Name of the project")
21
+ .option("-t, --template <name>", "Template to use (nextjs, react, vue)")
22
+ .option("-c, --contracts <list>", "Contracts to include (counter,token,nft)")
23
+ .option("--typescript", "Use TypeScript")
24
+ .option("--no-typescript", "Use JavaScript")
25
+ .option("--tailwind", "Include Tailwind CSS")
26
+ .option("--no-tailwind", "Skip Tailwind CSS")
27
+ .option("--no-git", "Skip Git initialization")
28
+ .option("--package-manager <pm>", "Package manager (npm, pnpm, yarn)")
29
+ .option("--skip-install", "Skip dependency installation")
30
+ .option("-y, --yes", "Skip prompts, use defaults")
31
31
  .action(createCommand);
32
32
  // Add command for contracts and components
33
33
  program
34
- .command('add <type> <name>')
35
- .description('Add a contract or component to existing project')
36
- .option('--sip010', 'Create a SIP-010 fungible token contract')
37
- .option('--sip009', 'Create a SIP-009 NFT contract')
38
- .option('-t, --template <name>', 'Use a specific template (e.g. marketplace, defi)')
34
+ .command("add <type> <name>")
35
+ .description("Add a contract or component to existing project")
36
+ .option("--sip010", "Create a SIP-010 fungible token contract")
37
+ .option("--sip009", "Create a SIP-009 NFT contract")
38
+ .option("-t, --template <name>", "Use a specific template (e.g. marketplace, defi)")
39
39
  .action(addCommand);
40
40
  // Deploy command
41
41
  program
42
- .command('deploy <network>')
43
- .description('Deploy contracts to testnet or mainnet')
44
- .option('--private-key <key>', 'Private key for deployment (or use env var)')
42
+ .command("deploy <network>")
43
+ .description("Deploy contracts to testnet or mainnet")
44
+ .option("--private-key <key>", "Private key for deployment (or use env var)")
45
45
  .action(deployCommand);
46
46
  program.parse();
47
47
  //# sourceMappingURL=index.js.map
package/dist/index.js.map CHANGED
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":";AACA,OAAO,EAAE,OAAO,EAAE,MAAM,WAAW,CAAC;AACpC,OAAO,EAAE,aAAa,EAAE,MAAM,sBAAsB,CAAC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KACrD,MAAM,CAAC,qBAAqB,EAAE,6CAA6C,CAAC;KAC5E,MAAM,CAAC,aAAa,CAAC,CAAC;AAEzB,OAAO,CAAC,KAAK,EAAE,CAAC"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@devvmichael/create-stacks-app",
3
- "version": "0.2.2",
3
+ "version": "0.2.3",
4
4
  "description": "Scaffold full-stack Stacks blockchain applications",
5
5
  "type": "module",
6
6
  "main": "./dist/index.js",