Skip to content

Commit 86e1f16

Browse files
committed
Remove .git file when cloning repository and update package.json description and author
1 parent 57c447c commit 86e1f16

File tree

2 files changed

+9
-4
lines changed

2 files changed

+9
-4
lines changed

bin/cli.js

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@ const runCommand = command => {
1414
const repoName = process.argv[2];
1515
const gitCheckoutCommand = `git clone --depth 1 https://github.com/gulalicelik/nodejs-express-sequelize-mysql-api-boilerplate.git ${repoName}`;
1616
const installDepsCommand = `cd ${repoName} && npm install`;
17+
const rmGitRepoCommand = `cd ${repoName} && npm install`;
1718

1819
console.log(`Cloning the repository with name ${repoName}`);
1920
const checkedOut = runCommand(gitCheckoutCommand);
@@ -23,7 +24,11 @@ console.log(`Installing dependencies for ${repoName}`);
2324
const installedDeps = runCommand(installDepsCommand);
2425
if (!installedDeps) process.exit(-1);
2526

27+
console.log(`Remove .git file ${repoName}`);
28+
const rmGitRepo = runCommand(rmGitRepoCommand);
29+
if (!rmGitRepo) process.exit(-1);
30+
2631
console.log(
2732
'Congratulations! You are ready. Follow the following commands to start'
2833
);
29-
console.log(`cd ${repoName} && npm start`);
34+
console.log(`cd ${repoName} && npm start:dev`);

package.json

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"name": "@gulali/nodejs-express-sequelize-mysql-api-boilerplate",
33
"version": "1.0.2",
4-
"description": "",
4+
"description": "Nodejs Express Sequelize Mysql API Boilerplate with JWT, Swagger, Winston, PM2",
55
"main": "index.js",
66
"publishConfig": {
77
"access": "public"
@@ -20,8 +20,8 @@
2020
"type": "git",
2121
"url": "git+https://github.com/gulalicelik/nodejs-express-sequelize-mysql-api-boilerplate.git"
2222
},
23-
"keywords": [],
24-
"author": "",
23+
"keywords": ["api", "boilerplate", "nodejs", "express", "sequelize", "mysql", "jwt", "swagger", "winston", "pm2","api-boilerplate","nodejs-api", "nodejs-sequelize-api"],
24+
"author": "Gülali Çelik",
2525
"license": "ISC",
2626
"bugs": {
2727
"url": "https://github.com/gulalicelik/nodejs-express-sequelize-mysql-api-boilerplate/issues"

0 commit comments

Comments
 (0)