Comparing version 1.0.12 to 1.0.13
@@ -33,8 +33,8 @@ var fs = require('fs'); | ||
global.create = function (options) { | ||
console.log('Creating ' + options.app + ' application'); | ||
console.log(chalk.yellow('Creating ' + options.app + ' application...')); | ||
download(options.baseUrl + options.app, "./", {}, function (err) { | ||
if (err) { | ||
console.log('Unable to download.' + err); | ||
console.log(chalk.red('Unable to download.' + err)); | ||
} else { | ||
console.log(options.app + ' application created successfully'); | ||
console.log(chalk.green(options.app + ' application created successfully.')); | ||
} | ||
@@ -60,4 +60,3 @@ }); | ||
availableSeed: ['ngEmpty', 'ngButton', 'ngTab'] | ||
} | ||
console.log(JSON.stringify(this.options)); | ||
} | ||
if (process.argv.length > 2) { | ||
@@ -70,3 +69,3 @@ command = (process.argv[2]).toString().trim(); | ||
else if(!(appName.indexOf("--")) > -1) { | ||
console.log("The template application '" + appName + "' is not availabe"); | ||
console.log(chalk.red("The template application '" + appName + "' is not availabe")); | ||
process.exit(); | ||
@@ -73,0 +72,0 @@ } |
@@ -5,2 +5,3 @@ var http = require("http"), | ||
fs = require("fs"), | ||
chalk = require("chalk"), | ||
open = require("./open"); | ||
@@ -54,3 +55,3 @@ | ||
var server = http.createServer(onRequest).on('listening', function () { | ||
console.log('Static file server running on port ' + port + ' (i.e. http://localhost:' + port + ')\nCTRL + C to shut down'); | ||
console.log(chalk.green('Static file server running on port ' + port + ' (i.e. http://localhost:' + port + ')\nCTRL + C to shut down')); | ||
open('http://localhost:' + port); | ||
@@ -62,5 +63,5 @@ }).on('error', function (e) { | ||
} else { | ||
console.log('An error occured starting static file server: ' + e); | ||
console.log(chalk.red('An error occured starting static file server: ' + e)); | ||
} | ||
}).listen(port); | ||
} |
{ | ||
"name": "ej-cli", | ||
"version": "1.0.12", | ||
"version": "1.0.13", | ||
"description": "", | ||
@@ -5,0 +5,0 @@ "main": "lib/cli.js", |
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
9910