brewcli 1.0.0
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/.prettierignore +9 -0
- package/.prettierrc +25 -0
- package/LICENSE +21 -0
- package/Readme.md +157 -0
- package/dist/app.d.ts +8 -0
- package/dist/app.d.ts.map +1 -0
- package/dist/app.js +188 -0
- package/dist/app.js.map +1 -0
- package/dist/cli.d.ts +3 -0
- package/dist/cli.d.ts.map +1 -0
- package/dist/cli.js +26 -0
- package/dist/cli.js.map +1 -0
- package/dist/components/ErrorDisplay.d.ts +7 -0
- package/dist/components/ErrorDisplay.d.ts.map +1 -0
- package/dist/components/ErrorDisplay.js +8 -0
- package/dist/components/ErrorDisplay.js.map +1 -0
- package/dist/components/NamePrompt.d.ts +7 -0
- package/dist/components/NamePrompt.d.ts.map +1 -0
- package/dist/components/NamePrompt.js +19 -0
- package/dist/components/NamePrompt.js.map +1 -0
- package/dist/components/SelectionList.d.ts +13 -0
- package/dist/components/SelectionList.d.ts.map +1 -0
- package/dist/components/SelectionList.js +9 -0
- package/dist/components/SelectionList.js.map +1 -0
- package/dist/components/Spinner.d.ts +7 -0
- package/dist/components/Spinner.d.ts.map +1 -0
- package/dist/components/Spinner.js +9 -0
- package/dist/components/Spinner.js.map +1 -0
- package/dist/components/SuccessBox.d.ts +8 -0
- package/dist/components/SuccessBox.d.ts.map +1 -0
- package/dist/components/SuccessBox.js +10 -0
- package/dist/components/SuccessBox.js.map +1 -0
- package/dist/components/Welcome.d.ts +4 -0
- package/dist/components/Welcome.d.ts.map +1 -0
- package/dist/components/Welcome.js +10 -0
- package/dist/components/Welcome.js.map +1 -0
- package/dist/templates/node/javascript/angular/.gitkeep +0 -0
- package/dist/templates/node/javascript/express/.env.example +5 -0
- package/dist/templates/node/javascript/express/.gitkeep +0 -0
- package/dist/templates/node/javascript/express/Readme.md +11 -0
- package/dist/templates/node/javascript/express/package.json +18 -0
- package/dist/templates/node/javascript/express/src/.gitkeep +0 -0
- package/dist/templates/node/javascript/express/src/app.js +23 -0
- package/dist/templates/node/javascript/express/src/constants.js +1 -0
- package/dist/templates/node/javascript/express/src/controllers/.gitkeep +0 -0
- package/dist/templates/node/javascript/express/src/db/.gitkeep +0 -0
- package/dist/templates/node/javascript/express/src/db/index.js +14 -0
- package/dist/templates/node/javascript/express/src/index.js +17 -0
- package/dist/templates/node/javascript/express/src/middlewares/.gitkeep +0 -0
- package/dist/templates/node/javascript/express/src/models/.gitkeep +0 -0
- package/dist/templates/node/javascript/express/src/routes/.gitkeep +0 -0
- package/dist/templates/node/javascript/express/src/utils/.gitkeep +0 -0
- package/dist/templates/node/javascript/fastify/.env.example +5 -0
- package/dist/templates/node/javascript/fastify/.gitkeep +0 -0
- package/dist/templates/node/javascript/fastify/package.json +20 -0
- package/dist/templates/node/javascript/fastify/src/index.js +28 -0
- package/dist/templates/node/javascript/nestjs/.gitkeep +0 -0
- package/dist/templates/node/javascript/nextjs/.gitkeep +0 -0
- package/dist/templates/node/javascript/reactjs/.gitkeep +0 -0
- package/dist/templates/node/javascript/vuejs/.gitkeep +0 -0
- package/dist/templates/node/typescript/angular/.gitkeep +0 -0
- package/dist/templates/node/typescript/express/.env.example +5 -0
- package/dist/templates/node/typescript/express/.gitkeep +0 -0
- package/dist/templates/node/typescript/express/package.json +25 -0
- package/dist/templates/node/typescript/express/src/app.ts +17 -0
- package/dist/templates/node/typescript/express/src/constants.ts +1 -0
- package/dist/templates/node/typescript/express/src/db/index.ts +14 -0
- package/dist/templates/node/typescript/express/src/index.ts +17 -0
- package/dist/templates/node/typescript/express/tsconfig.json +15 -0
- package/dist/templates/node/typescript/fastify/.env.example +5 -0
- package/dist/templates/node/typescript/fastify/.gitkeep +0 -0
- package/dist/templates/node/typescript/fastify/package.json +20 -0
- package/dist/templates/node/typescript/fastify/tsconfig.json +15 -0
- package/dist/templates/node/typescript/nestjs/.gitkeep +0 -0
- package/dist/templates/node/typescript/nextjs/.gitkeep +0 -0
- package/dist/templates/node/typescript/reactjs/.gitkeep +0 -0
- package/dist/templates/node/typescript/vuejs/.gitkeep +0 -0
- package/package.json +66 -0
- package/src/app.tsx +274 -0
- package/src/cli.tsx +32 -0
- package/src/components/ErrorDisplay.tsx +21 -0
- package/src/components/NamePrompt.tsx +67 -0
- package/src/components/SelectionList.tsx +64 -0
- package/src/components/Spinner.tsx +24 -0
- package/src/components/SuccessBox.tsx +79 -0
- package/src/components/Welcome.tsx +30 -0
- package/src/templates/node/javascript/angular/.gitkeep +0 -0
- package/src/templates/node/javascript/express/.env.example +5 -0
- package/src/templates/node/javascript/express/.gitkeep +0 -0
- package/src/templates/node/javascript/express/Readme.md +11 -0
- package/src/templates/node/javascript/express/package.json +18 -0
- package/src/templates/node/javascript/express/src/.gitkeep +0 -0
- package/src/templates/node/javascript/express/src/app.js +23 -0
- package/src/templates/node/javascript/express/src/constants.js +1 -0
- package/src/templates/node/javascript/express/src/controllers/.gitkeep +0 -0
- package/src/templates/node/javascript/express/src/db/.gitkeep +0 -0
- package/src/templates/node/javascript/express/src/db/index.js +14 -0
- package/src/templates/node/javascript/express/src/index.js +17 -0
- package/src/templates/node/javascript/express/src/middlewares/.gitkeep +0 -0
- package/src/templates/node/javascript/express/src/models/.gitkeep +0 -0
- package/src/templates/node/javascript/express/src/routes/.gitkeep +0 -0
- package/src/templates/node/javascript/express/src/utils/.gitkeep +0 -0
- package/src/templates/node/javascript/fastify/.env.example +5 -0
- package/src/templates/node/javascript/fastify/.gitkeep +0 -0
- package/src/templates/node/javascript/fastify/package.json +20 -0
- package/src/templates/node/javascript/fastify/src/index.js +28 -0
- package/src/templates/node/javascript/nestjs/.gitkeep +0 -0
- package/src/templates/node/javascript/nextjs/.gitkeep +0 -0
- package/src/templates/node/javascript/reactjs/.gitkeep +0 -0
- package/src/templates/node/javascript/vuejs/.gitkeep +0 -0
- package/src/templates/node/typescript/angular/.gitkeep +0 -0
- package/src/templates/node/typescript/express/.env.example +5 -0
- package/src/templates/node/typescript/express/.gitkeep +0 -0
- package/src/templates/node/typescript/express/package.json +25 -0
- package/src/templates/node/typescript/express/src/app.ts +17 -0
- package/src/templates/node/typescript/express/src/constants.ts +1 -0
- package/src/templates/node/typescript/express/src/db/index.ts +14 -0
- package/src/templates/node/typescript/express/src/index.ts +17 -0
- package/src/templates/node/typescript/express/tsconfig.json +15 -0
- package/src/templates/node/typescript/fastify/.env.example +5 -0
- package/src/templates/node/typescript/fastify/.gitkeep +0 -0
- package/src/templates/node/typescript/fastify/package.json +20 -0
- package/src/templates/node/typescript/fastify/tsconfig.json +15 -0
- package/src/templates/node/typescript/nestjs/.gitkeep +0 -0
- package/src/templates/node/typescript/nextjs/.gitkeep +0 -0
- package/src/templates/node/typescript/reactjs/.gitkeep +0 -0
- package/src/templates/node/typescript/vuejs/.gitkeep +0 -0
- package/tsconfig.json +46 -0
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Welcome.d.ts","sourceRoot":"","sources":["../../src/components/Welcome.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAK1B,QAAA,MAAM,OAAO,EAAE,KAAK,CAAC,EAsBpB,CAAC;AAEF,eAAe,OAAO,CAAC"}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
2
|
+
import React from "react";
|
|
3
|
+
import { Text, Box } from "ink";
|
|
4
|
+
import Gradient from "ink-gradient";
|
|
5
|
+
import BigText from "ink-big-text";
|
|
6
|
+
const Welcome = () => {
|
|
7
|
+
return (_jsxs(Box, { flexDirection: "column", padding: 1, children: [_jsx(Box, { children: _jsx(Gradient, { colors: ["#f7971e", "#ffd200", "#00c6ff", "#0072ff"], children: _jsx(BigText, { text: "BREW CLI", font: "block" }) }) }), _jsx(Box, { children: _jsx(Text, { color: "cyanBright", italic: true, children: "\u26A1 The Ultimate Project Scaffolder for 2026" }) }), _jsx(Box, { marginY: 1, children: _jsx(Text, { dimColor: true, children: "\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500" }) })] }));
|
|
8
|
+
};
|
|
9
|
+
export default Welcome;
|
|
10
|
+
//# sourceMappingURL=Welcome.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Welcome.js","sourceRoot":"","sources":["../../src/components/Welcome.tsx"],"names":[],"mappings":";AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,EAAE,IAAI,EAAE,GAAG,EAAE,MAAM,KAAK,CAAC;AAChC,OAAO,QAAQ,MAAM,cAAc,CAAC;AACpC,OAAO,OAAO,MAAM,cAAc,CAAC;AAEnC,MAAM,OAAO,GAAa,GAAG,EAAE;IAC7B,OAAO,CACL,MAAC,GAAG,IAAC,aAAa,EAAC,QAAQ,EAAC,OAAO,EAAE,CAAC,aACpC,KAAC,GAAG,cACF,KAAC,QAAQ,IAAC,MAAM,EAAE,CAAC,SAAS,EAAE,SAAS,EAAE,SAAS,EAAE,SAAS,CAAC,YAC5D,KAAC,OAAO,IAAC,IAAI,EAAC,UAAU,EAAC,IAAI,EAAC,OAAO,GAAG,GAC/B,GACP,EAEN,KAAC,GAAG,cACF,KAAC,IAAI,IAAC,KAAK,EAAC,YAAY,EAAC,MAAM,sEAExB,GACH,EAEN,KAAC,GAAG,IAAC,OAAO,EAAE,CAAC,YACb,KAAC,IAAI,IAAC,QAAQ,qYAEP,GACH,IACF,CACP,CAAC;AACJ,CAAC,CAAC;AAEF,eAAe,OAAO,CAAC"}
|
|
File without changes
|
|
File without changes
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
# 🚀 Brewed Backend
|
|
2
|
+
|
|
3
|
+
Welcome to your fresh Node.js backend! This project was scaffolded using **Brew CLI**. You have a modular, ESM-ready structure waiting for your logic.
|
|
4
|
+
|
|
5
|
+
## 🛠️ Getting Started
|
|
6
|
+
|
|
7
|
+
### 1. Install Dependencies
|
|
8
|
+
|
|
9
|
+
```bash
|
|
10
|
+
npm install
|
|
11
|
+
```
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "temp-name",
|
|
3
|
+
"version": "1.0.0",
|
|
4
|
+
"type": "module",
|
|
5
|
+
"main": "src/index.js",
|
|
6
|
+
"scripts": {
|
|
7
|
+
"start": "node src/index.js",
|
|
8
|
+
"dev": "nodemon src/index.js"
|
|
9
|
+
},
|
|
10
|
+
"dependencies": {
|
|
11
|
+
"express": "^4.18.2",
|
|
12
|
+
"mongoose": "^8.0.0",
|
|
13
|
+
"dotenv": "^16.3.1"
|
|
14
|
+
},
|
|
15
|
+
"devDependencies": {
|
|
16
|
+
"nodemon": "^3.0.0"
|
|
17
|
+
}
|
|
18
|
+
}
|
|
File without changes
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
import express from "express";
|
|
2
|
+
import cors from "cors";
|
|
3
|
+
import cookieParser from "cookie-parser";
|
|
4
|
+
|
|
5
|
+
const app = express();
|
|
6
|
+
|
|
7
|
+
app.use(cors({
|
|
8
|
+
origin: process.env.CORS_ORIGIN,
|
|
9
|
+
credentials: true
|
|
10
|
+
}));
|
|
11
|
+
|
|
12
|
+
app.use(express.json({limit: "16kb"}));
|
|
13
|
+
app.use(express.urlencoded({extended: true, limit: "16kb"}));
|
|
14
|
+
app.use(express.static("public"));
|
|
15
|
+
app.use(cookieParser());
|
|
16
|
+
|
|
17
|
+
// Import routes
|
|
18
|
+
// import userRouter from './routes/user.routes.js'
|
|
19
|
+
|
|
20
|
+
// Routes declaration
|
|
21
|
+
// app.use("/api/v1/users", userRouter)
|
|
22
|
+
|
|
23
|
+
export { app };
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export const DB_NAME = "brewdb";
|
|
File without changes
|
|
File without changes
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import mongoose from "mongoose";
|
|
2
|
+
import { DB_NAME } from "../constants.js";
|
|
3
|
+
|
|
4
|
+
const connectDB = async () => {
|
|
5
|
+
try {
|
|
6
|
+
const connectionInstance = await mongoose.connect(`${process.env.MONGODB_URI}/${DB_NAME}`);
|
|
7
|
+
console.log(`\n MongoDB connected !! DB HOST: ${connectionInstance.connection.host}`);
|
|
8
|
+
} catch (error) {
|
|
9
|
+
console.log("MONGODB connection FAILED ", error);
|
|
10
|
+
process.exit(1);
|
|
11
|
+
}
|
|
12
|
+
};
|
|
13
|
+
|
|
14
|
+
export default connectDB;
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import dotenv from "dotenv";
|
|
2
|
+
import connectDB from "./db/index.js";
|
|
3
|
+
import { app } from './app.js';
|
|
4
|
+
|
|
5
|
+
dotenv.config({
|
|
6
|
+
path: './.env'
|
|
7
|
+
});
|
|
8
|
+
|
|
9
|
+
connectDB()
|
|
10
|
+
.then(() => {
|
|
11
|
+
app.listen(process.env.PORT || 8000, () => {
|
|
12
|
+
console.log(`⚙️ Server is running at port : ${process.env.PORT}`);
|
|
13
|
+
});
|
|
14
|
+
})
|
|
15
|
+
.catch((err) => {
|
|
16
|
+
console.log("MONGO db connection failed !!! ", err);
|
|
17
|
+
});
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "fastify-js-starter",
|
|
3
|
+
"version": "1.0.0",
|
|
4
|
+
"type": "module",
|
|
5
|
+
"main": "src/index.js",
|
|
6
|
+
"scripts": {
|
|
7
|
+
"dev": "nodemon src/index.js",
|
|
8
|
+
"start": "node src/index.js"
|
|
9
|
+
},
|
|
10
|
+
"dependencies": {
|
|
11
|
+
"fastify": "^4.26.2",
|
|
12
|
+
"fastify-plugin": "^4.5.1",
|
|
13
|
+
"@fastify/cors": "^9.0.1",
|
|
14
|
+
"@fastify/env": "^4.3.0",
|
|
15
|
+
"mongoose": "^8.0.0"
|
|
16
|
+
},
|
|
17
|
+
"devDependencies": {
|
|
18
|
+
"nodemon": "^3.1.0"
|
|
19
|
+
}
|
|
20
|
+
}
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
import Fastify from 'fastify';
|
|
2
|
+
import cors from '@fastify/cors';
|
|
3
|
+
import mongoose from 'mongoose';
|
|
4
|
+
|
|
5
|
+
const fastify = Fastify({
|
|
6
|
+
logger: true
|
|
7
|
+
});
|
|
8
|
+
|
|
9
|
+
// Register plugins
|
|
10
|
+
fastify.register(cors);
|
|
11
|
+
|
|
12
|
+
// Declare a route
|
|
13
|
+
fastify.get('/', async (request, reply) => {
|
|
14
|
+
return { hello: 'brew-cli' };
|
|
15
|
+
});
|
|
16
|
+
|
|
17
|
+
// Run the server!
|
|
18
|
+
const start = async () => {
|
|
19
|
+
try {
|
|
20
|
+
await mongoose.connect(process.env.MONGODB_URI || 'mongodb://localhost:27017/fastify-brew');
|
|
21
|
+
await fastify.listen({ port: 3000, host: '0.0.0.0' });
|
|
22
|
+
} catch (err) {
|
|
23
|
+
fastify.log.error(err);
|
|
24
|
+
process.exit(1);
|
|
25
|
+
}
|
|
26
|
+
};
|
|
27
|
+
|
|
28
|
+
start();
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "express-ts-starter",
|
|
3
|
+
"version": "1.0.0",
|
|
4
|
+
"type": "module",
|
|
5
|
+
"scripts": {
|
|
6
|
+
"dev": "tsx watch src/index.ts",
|
|
7
|
+
"start": "node dist/index.js",
|
|
8
|
+
"build": "tsc"
|
|
9
|
+
},
|
|
10
|
+
"dependencies": {
|
|
11
|
+
"express": "^4.19.0",
|
|
12
|
+
"cors": "^2.8.5",
|
|
13
|
+
"cookie-parser": "^1.4.6",
|
|
14
|
+
"dotenv": "^16.4.5",
|
|
15
|
+
"mongoose": "^8.0.0"
|
|
16
|
+
},
|
|
17
|
+
"devDependencies": {
|
|
18
|
+
"@types/express": "^4.17.21",
|
|
19
|
+
"@types/cors": "^2.8.17",
|
|
20
|
+
"@types/cookie-parser": "^1.4.7",
|
|
21
|
+
"@types/node": "^20.12.7",
|
|
22
|
+
"tsx": "^4.7.2",
|
|
23
|
+
"typescript": "^5.4.5"
|
|
24
|
+
}
|
|
25
|
+
}
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import express, { Application } from "express";
|
|
2
|
+
import cors from "cors";
|
|
3
|
+
import cookieParser from "cookie-parser";
|
|
4
|
+
|
|
5
|
+
const app: Application = express();
|
|
6
|
+
|
|
7
|
+
app.use(cors({
|
|
8
|
+
origin: process.env.CORS_ORIGIN,
|
|
9
|
+
credentials: true
|
|
10
|
+
}));
|
|
11
|
+
|
|
12
|
+
app.use(express.json({limit: "16kb"}));
|
|
13
|
+
app.use(express.urlencoded({extended: true, limit: "16kb"}));
|
|
14
|
+
app.use(express.static("public"));
|
|
15
|
+
app.use(cookieParser());
|
|
16
|
+
|
|
17
|
+
export { app };
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export const DB_NAME = "brewdb";
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import mongoose from "mongoose";
|
|
2
|
+
import { DB_NAME } from "../constants.js";
|
|
3
|
+
|
|
4
|
+
const connectDB = async (): Promise<void> => {
|
|
5
|
+
try {
|
|
6
|
+
const connectionInstance = await mongoose.connect(`${process.env.MONGODB_URI}/${DB_NAME}`);
|
|
7
|
+
console.log(`\n MongoDB connected !! DB HOST: ${connectionInstance.connection.host}`);
|
|
8
|
+
} catch (error) {
|
|
9
|
+
console.log("MONGODB connection FAILED ", error);
|
|
10
|
+
process.exit(1);
|
|
11
|
+
}
|
|
12
|
+
};
|
|
13
|
+
|
|
14
|
+
export default connectDB;
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import dotenv from "dotenv";
|
|
2
|
+
import connectDB from "./db/index.js";
|
|
3
|
+
import { app } from './app.js';
|
|
4
|
+
|
|
5
|
+
dotenv.config({
|
|
6
|
+
path: './.env'
|
|
7
|
+
});
|
|
8
|
+
|
|
9
|
+
connectDB()
|
|
10
|
+
.then(() => {
|
|
11
|
+
app.listen(process.env.PORT || 8000, () => {
|
|
12
|
+
console.log(`⚙️ Server is running at port : ${process.env.PORT}`);
|
|
13
|
+
});
|
|
14
|
+
})
|
|
15
|
+
.catch((err) => {
|
|
16
|
+
console.log("MONGO db connection failed !!! ", err);
|
|
17
|
+
});
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
{
|
|
2
|
+
"compilerOptions": {
|
|
3
|
+
"target": "ESNext",
|
|
4
|
+
"module": "NodeNext",
|
|
5
|
+
"moduleResolution": "NodeNext",
|
|
6
|
+
"outDir": "./dist",
|
|
7
|
+
"rootDir": "./src",
|
|
8
|
+
"strict": true,
|
|
9
|
+
"esModuleInterop": true,
|
|
10
|
+
"skipLibCheck": true,
|
|
11
|
+
"forceConsistentCasingInFileNames": true
|
|
12
|
+
},
|
|
13
|
+
"include": ["src/**/*"],
|
|
14
|
+
"exclude": ["node_modules"]
|
|
15
|
+
}
|
|
File without changes
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "fastify-ts-starter",
|
|
3
|
+
"version": "1.0.0",
|
|
4
|
+
"type": "module",
|
|
5
|
+
"scripts": {
|
|
6
|
+
"dev": "tsx watch src/index.ts",
|
|
7
|
+
"start": "node dist/index.js",
|
|
8
|
+
"build": "tsc"
|
|
9
|
+
},
|
|
10
|
+
"dependencies": {
|
|
11
|
+
"fastify": "^4.26.2",
|
|
12
|
+
"@fastify/cors": "^9.0.1",
|
|
13
|
+
"mongoose": "^8.0.0"
|
|
14
|
+
},
|
|
15
|
+
"devDependencies": {
|
|
16
|
+
"@types/node": "^20.12.7",
|
|
17
|
+
"tsx": "^4.7.2",
|
|
18
|
+
"typescript": "^5.4.5"
|
|
19
|
+
}
|
|
20
|
+
}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
{
|
|
2
|
+
"compilerOptions": {
|
|
3
|
+
"target": "ESNext",
|
|
4
|
+
"module": "NodeNext",
|
|
5
|
+
"moduleResolution": "NodeNext",
|
|
6
|
+
"outDir": "./dist",
|
|
7
|
+
"rootDir": "./src",
|
|
8
|
+
"strict": true,
|
|
9
|
+
"esModuleInterop": true,
|
|
10
|
+
"skipLibCheck": true,
|
|
11
|
+
"forceConsistentCasingInFileNames": true
|
|
12
|
+
},
|
|
13
|
+
"include": ["src/**/*"],
|
|
14
|
+
"exclude": ["node_modules"]
|
|
15
|
+
}
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
package/package.json
ADDED
|
@@ -0,0 +1,66 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "brewcli",
|
|
3
|
+
"version": "1.0.0",
|
|
4
|
+
"main": "index.js",
|
|
5
|
+
"bin": {
|
|
6
|
+
"create-brew-app": "./dist/cli.js"
|
|
7
|
+
},
|
|
8
|
+
"scripts": {
|
|
9
|
+
"build": "tsc && node -e \"import fs from 'fs-extra'; fs.copySync('src/templates', 'dist/templates')\"",
|
|
10
|
+
"postbuild": "chmod +x dist/cli.js",
|
|
11
|
+
"start": "tsx src/cli.tsx"
|
|
12
|
+
},
|
|
13
|
+
"keywords": [
|
|
14
|
+
"cli",
|
|
15
|
+
"scaffolder",
|
|
16
|
+
"project-generator",
|
|
17
|
+
"boilerplate",
|
|
18
|
+
"starter",
|
|
19
|
+
"express",
|
|
20
|
+
"fastify",
|
|
21
|
+
"nestjs",
|
|
22
|
+
"react",
|
|
23
|
+
"nextjs",
|
|
24
|
+
"vuejs",
|
|
25
|
+
"angular",
|
|
26
|
+
"react-native",
|
|
27
|
+
"expo",
|
|
28
|
+
"typescript",
|
|
29
|
+
"javascript",
|
|
30
|
+
"nodejs",
|
|
31
|
+
"fullstack",
|
|
32
|
+
"create-app"
|
|
33
|
+
],
|
|
34
|
+
"author": "Harsh Mer",
|
|
35
|
+
"contributors": [
|
|
36
|
+
{
|
|
37
|
+
"name": "Keval Tank",
|
|
38
|
+
"url": "https://github.com/Keval-Tank"
|
|
39
|
+
}
|
|
40
|
+
],
|
|
41
|
+
"license": "MIT",
|
|
42
|
+
"description": "An extensible CLI scaffolder for rapidly creating full-stack applications across modern JavaScript frameworks",
|
|
43
|
+
"engines": {
|
|
44
|
+
"node": ">=18.0.0"
|
|
45
|
+
},
|
|
46
|
+
"type": "module",
|
|
47
|
+
"dependencies": {
|
|
48
|
+
"commander": "^14.0.3",
|
|
49
|
+
"fs-extra": "^11.3.4",
|
|
50
|
+
"ink": "^7.0.0",
|
|
51
|
+
"ink-big-text": "^2.0.0",
|
|
52
|
+
"ink-gradient": "^4.0.0",
|
|
53
|
+
"ink-select-input": "^6.2.0",
|
|
54
|
+
"ink-spinner": "^5.0.0",
|
|
55
|
+
"ink-text-input": "^6.0.0",
|
|
56
|
+
"react": "^19.2.5"
|
|
57
|
+
},
|
|
58
|
+
"devDependencies": {
|
|
59
|
+
"@types/fs-extra": "^11.0.4",
|
|
60
|
+
"@types/node": "^25.5.2",
|
|
61
|
+
"@types/react": "^19.2.14",
|
|
62
|
+
"prettier": "^3.8.2",
|
|
63
|
+
"tsx": "^4.21.0",
|
|
64
|
+
"typescript": "^6.0.2"
|
|
65
|
+
}
|
|
66
|
+
}
|