@smartsoft001/cli
Advanced tools
Comparing version 1.1.60 to 1.1.61
{ | ||
"name": "@smartsoft001/cli", | ||
"version": "1.1.60", | ||
"version": "1.1.61", | ||
"bin": { | ||
@@ -8,5 +8,5 @@ "smart": "bin/smart.js" | ||
"dependencies": { | ||
"fs-extra": "9.1.0", | ||
"tslib": "2.4.1", | ||
"yargs": "17.6.2" | ||
"fs-extra": "^9.0.1", | ||
"tslib": "^2.0.3", | ||
"yargs": "^16.1.0" | ||
}, | ||
@@ -13,0 +13,0 @@ "main": "src/index.js", |
@@ -9,33 +9,33 @@ "use strict"; | ||
function runInstallDeps(target) { | ||
(0, utils_1.log)('Install dependencies'); | ||
(0, utils_1.log)("Install dependencies"); | ||
const deps = [ | ||
'@smartsoft001/core', | ||
"@smartsoft001/core", | ||
"passport", | ||
'@angular/material', | ||
'@angular/cdk', | ||
'@ionic-native/core', | ||
"@nestjs/cqrs" | ||
"@angular/material", | ||
"@angular/cdk", | ||
"@ionic-native/core", | ||
"@nestjs/cqrs", | ||
]; | ||
const installDevDeps = `npm i ${deps.join(' ')} --save --force`; | ||
const installDevDeps = `npm i ${deps.join(" ")} --save --force`; | ||
(0, utils_1.runCommand)(installDevDeps, target); | ||
} | ||
function runInstallDevDeps(target) { | ||
(0, utils_1.log)('Install dev dependencies'); | ||
(0, utils_1.log)("Install dev dependencies"); | ||
const devDeps = [ | ||
//'@smartsoft001/schematics', | ||
'@ionic/angular-toolkit', | ||
'@ngneat/spectator', | ||
'@ngrx/schematics', | ||
'@ngrx/store-devtools', | ||
'ng-mocks', | ||
'jest-junit', | ||
'jest-preset-angular', | ||
'mock-local-storage', | ||
'schematics-utilities' | ||
"@ionic/angular-toolkit", | ||
"@ngneat/spectator", | ||
"@ngrx/schematics", | ||
"@ngrx/store-devtools", | ||
"ng-mocks", | ||
"jest-junit", | ||
"jest-preset-angular", | ||
"mock-local-storage", | ||
"schematics-utilities", | ||
]; | ||
const installDevDeps = `npm i ${devDeps.join(' ')} -D --force`; | ||
const installDevDeps = `npm i ${devDeps.join(" ")} -D --force`; | ||
(0, utils_1.runCommand)(installDevDeps, target); | ||
} | ||
function runSetNgConfig(target) { | ||
(0, utils_1.log)('Set NG config'); | ||
(0, utils_1.log)("Set NG config"); | ||
//runCommand("ng analytics project off", target); | ||
@@ -46,13 +46,13 @@ (0, utils_1.runCommand)("ng config cli.defaultCollection @smartsoft001/schematics", target); | ||
function runNgAdd(target) { | ||
(0, utils_1.log)('NG add'); | ||
(0, utils_1.log)("NG add"); | ||
const plugins = [ | ||
'@nrwl/angular', | ||
'@nrwl/node', | ||
'@nrwl/nest', | ||
'@nrwl/cypress', | ||
'@nrwl/storybook', | ||
'@nrwl/jest', | ||
"@nx/angular", | ||
"@nx/node", | ||
"@nx/nest", | ||
"@nx/cypress", | ||
"@nx/storybook", | ||
"@nx/jest", | ||
]; | ||
(0, utils_1.runCommand)(`npm i ${plugins.join(' ')} --save`, target); | ||
plugins.forEach(plugin => { | ||
(0, utils_1.runCommand)(`npm i ${plugins.join(" ")} --save`, target); | ||
plugins.forEach((plugin) => { | ||
(0, utils_1.runCommand)(`npx nx g ${plugin}:ng-add`, target); | ||
@@ -62,10 +62,10 @@ }); | ||
function createNxWorkspace(name) { | ||
(0, utils_1.log)('Creating Nx Workspace'); | ||
(0, utils_1.log)("Creating Nx Workspace"); | ||
const params = [ | ||
'--nx-cloud=true', | ||
'--preset=empty', | ||
'--cli=angular', | ||
'--package-manager=npm', | ||
"--nx-cloud=true", | ||
"--preset=empty", | ||
"--cli=angular", | ||
"--package-manager=npm", | ||
]; | ||
const createCommand = `npx create-nx-workspace@latest ${name} ${params.join(' ')}`; | ||
const createCommand = `npx create-nx-workspace@latest ${name} ${params.join(" ")}`; | ||
(0, utils_1.runCommand)(createCommand); | ||
@@ -72,0 +72,0 @@ } |
Sorry, the diff of this file is not supported yet
13705
+ Addedcliui@7.0.4(transitive)
+ Addedtslib@2.6.2(transitive)
+ Addedyargs@16.2.0(transitive)
+ Addedyargs-parser@20.2.9(transitive)
- Removedcliui@8.0.1(transitive)
- Removedtslib@2.4.1(transitive)
- Removedyargs@17.6.2(transitive)
- Removedyargs-parser@21.1.1(transitive)
Updatedfs-extra@^9.0.1
Updatedtslib@^2.0.3
Updatedyargs@^16.1.0