From e545d6271db6585b08c0cae9331b688893baa79c Mon Sep 17 00:00:00 2001 From: Josephat-S Date: Mon, 25 May 2026 20:46:43 +0200 Subject: [PATCH] add opusify add command to add some plugins/features after the project has been created --- index.js | 7 ++ src/commands/add.js | 84 ++++++++++++++++++ src/plugins/analytics.js | 159 ++++++++++++++++++++++++++++++++++ src/plugins/auth.js | 179 +++++++++++++++++++++++++++++++++++++++ src/plugins/dark-mode.js | 116 +++++++++++++++++++++++++ 5 files changed, 545 insertions(+) create mode 100644 src/commands/add.js create mode 100644 src/plugins/analytics.js create mode 100644 src/plugins/auth.js create mode 100644 src/plugins/dark-mode.js diff --git a/index.js b/index.js index 7fca8a4..72df602 100755 --- a/index.js +++ b/index.js @@ -6,6 +6,7 @@ import { readFileSync } from 'fs'; import { fileURLToPath } from 'url'; import { dirname, join } from 'path'; import { generateProject } from './src/generate.js'; +import { addAction } from './src/commands/add.js'; const __filename = fileURLToPath(import.meta.url); const __dirname = dirname(__filename); @@ -384,4 +385,10 @@ program .option('-t, --template