Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@dojo/cli

Package Overview
Dependencies
Maintainers
1
Versions
40
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@dojo/cli - npm Package Compare versions

Comparing version 2.0.0 to 3.0.0-alpha.1

4

bin/dojo.js
#! /usr/bin/env node
'use strict';
require('../index');
Object.defineProperty(exports, "__esModule", { value: true });
const index_1 = require("../index");
index_1.init();
//# sourceMappingURL=dojo.js.map

@@ -17,3 +17,11 @@ "use strict";

const configExists = !!dojoRcPath && fs_1.existsSync(dojoRcPath);
return configExists ? JSON.parse(fs_1.readFileSync(dojoRcPath, 'utf8')) : {};
if (configExists) {
try {
return JSON.parse(fs_1.readFileSync(dojoRcPath, 'utf8'));
}
catch (error) {
throw new Error(`Invalid .dojorc: ${error}`);
}
}
return {};
}

@@ -20,0 +28,0 @@ class SingleCommandConfigurationHelper {

@@ -44,6 +44,6 @@ "use strict";

function formatHeader(group = '<group>', command = '[<command>]') {
return `${dojoArt}
return `${chalk_1.default.blueBright(dojoArt)}
${chalk_1.default.bold('Usage:')}
$ ${chalk_1.default.green('dojo')} ${chalk_1.default.green(group)} ${chalk_1.default.dim.green(command)} [<options>] [--help]`;
$ ${chalk_1.default.greenBright('dojo')} ${chalk_1.default.greenBright(group)} ${chalk_1.default.green(command)} [<options>] [--help]`;
}

@@ -72,3 +72,3 @@ function capitalize(value) {

groupMap.forEach((commandMap, group) => {
let groupOutput = ` ${chalk_1.default.green(group)} ${createPadding(group, 8)}`;
let groupOutput = ` ${chalk_1.default.greenBright(group)} ${createPadding(group, 8)}`;
if (hasGroup) {

@@ -84,3 +84,3 @@ groupOutput = `\n${groupOutput}`;

}
groupOutput = `${groupOutput} ${chalk_1.default.dim.green(name)}`;
groupOutput = `${groupOutput} ${chalk_1.default.green(name)}`;
groupOutput = `${groupOutput}${createPadding(name, 10)}`;

@@ -116,3 +116,3 @@ groupOutput = `${groupOutput} ${capitalize(description)}`;

register((key, options) => {
let optionKeys = `${addOptionPrefix(chalk_1.default.green(key))}`;
let optionKeys = `${addOptionPrefix(chalk_1.default.greenBright(key))}`;
if (options.alias) {

@@ -122,5 +122,5 @@ const aliases = Array.isArray(options.alias) ? options.alias : [options.alias];

if (alias.length === 1) {
return `${addOptionPrefix(chalk_1.default.green(alias))}, ${result}`;
return `${addOptionPrefix(chalk_1.default.greenBright(alias))}, ${result}`;
}
return `${result}, ${addOptionPrefix(chalk_1.default.green(alias))}`;
return `${result}, ${addOptionPrefix(chalk_1.default.greenBright(alias))}`;
}, optionKeys);

@@ -127,0 +127,0 @@ }

@@ -28,4 +28,3 @@ "use strict";

}
process.env.DOJO_CLI = 'true';
init();
exports.init = init;
//# sourceMappingURL=index.js.map

@@ -24,3 +24,3 @@ "use strict";

}, []);
return globby(globPaths, { ignore: '**/*.map' });
return globby(globPaths, { ignore: '**/*.{map,d.ts}' });
});

@@ -37,3 +37,3 @@ }

const builtInCommandParentDirGlob = path_1.join(config.builtInCommandLocation, '/*.js');
return globby(builtInCommandParentDirGlob, { ignore: '**/*.map' });
return globby(builtInCommandParentDirGlob, { ignore: '**/*.{map,d.ts}' });
});

@@ -40,0 +40,0 @@ }

@@ -14,4 +14,3 @@ "use strict";

return new Promise((resolve, reject) => {
cs
.spawn('npm', ['--silent', 'install', ...args], { stdio: 'inherit' })
cs.spawn('npm', ['--silent', 'install', ...args], { stdio: 'inherit' })
.on('close', () => {

@@ -18,0 +17,0 @@ resolve();

{
"name": "@dojo/cli",
"version": "2.0.0",
"description": "Dojo 2 CLI utility",
"homepage": "https://dojo.io",
"bugs": {
"url": "https://github.com/dojo/cli/issues"
},
"engines": {
"node": ">=6",
"npm": ">=3"
},
"license": "BSD-3-Clause",
"keywords": [
"dojo",
"cli"
],
"repository": {
"type": "git",
"url": "https://github.com/dojo/cli.git"
},
"bin": {
"dojo": "bin/dojo.js"
},
"dependencies": {
"chalk": "^2.3.0",
"cliui": "^4.0.0",
"configstore": "^3.1.1",
"cross-spawn": "^5.1.0",
"detect-indent": "^5.0.0",
"ejs": "^2.5.7",
"execa": "^0.8.0",
"fs-extra": "^5.0.0",
"globby": "^6.0.0",
"inquirer": "^4.0.2",
"pkg-dir": "^2.0.0",
"slice-ansi": "^1.0.0",
"string-width": "^2.1.1",
"tslib": "~1.8.1",
"typings-core": "^2.3.3",
"update-notifier": "^2.3.0",
"yargs": "^10.0.3"
},
"devDependencies": {
"@types/configstore": "^2.1.1",
"@types/detect-indent": "^5.0.0",
"@types/ejs": "^2.3.33",
"@types/execa": "^0.8.1",
"@types/fs-extra": "^5.0.0",
"@types/glob": "^5.0.30",
"@types/globby": "^0.6.0",
"@types/grunt": "~0.4.0",
"@types/inquirer": "0.0.36",
"@types/mockery": "^1.4.29",
"@types/node": "~9.6.5",
"@types/sinon": "^4.1.2",
"@types/update-notifier": "^1.0.1",
"@types/yargs": "^10.0.0",
"codecov.io": "0.1.6",
"glob": "^7.0.3",
"grunt": "~1.0.1",
"grunt-dojo2": "latest",
"grunt-tslint": "5.0.1",
"husky": "0.14.3",
"intern": "~4.1.0",
"lint-staged": "6.0.0",
"mockery": "^2.1.0",
"prettier": "1.9.2",
"sinon": "^4.1.3",
"tslint": "5.2.0",
"typescript": "~2.6.1"
},
"lint-staged": {
"*.{ts,tsx}": [
"prettier --write",
"git add"
]
},
"prettier": {
"singleQuote": true,
"tabWidth": 4,
"useTabs": true,
"parser": "typescript",
"printWidth": 120,
"arrowParens": "always"
}
"name": "@dojo/cli",
"version": "3.0.0-alpha.1",
"description": "Dojo 2 CLI utility",
"homepage": "https://dojo.io",
"bugs": {
"url": "https://github.com/dojo/cli/issues"
},
"engines": {
"node": ">=6",
"npm": ">=3"
},
"license": "BSD-3-Clause",
"keywords": [
"dojo",
"cli"
],
"repository": {
"type": "git",
"url": "https://github.com/dojo/cli.git"
},
"bin": {
"dojo": "bin/dojo.js"
},
"dependencies": {
"chalk": "^2.3.0",
"configstore": "^3.1.1",
"cross-spawn": "^5.1.0",
"detect-indent": "^5.0.0",
"ejs": "^2.5.7",
"execa": "^0.8.0",
"fs-extra": "^5.0.0",
"globby": "^6.0.0",
"inquirer": "^4.0.2",
"pkg-dir": "^2.0.0",
"slice-ansi": "^1.0.0",
"string-width": "^2.1.1",
"tslib": "~1.8.1",
"update-notifier": "^2.3.0",
"yargs": "^10.0.3"
},
"devDependencies": {
"@dojo/scripts": "^3.0.0-alpha.6",
"@types/configstore": "^2.1.1",
"@types/detect-indent": "^5.0.0",
"@types/ejs": "^2.3.33",
"@types/execa": "^0.8.1",
"@types/fs-extra": "^5.0.0",
"@types/glob": "^5.0.30",
"@types/globby": "^0.6.0",
"@types/inquirer": "0.0.36",
"@types/mockery": "^1.4.29",
"@types/node": "~9.6.5",
"@types/sinon": "~4.3.3",
"@types/update-notifier": "^1.0.1",
"@types/yargs": "^10.0.0",
"codecov": "~3.0.4",
"concurrently": "~3.6.0",
"cpx": "~1.5.0",
"glob": "^7.0.3",
"husky": "0.14.3",
"lint-staged": "6.0.0",
"mockery": "^2.1.0",
"rimraf": "~2.6.2",
"sinon": "~4.5.0"
},
"lint-staged": {
"*.{ts,tsx}": [
"prettier --write",
"git add"
]
},
"prettier": {
"singleQuote": true,
"tabWidth": 4,
"useTabs": true,
"parser": "typescript",
"printWidth": 120,
"arrowParens": "always"
}
}

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

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

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc