jacob-setup
Advanced tools
Comparing version 1.0.4 to 1.0.5
36
index.js
@@ -81,2 +81,5 @@ #!/usr/bin/env node | ||
default: "/src/types", | ||
when: function (answers) { | ||
return answers.language === "TypeScript"; | ||
}, | ||
}, | ||
@@ -94,2 +97,5 @@ { | ||
default: "/tailwind.config.js", | ||
when: function (answers) { | ||
return answers.style === "Tailwind"; | ||
}, | ||
}, | ||
@@ -103,8 +109,2 @@ { | ||
{ | ||
type: "input", | ||
name: "envVariables.exampleFile", | ||
message: "Enter the path to your .env.example file:", | ||
default: "/.env.example", | ||
}, | ||
{ | ||
type: "list", | ||
@@ -122,2 +122,5 @@ name: "stateManagement.tool", | ||
default: "/src/store", | ||
when: function (answers) { | ||
return answers.stateManagement.tool !== "None"; | ||
}, | ||
}, | ||
@@ -135,2 +138,5 @@ { | ||
default: "Jest", | ||
when: function (answers) { | ||
return answers.testing.writeTests; | ||
}, | ||
}, | ||
@@ -148,7 +154,23 @@ { | ||
default: "/src/stories", | ||
when: function (answers) { | ||
return answers.storybook.writeStories; | ||
}, | ||
}, | ||
{ | ||
type: "input", | ||
name: "envVariables.exampleFile", | ||
message: "Enter the path to your .env.example file:", | ||
default: "/.env.example", | ||
}, | ||
{ | ||
type: "input", | ||
name: "env", | ||
message: | ||
"Enter any environment variables needed for the app to build (for testing, not production):", | ||
default: "", | ||
}, | ||
]; | ||
const answers = await inquirer.default.prompt(questions); // Access prompt via default | ||
const configFilePath = path.join(process.cwd(), "jacob-config.json"); | ||
const configFilePath = path.join(process.cwd(), "otto.json"); // change this to jacob-config.json or something similar | ||
@@ -155,0 +177,0 @@ fs.writeFile(configFilePath, JSON.stringify(answers, null, 2), (err) => { |
{ | ||
"name": "jacob-setup", | ||
"version": "1.0.4", | ||
"version": "1.0.5", | ||
"description": "A command-line utility for generating JACoB configuration files, enabling easy setup and integration of the JACoB AI coding assistant into web development projects.", | ||
"main": "index.js", | ||
"scripts": { | ||
"create": "node index.js create" | ||
}, | ||
"repository": { | ||
@@ -10,0 +7,0 @@ "type": "git", |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
11791
175