initkit 1.2.3 → 1.2.4
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/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "initkit",
|
|
3
|
-
"version": "1.2.
|
|
3
|
+
"version": "1.2.4",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"description": "A modern CLI tool for scaffolding production-ready web projects with live npm version fetching, multiple frameworks, and best practices built-in",
|
|
6
6
|
"main": "src/index.js",
|
|
@@ -47,7 +47,7 @@
|
|
|
47
47
|
"bugs": {
|
|
48
48
|
"url": "https://github.com/shirishshrestha/initkit/issues"
|
|
49
49
|
},
|
|
50
|
-
"homepage": "https://
|
|
50
|
+
"homepage": "https://initkit.shirishshrestha.com.np/",
|
|
51
51
|
"engines": {
|
|
52
52
|
"node": ">=14.0.0"
|
|
53
53
|
},
|
|
@@ -91,7 +91,7 @@ async function createFeatureBasedStructure(srcPath, config) {
|
|
|
91
91
|
|
|
92
92
|
// Add barrel export
|
|
93
93
|
const ext = config.language === 'typescript' ? 'ts' : 'js';
|
|
94
|
-
await fs.
|
|
94
|
+
await fs.outputFile(
|
|
95
95
|
path.join(srcPath, 'features', feature, `index.${ext}`),
|
|
96
96
|
`// ${feature} feature exports\n// TODO: Export your components and hooks here\n`
|
|
97
97
|
);
|
|
@@ -259,7 +259,7 @@ DATABASE_URL=
|
|
|
259
259
|
API_KEY=
|
|
260
260
|
`;
|
|
261
261
|
|
|
262
|
-
await fs.
|
|
262
|
+
await fs.outputFile(path.join(projectPath, '.env.example'), envExample);
|
|
263
263
|
console.log(chalk.gray(' ✓ Added .env.example'));
|
|
264
264
|
}
|
|
265
265
|
|
|
@@ -311,7 +311,7 @@ EXPOSE 3000
|
|
|
311
311
|
CMD ["npm", "start"]
|
|
312
312
|
`;
|
|
313
313
|
|
|
314
|
-
await fs.
|
|
314
|
+
await fs.outputFile(path.join(projectPath, 'Dockerfile'), dockerfile);
|
|
315
315
|
|
|
316
316
|
const dockerignore = `node_modules
|
|
317
317
|
.git
|
|
@@ -319,7 +319,7 @@ CMD ["npm", "start"]
|
|
|
319
319
|
npm-debug.log
|
|
320
320
|
`;
|
|
321
321
|
|
|
322
|
-
await fs.
|
|
322
|
+
await fs.outputFile(path.join(projectPath, '.dockerignore'), dockerignore);
|
|
323
323
|
}
|
|
324
324
|
|
|
325
325
|
/**
|
|
@@ -361,7 +361,7 @@ jobs:
|
|
|
361
361
|
run: npm test
|
|
362
362
|
`;
|
|
363
363
|
|
|
364
|
-
await fs.
|
|
364
|
+
await fs.outputFile(path.join(projectPath, '.github', 'workflows', 'ci.yml'), workflow);
|
|
365
365
|
}
|
|
366
366
|
|
|
367
367
|
/**
|
|
@@ -379,7 +379,7 @@ async function generateHuskyFiles(projectPath, _config) {
|
|
|
379
379
|
npm run lint
|
|
380
380
|
`;
|
|
381
381
|
|
|
382
|
-
await fs.
|
|
382
|
+
await fs.outputFile(path.join(projectPath, '.husky', 'pre-commit'), preCommit);
|
|
383
383
|
}
|
|
384
384
|
|
|
385
385
|
export { generateTemplate };
|