@herodevs/coulson
Advanced tools
Comparing version 0.0.4 to 0.0.5
{ | ||
"name": "@herodevs/coulson", | ||
"version": "0.0.4", | ||
"version": "0.0.5", | ||
"description": "Add coulson to your angular app", | ||
@@ -5,0 +5,0 @@ "scripts": { |
@@ -5,2 +5,3 @@ "use strict"; | ||
const core_1 = require("@angular-devkit/core"); | ||
const tasks_1 = require("@angular-devkit/schematics/tasks"); | ||
// for now we dont have any option for use | ||
@@ -14,3 +15,3 @@ // @ts-ignore | ||
if (!workspaceConfigBuffer) { | ||
throw new schematics_1.SchematicsException("Not an angular CLI workspasce"); | ||
throw new schematics_1.SchematicsException('Not an angular CLI workspace'); | ||
} | ||
@@ -29,4 +30,3 @@ // end project workspace data | ||
try { | ||
tree.create('./coulson.json', ` | ||
{ | ||
tree.create('./coulson.json', `{ | ||
// This is a sample Coulson config file | ||
@@ -59,7 +59,7 @@ // The projectroot is mandatory | ||
} | ||
} | ||
} | ||
`); | ||
} | ||
catch (e) { | ||
console.log('The project have coulson.json'); | ||
context.logger.log('info', `The project have coulson.json...`); | ||
} | ||
@@ -109,2 +109,4 @@ try { | ||
]); | ||
context.addTask(new tasks_1.NodePackageInstallTask('./node_modules/@herodevs/coulson/src/files/')); | ||
context.logger.log('info', `🔍 Installing packages...`); | ||
return schematics_1.mergeWith(sourceParametrizedTemplates); | ||
@@ -111,0 +113,0 @@ }; |
"use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
const tasks_1 = require("@angular-devkit/schematics/tasks"); | ||
const package_config_1 = require("./package-config"); | ||
@@ -10,8 +9,4 @@ const version_names_1 = require("./version-names"); | ||
const angularDependencyVersion = ngCoreVersionTag || version_names_1.requiredAngularVersionRange; | ||
console.log(angularDependencyVersion); | ||
console.log(angularDependencyVersion, context, options); | ||
package_config_1.addPackageToPackageJson(host, '@herodevs/coulson', `~${version_names_1.coulsonVersion}`); | ||
const installTaskId = context.addTask(new tasks_1.NodePackageInstallTask()); | ||
context.addTask(new tasks_1.NodePackageInstallTask('../files/')); | ||
context.logger.log('info', `🔍 Installing packages...`); | ||
context.addTask(new tasks_1.RunSchematicTask('ng-add-setup-project', options), [installTaskId]); | ||
}; | ||
@@ -18,0 +13,0 @@ } |
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
55363
803