create-veil-app 0.3.1 → 0.3.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/dist/index.js +14 -11
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -179,7 +179,10 @@ function displayTemplates() {
|
|
|
179
179
|
}
|
|
180
180
|
}
|
|
181
181
|
var program = new Command();
|
|
182
|
-
program.name("veil").description("Privacy infrastructure for Solana \u2014 DeFi, DApps, Exchanges, Wallets").version("0.3.
|
|
182
|
+
program.name("create-veil-app").description("Privacy infrastructure for Solana \u2014 DeFi, DApps, Exchanges, Wallets").version("0.3.1").argument("[name]", "Project name").option("-t, --template <template>", "Template: dex, lending, yield, pool, gaming, nft, social, governance, cex, aggregator, trading, wallet, portfolio, payments, basic").option("-f, --framework <framework>", "Framework: nextjs or vite").option("--helius", "Enable Helius RPC (default: true)").option("--no-helius", "Disable Helius RPC").option("--shadow-pay", "Enable ShadowPay mainnet integration").option("--no-shadow-pay", "Disable ShadowPay").option("--network <network>", "Veil features network: devnet or localnet").action(async (name, options) => {
|
|
183
|
+
displayBanner();
|
|
184
|
+
await runInit({ ...options, name });
|
|
185
|
+
});
|
|
183
186
|
program.command("init [name]").description("Create a new project with full Veil + ShadowWire privacy stack").option("-t, --template <template>", "Template: dex, lending, yield, pool, gaming, nft, social, governance, cex, aggregator, trading, wallet, portfolio, payments, basic").option("-f, --framework <framework>", "Framework: nextjs or vite").option("--helius", "Enable Helius RPC (default: true)").option("--no-helius", "Disable Helius RPC").option("--shadow-pay", "Enable ShadowPay mainnet integration").option("--no-shadow-pay", "Disable ShadowPay").option("--network <network>", "Veil features network: devnet or localnet").action(async (name, options) => {
|
|
184
187
|
displayBanner();
|
|
185
188
|
await runInit({ ...options, name });
|
|
@@ -201,20 +204,20 @@ program.command("identity <action>").description("Manage ZK identities (create,
|
|
|
201
204
|
if (process.argv.length === 2) {
|
|
202
205
|
displayBanner();
|
|
203
206
|
console.log(chalk2.bold("Quick Start:\n"));
|
|
204
|
-
console.log(` ${chalk2.cyan("veil
|
|
205
|
-
console.log(` ${chalk2.cyan("veil
|
|
206
|
-
console.log(` ${chalk2.cyan("veil
|
|
207
|
+
console.log(` ${chalk2.cyan("npx create-veil-app my-dex --template=dex")}`);
|
|
208
|
+
console.log(` ${chalk2.cyan("npx create-veil-app my-wallet --template=wallet")}`);
|
|
209
|
+
console.log(` ${chalk2.cyan("npx create-veil-app my-dao --template=governance")}`);
|
|
207
210
|
console.log();
|
|
208
|
-
console.log(chalk2.dim("
|
|
209
|
-
console.log(` ${chalk2.cyan("veil
|
|
210
|
-
console.log(` ${chalk2.cyan("veil
|
|
211
|
-
console.log(` ${chalk2.cyan("veil
|
|
212
|
-
console.log(` ${chalk2.cyan("veil
|
|
211
|
+
console.log(chalk2.dim("Usage:"));
|
|
212
|
+
console.log(` ${chalk2.cyan("npx create-veil-app [name]")} Create new project`);
|
|
213
|
+
console.log(` ${chalk2.cyan("npx create-veil-app [name] -t dex")} Use specific template`);
|
|
214
|
+
console.log(` ${chalk2.cyan("npx create-veil-app init [name]")} Alternative syntax`);
|
|
215
|
+
console.log(` ${chalk2.cyan("npx create-veil-app templates")} List all templates`);
|
|
216
|
+
console.log(` ${chalk2.cyan("npx create-veil-app demo")} Interactive SDK demo`);
|
|
213
217
|
console.log();
|
|
214
218
|
console.log(chalk2.dim("Network Info:"));
|
|
215
219
|
console.log(` ${chalk2.yellow("ShadowPay")} runs on ${chalk2.bold("mainnet")} (real private transfers)`);
|
|
216
220
|
console.log(` ${chalk2.cyan("Veil features")} run on ${chalk2.bold("devnet")} (voting, staking, multisig)`);
|
|
217
221
|
console.log();
|
|
218
|
-
} else {
|
|
219
|
-
program.parse();
|
|
220
222
|
}
|
|
223
|
+
program.parse();
|