dojo-cli-create-app
Advanced tools
Comparing version 2.0.0-alpha.4 to 2.0.0-alpha.5
@@ -14,13 +14,24 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) { | ||
else if (typeof define === 'function' && define.amd) { | ||
define(["require", "exports"], factory); | ||
define(["require", "exports", 'chalk'], factory); | ||
} | ||
})(function (require, exports) { | ||
"use strict"; | ||
const chalk_1 = require('chalk'); | ||
const cs = require('cross-spawn'); | ||
const ora = require('ora'); | ||
function default_1() { | ||
return __awaiter(this, void 0, void 0, function* () { | ||
return new Promise((resolve, reject) => { | ||
const spinner = ora({ | ||
spinner: 'dots', | ||
color: 'white', | ||
text: 'npm install' | ||
}).start(); | ||
cs.spawn('npm', ['install'], { stdio: 'ignore' }) | ||
.on('close', resolve) | ||
.on('close', () => { | ||
spinner.stopAndPersist(chalk_1.green.bold(' completed')); | ||
resolve(); | ||
}) | ||
.on('error', (err) => { | ||
spinner.stopAndPersist(chalk_1.red.bold(' failed')); | ||
reject(err); | ||
@@ -27,0 +38,0 @@ }); |
{ | ||
"name": "dojo-cli-create-app", | ||
"version": "2.0.0-alpha.4", | ||
"version": "2.0.0-alpha.5", | ||
"description": "Command to scaffold a new command", | ||
@@ -44,2 +44,3 @@ "homepage": "http://dojotoolkit.org", | ||
"fs-extra": "^0.30.0", | ||
"ora": "^0.3.0", | ||
"pkg-dir": "^1.0.0", | ||
@@ -46,0 +47,0 @@ "typings-core": "^1.4.1" |
@@ -14,6 +14,7 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) { | ||
else if (typeof define === 'function' && define.amd) { | ||
define(["require", "exports", './createDir', './renderFiles', './npmInstall', './changeDir', './config', 'chalk', 'fs-extra', './dirname'], factory); | ||
define(["require", "exports", 'path', './createDir', './renderFiles', './npmInstall', './changeDir', './config', 'chalk', 'fs-extra', './dirname'], factory); | ||
} | ||
})(function (require, exports) { | ||
"use strict"; | ||
const path = require('path'); | ||
const createDir_1 = require('./createDir'); | ||
@@ -44,5 +45,4 @@ const renderFiles_1 = require('./renderFiles'); | ||
yield npmInstall_1.default(); | ||
console.info(chalk.green.bold(' completed ') + 'npm install'); | ||
console.info(chalk.underline('\nRunning typings install')); | ||
yield typings.install({ cwd: '.' }); | ||
yield typings.install({ cwd: path.resolve('.') }); | ||
console.info(chalk.green.bold(' completed ') + 'typings install'); | ||
@@ -49,0 +49,0 @@ console.info(chalk.green.bold('\nAll done!\n')); |
@@ -16,2 +16,3 @@ { | ||
"dojo-widgets": "^2.0.0-alpha.11", | ||
"dojo-interfaces": "^2.0.0-alpha.6", | ||
"immutable": "^3.8.1", | ||
@@ -18,0 +19,0 @@ "maquette": "^2.3.5" |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
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
23298
361
7
+ Addedora@^0.3.0
+ Addedcli-cursor@1.0.2(transitive)
+ Addedcli-spinners@0.2.0(transitive)
+ Addedexit-hook@1.1.1(transitive)
+ Addedlog-symbols@1.0.2(transitive)
+ Addedonetime@1.1.0(transitive)
+ Addedora@0.3.0(transitive)
+ Addedrestore-cursor@1.0.1(transitive)