@progress/kendo-schematics
Advanced tools
Comparing version 1.0.0 to 1.0.1-dev.201906261331
@@ -6,3 +6,3 @@ { | ||
"license": "SEE LICENSE in LICENSE.md", | ||
"version": "1.0.0", | ||
"version": "1.0.1-dev.201906261331", | ||
"scripts": { | ||
@@ -9,0 +9,0 @@ "build-package": "npm run build", |
@@ -0,3 +1,3 @@ | ||
import { Rule } from '@angular-devkit/schematics'; | ||
import { Schema as RegisterSchema } from './schema'; | ||
import { Rule } from '@angular-devkit/schematics'; | ||
export declare function importTheme(options: RegisterSchema): Rule; |
@@ -19,15 +19,15 @@ "use strict"; | ||
}; | ||
const supportedTargets = new Set(['build', 'test']); | ||
return schematics_1.chain([ | ||
rules_1.addToPackageJson({ dependencies }), | ||
(host, context) => { | ||
(host) => { | ||
const workspace = utils_1.getWorkspace(host); | ||
const project = utils_1.getProjectFromWorkspace(workspace, options.project); | ||
const targets = project.architect || project.targets; | ||
if (targets) { | ||
addStyleToTarget(targets['build'], host, themePath(name), workspace); | ||
addStyleToTarget(targets['test'], host, themePath(name), workspace); | ||
if (!targets) { | ||
throw new schematics_1.SchematicsException(`${project.name} does not have defined targets.`); | ||
} | ||
else { | ||
throw new schematics_1.SchematicsException(`${project.name} does not have an targets/architect configuration`); | ||
} | ||
Object.keys(targets).filter(key => supportedTargets.has(key)).forEach(key => { | ||
addStyleToTarget(targets[key], host, themePath(name), workspace); | ||
}); | ||
return host; | ||
@@ -34,0 +34,0 @@ } |
@@ -143,2 +143,5 @@ "use strict"; | ||
function createCliConfig(tree, options = {}) { | ||
if (options.skipTests) { | ||
delete config.projects.cli6.architect.test; | ||
} | ||
let content = __1.stringify(config); | ||
@@ -145,0 +148,0 @@ if (options.useTargets) { |
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
No v1
QualityPackage is not semver >=1. This means it is not stable and does not support ^ ranges.
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
55995
1447
2