diff --git a/CHANGELOG.md b/CHANGELOG.md new file mode 100644 index 0000000..e8b3f9a --- /dev/null +++ b/CHANGELOG.md @@ -0,0 +1,4 @@ +## v0.1.0 (01-01-2024) + +**Added:** +- Initial Release \ No newline at end of file diff --git a/package.json b/package.json index 42b0850..7529520 100644 --- a/package.json +++ b/package.json @@ -1,5 +1,15 @@ { "name": "rcb-plugin", + "homepage": "https://github.com/React-ChatBotify-Plugins", + "keywords": [ + "react", + "chat", + "chatbot", + "conversational-bot", + "conversational-ui", + "frontend-library", + "plugins" + ], "files": [ "./dist" ], @@ -26,6 +36,12 @@ "preview": "vite preview", "prepack": "tsc && vite build" }, + "author": "", + "license": "MIT", + "repository": { + "type": "git", + "url": "https://github.com/React-ChatBotify-Plugins/react-chatbotify-plugin-template" + }, "peerDependencies": { "react": "^18.3.1", "react-dom": "^18.3.1" diff --git a/setup.js b/setup.js index 17e4b24..d71f26a 100644 --- a/setup.js +++ b/setup.js @@ -38,7 +38,7 @@ const startSetup = () => { console.log("\x1b[36m%s\x1b[0m", "========================================"); console.log("\x1b[36m%s\x1b[0m", " React ChatBotify Plugin Template Setup"); console.log("\x1b[36m%s\x1b[0m", "========================================\n"); - console.log("This setup will configure your plugin\"s name, description, export name and carry out initial installations.\n"); + console.log("This setup will configure your plugin\"s name, description, export name, author and carry out initial installations.\n"); // questions to prompt during setup const questions = [ @@ -49,6 +49,7 @@ const startSetup = () => { }, { question: "\x1b[33m[Prompt] Plugin description: \x1b[0m", key: "description" }, { question: "\x1b[33m[Prompt] Export name (default export of your plugin): \x1b[0m", key: "exportName" }, + { question: "\x1b[33m[Prompt] GitHub handle (for author field in package.json): \x1b[0m", key: "author" }, ]; let answers = {}; @@ -78,6 +79,7 @@ const startSetup = () => { const packageData = JSON.parse(fs.readFileSync(packageJsonPath, "utf8")); packageData.name = answers.name; packageData.description = answers.description; + packageData.author = answers.author; fs.writeFileSync(packageJsonPath, JSON.stringify(packageData, null, 2)); // updates index.tsx