From 4c5ec163450640f0d198cf05d98eb8d467219da7 Mon Sep 17 00:00:00 2001 From: ErikaMolino Date: Tue, 26 Nov 2024 17:56:42 +0100 Subject: [PATCH] feat: add next/commerce addon --- lib/cli_brick_configurations.dart | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/lib/cli_brick_configurations.dart b/lib/cli_brick_configurations.dart index e3a31b2..f2bfa55 100644 --- a/lib/cli_brick_configurations.dart +++ b/lib/cli_brick_configurations.dart @@ -42,6 +42,12 @@ final cliConfiguration = CliConfiguration( brick: GitPath('https://github.com/acadevmy/next-application-brick'), description: 'Generate a fully-equipped Nextjs project in your workspace', questions: [ + Question( + isOptional: true, + prompt: + 'Which template would you like to configure for your Next.js project?', + addonNames: ['next/commerce'], + ), Question( isOptional: true, prompt: @@ -108,6 +114,12 @@ final cliConfiguration = CliConfiguration( ), ], addons: [ + AddonCommandDefinition( + name: 'next/commerce', + brick: GitPath("https://github.com/acadevmy/nextjs-commerce-addon-brick"), + description: "Configures the scaffold to support the ecommerce setup in your Next.js project.", + ), + AddonCommandDefinition( name: 'next/zustand', brick: GitPath("https://github.com/acadevmy/next-zustand-addon-brick"),