Comparing version 1.1.0 to 1.1.1
@@ -31,5 +31,5 @@ #!/usr/bin/env node | ||
program | ||
.version('1.1.0') | ||
.version('1.1.1') | ||
.action(() => { | ||
console.log("\n \n š„ Welcome to the Kasfy CLI š„ Version : 1.1.0 š„\n"); | ||
console.log("\n \n š„ Welcome to the Kasfy CLI š„ Version : 1.1.1 š„\n"); | ||
console.log("\n š° Kasfy Documentation ā”ļø https://kasfy.js.org š\n \n"); | ||
@@ -62,3 +62,3 @@ }); | ||
name: 'indata', | ||
message: 'Are you Need to install dependencies?' | ||
message: 'Are you Need to install dependencies? (y or n)' | ||
}]).then(function(answer) { | ||
@@ -71,4 +71,5 @@ | ||
console.log("\n\nā Get Start Your project \n \t run: kasfy serve "); | ||
console.log("\n\nā Get Start Your project \n \t run: cd "+projectname+"\n \t run: kasfy serve "); | ||
} else { | ||
console.log("š Oops..."); | ||
console.log("\n\nā Mannually install dependencies after run your project. \n run : npm install"); | ||
@@ -82,3 +83,3 @@ } | ||
shell.cd(path); | ||
console.log("š„ kasfy cli creating new project"); | ||
console.log("kasfy cli creating new project"); | ||
shell.exec('git clone https://github.com/kasfy/kasfy.git kasfy-latest-release'); | ||
@@ -104,4 +105,5 @@ | ||
console.log("\n\nGet Start Your project \n \t run: kasfy serve "); | ||
console.log("\n\nGet Start Your project \n \t run: cd "+projectname+"\n \t run: kasfy serve "); | ||
} else { | ||
console.log("Oops..."); | ||
console.log("\n\nMannually install dependencies after run your project. \n run : npm install"); | ||
@@ -127,3 +129,3 @@ } | ||
name: 'indata', | ||
message: 'Are you Need to install dependencies?' | ||
message: 'Are you Need to install dependencies? (y or n)' | ||
}]).then(function(answer) { | ||
@@ -136,4 +138,5 @@ | ||
console.log("\n\nā Get Start Your project \n \t run: kasfy serve "); | ||
console.log("\n\nā Get Start Your project \n \t run: cd "+projectname+"\n \t run: kasfy serve "); | ||
} else { | ||
console.log("š Oops..."); | ||
console.log("\n\nā Mannually install dependencies after run your project. \n run : npm install"); | ||
@@ -140,0 +143,0 @@ } |
@@ -40,1 +40,49 @@ /* The NodeJS Framework for Smart Back-End | ||
program | ||
.command('migrate') | ||
.alias('mig') | ||
.description('Migration command') | ||
.action(() => { | ||
if (!fs.existsSync('./node_modules')) { | ||
console.log("\n ā Not Found `node_modules` directory. \n"); | ||
console.log("\n āļø run command: npm install \n"); | ||
process.exit(1); | ||
} | ||
if (!fs.existsSync('./app') && !fs.existsSync('./config') && !fs.existsSync('./public') && !fs.existsSync('./routes')){ | ||
console.log("\n ā Not Found kasfy folder stucture. \n"); | ||
console.log("\n āļø Reinstall kasfy new project \n"); | ||
process.exit(1); | ||
} | ||
const npm = require("npm"); | ||
npm.load(); | ||
npm.load(() => npm.run("migrate")); | ||
}); | ||
program | ||
.command('migrate:fresh') | ||
.alias('mig:fresh') | ||
.description('Fresh Migration command') | ||
.action(() => { | ||
if (!fs.existsSync('./node_modules')) { | ||
console.log("\n ā Not Found `node_modules` directory. \n"); | ||
console.log("\n āļø run command: npm install \n"); | ||
process.exit(1); | ||
} | ||
if (!fs.existsSync('./app') && !fs.existsSync('./config') && !fs.existsSync('./public') && !fs.existsSync('./routes')){ | ||
console.log("\n ā Not Found kasfy folder stucture. \n"); | ||
console.log("\n āļø Reinstall kasfy new project \n"); | ||
process.exit(1); | ||
} | ||
const npm = require("npm"); | ||
npm.load(); | ||
npm.load(() => npm.run("migrate:fresh")); | ||
}); | ||
{ | ||
"name": "kasfy", | ||
"version": "1.1.0", | ||
"version": "1.1.1", | ||
"description": "node js framework for smart back-end", | ||
@@ -12,3 +12,3 @@ "main": "cli.js", | ||
}, | ||
"author": "katheesh [https://github.com/katheesh]", | ||
"author": "katheeskumar [https://github.com/katheesh]", | ||
"license": "MIT", | ||
@@ -15,0 +15,0 @@ "dependencies": { |
Major refactor
Supply chain riskPackage has recently undergone a major refactor. It may be unstable or indicate significant internal changes. Use caution when updating to versions that include significant changes.
Found 1 instance in 1 package
13060
222
0