@progress/kendo-schematics
Advanced tools
Comparing version 2.0.0 to 3.0.0-dev.202204011240
@@ -6,3 +6,3 @@ { | ||
"license": "SEE LICENSE in LICENSE.md", | ||
"version": "2.0.0", | ||
"version": "3.0.0-dev.202204011240", | ||
"scripts": { | ||
@@ -13,3 +13,4 @@ "build-package": "npm run build", | ||
"build": "tsc -p tsconfig.json", | ||
"test:ci": "npm run build && jasmine --config=jasmine.json", | ||
"test": "npx jest", | ||
"test:ci": "npm run test", | ||
"semantic-release": "semantic-release pre && semantic-prerelease publish && semantic-release post" | ||
@@ -26,3 +27,5 @@ }, | ||
"Angular DevKit", | ||
"Angular Cli" | ||
"Angular CLI", | ||
"angularjs", | ||
"angular-schematics" | ||
], | ||
@@ -35,14 +38,14 @@ "repository": { | ||
"devDependencies": { | ||
"@angular-devkit/core": "^0.8.9", | ||
"@angular-devkit/schematics": "^0.8.9", | ||
"@progress/kendo-common-tasks": "^7.0.0", | ||
"@telerik/semantic-prerelease": "^1.0.0", | ||
"@types/jasmine": "^2.6.0", | ||
"@types/node": "ts2.5", | ||
"@angular-devkit/core": "^12.2.10", | ||
"@angular-devkit/schematics": "^12.2.10", | ||
"@progress/kendo-common-tasks": "^7.9.4", | ||
"@telerik/semantic-prerelease": "^2.0.0", | ||
"@types/jest": "^27.4.1", | ||
"@types/node": "ts4.3", | ||
"cz-conventional-changelog": "^1.1.5", | ||
"ghooks": "^1.0.3", | ||
"jasmine": "^3.1.0", | ||
"jest": "^27.5.1", | ||
"rxjs": "^6.0.0", | ||
"semantic-release": "^6.3.6", | ||
"typescript": "^2.5.2", | ||
"ts-jest": "^27.1.4", | ||
"typescript": "~4.3.4", | ||
"validate-commit-msg": "^1.1.1" | ||
@@ -76,2 +79,3 @@ }, | ||
}, | ||
"homepage": "https://www.telerik.com/kendo-angular-ui/", | ||
"release": { | ||
@@ -78,0 +82,0 @@ "debug": false, |
@@ -7,23 +7,23 @@ <a href="https://www.telerik.com/kendo-angular-ui/" target="_blank"> | ||
This package is part of the [Kendo UI for Angular](https://www.telerik.com/kendo-angular-ui/) suite. | ||
This package is part of the [Kendo UI for Angular](https://www.telerik.com/kendo-angular-ui?utm_medium=referral&utm_source=npm&utm_campaign=kendo-ui-angular-trial-npm-schematics) suite. Kendo UI for Angular is a commercial UI library designed and built for developing business applications with Angular. Every UI component in the Kendo UI for Angular suite has been built from the ground-up specifically for Angular. | ||
Kendo UI for Angular is a commercial UI library designed and built for developing business applications with Angular. Every UI component in the Kendo UI for Angular suite has been built from the ground-up specifically for Angular. | ||
This package helps ensure that all the 100+ components in the library work as they should. It handles background tasks such as ensuring that "ng add" works and adding themes to your project. | ||
## Free Trial and Commercial License | ||
Kendo UI for Angular is a commercial UI library. You are welcome to explore its full functionality and get technical support from the team when you [register for a free 30-day trial](https://www.telerik.com/download-login-v2-kendo-angular-ui). To use it commercially, you need to [purchase a license](https://www.telerik.com/purchase/kendo-ui). Feel free to review the [Kendo UI for Angular License Agreement](https://www.telerik.com/purchase/license-agreement/kendo-ui) to get acquainted with the full terms of use. | ||
Kendo UI for Angular is a commercial UI library. You are welcome to explore its full functionality and get technical support from the team when you [register for a free 30-day trial](https://www.telerik.com/download-login-v2-kendo-angular-ui?utm_medium=referral&utm_source=npm&utm_campaign=kendo-ui-angular-trial-npm-schematics). To use it commercially, you need to [purchase a license](https://www.telerik.com/purchase/kendo-ui?utm_medium=referral&utm_source=npm&utm_campaign=kendo-ui-angular-trial-npm-schematics). Feel free to review the [Kendo UI for Angular License Agreement](https://www.telerik.com/purchase/license-agreement/kendo-ui?utm_medium=referral&utm_source=npm&utm_campaign=kendo-ui-angular-trial-npm-schematics) to get acquainted with the full terms of use. | ||
## Resources | ||
* [Get Started with Kendo UI for Angular (requires trial registration)](https://www.telerik.com/kendo-angular-ui/getting-started) | ||
* [Demos, documentation, and component reference](https://www.telerik.com/kendo-angular-ui/components) | ||
* [Blogs](http://www.telerik.com/blogs/kendo-ui) | ||
* [Kendo UI for Angular pricing and licensing](https://www.telerik.com/purchase/kendo-ui) | ||
* [Get Started with Kendo UI for Angular (requires trial registration)](https://www.telerik.com/kendo-angular-ui/getting-started?utm_medium=referral&utm_source=npm&utm_campaign=kendo-ui-angular-trial-npm-schematics) | ||
* [Demos, documentation, and component reference](https://www.telerik.com/kendo-angular-ui/components?utm_medium=referral&utm_source=npm&utm_campaign=kendo-ui-angular-trial-npm-schematics) | ||
* [Blogs](http://www.telerik.com/blogs/kendo-ui?utm_medium=referral&utm_source=npm&utm_campaign=kendo-ui-angular-trial-npm-schematics) | ||
* [Kendo UI for Angular pricing and licensing](https://www.telerik.com/purchase/kendo-ui?utm_medium=referral&utm_source=npm&utm_campaign=kendo-ui-angular-trial-npm-schematics) | ||
## Questions and Feedback | ||
* [Official Forums](https://www.telerik.com/forums/kendo-angular-ui) | ||
* [GitHub Issues](https://github.com/telerik/kendo-angular/issues) | ||
* [Feedback Portal](https://feedback.telerik.com/kendo-angular-ui) | ||
* [StackOverflow](https://stackoverflow.com/questions/tagged/kendo-ui-angular2) | ||
* [Official Forums](https://www.telerik.com/forums/kendo-angular-ui?utm_medium=referral&utm_source=npm&utm_campaign=kendo-ui-angular-trial-npm-schematics | ||
* [GitHub Issues](https://github.com/telerik/kendo-angular/issues?utm_medium=referral&utm_source=npm&utm_campaign=kendo-ui-angular-trial-npm-schematics) | ||
* [Feedback Portal](https://feedback.telerik.com/kendo-angular-ui?utm_medium=referral&utm_source=npm&utm_campaign=kendo-ui-angular-trial-npm-schematics) | ||
* [StackOverflow](https://stackoverflow.com/questions/tagged/kendo-ui-angular2?utm_medium=referral&utm_source=npm&utm_campaign=kendo-ui-angular-trial-npm-schematics) | ||
@@ -30,0 +30,0 @@ *Copyright © 2021 Progress Software Corporation and/or one of its subsidiaries or affiliates. All rights reserved.* |
"use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
exports.testComponent = void 0; | ||
const schematics_1 = require("@angular-devkit/schematics"); | ||
@@ -4,0 +5,0 @@ const utils_1 = require("../utils"); |
"use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
exports.grid = void 0; | ||
const schematics_1 = require("@angular-devkit/schematics"); | ||
@@ -4,0 +5,0 @@ const operators_1 = require("rxjs/operators"); |
"use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
exports.ngAdd = void 0; | ||
const schematics_1 = require("@angular-devkit/schematics"); | ||
@@ -110,3 +111,3 @@ const tasks_1 = require("@angular-devkit/schematics/tasks"); | ||
const content = utils_1.fileContent(tree, `node_modules/@progress/${fullPackageName}/package.json`); | ||
const dependencies = Object.assign({}, progressDependencies(JSON.parse(content), options.importHammerjs), options.peerDependencies); | ||
const dependencies = Object.assign(Object.assign({}, progressDependencies(JSON.parse(content), options.importHammerjs)), options.peerDependencies); | ||
if (needsLocalize(tree)) { | ||
@@ -113,0 +114,0 @@ dependencies['@angular/localize'] = getAngularVersionString(tree); |
"use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
exports.importTheme = exports.themeVersion = void 0; | ||
const schematics_1 = require("@angular-devkit/schematics"); | ||
@@ -4,0 +5,0 @@ const rules_1 = require("../rules"); |
"use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
exports.withBase = exports.addToPackageJson = exports.addDeclarationToNgModule = exports.applyChanges = void 0; | ||
const schematics_1 = require("@angular-devkit/schematics"); | ||
@@ -51,3 +52,3 @@ const core_1 = require("@angular-devkit/core"); | ||
return (options) => (host, context) => { | ||
const extendTemplateContext = (additional = {}) => schematics_1.template(Object.assign({}, core_1.strings, options, { 'folder-name': utils_1.folderName(options), 'full-path': `${options.sourceDir}/${options.path}`, selector: utils_1.buildSelector(options) }, additional)); | ||
const extendTemplateContext = (additional = {}) => schematics_1.template(Object.assign(Object.assign(Object.assign(Object.assign({}, core_1.strings), options), { 'folder-name': utils_1.folderName(options), 'full-path': `${options.sourceDir}/${options.path}`, selector: utils_1.buildSelector(options) }), additional)); | ||
const baseComponent = (templateContext) => { | ||
@@ -54,0 +55,0 @@ const templateSource = schematics_1.apply(schematics_1.url('../component/files'), [ |
"use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
exports.insertImport = exports.nodesByKind = exports.findNode = exports.addSymbolToMetadata = exports.ngModuleMetadata = exports.addExportToModule = exports.addImportToModule = exports.addDeclarationToModule = void 0; | ||
const ts = require("typescript"); | ||
exports.addDeclarationToModule = (options) => addToModule('declarations', options); | ||
exports.addImportToModule = (options) => addToModule('imports', options); | ||
exports.addExportToModule = (options) => addToModule('exports', options); | ||
const addDeclarationToModule = (options) => addToModule('declarations', options); | ||
exports.addDeclarationToModule = addDeclarationToModule; | ||
const addImportToModule = (options) => addToModule('imports', options); | ||
exports.addImportToModule = addImportToModule; | ||
const addExportToModule = (options) => addToModule('exports', options); | ||
exports.addExportToModule = addExportToModule; | ||
const addToModule = (metadataField, options) => { | ||
@@ -14,3 +18,3 @@ const result = exports.addSymbolToMetadata(options.source, metadataField, options.symbolName); | ||
}; | ||
exports.ngModuleMetadata = (source) => { | ||
const ngModuleMetadata = (source) => { | ||
const decorator = decoratorMetadata(source, 'NgModule') | ||
@@ -23,3 +27,4 @@ .filter(node => ofKind(node.arguments[0], ts.SyntaxKind.ObjectLiteralExpression))[0]; | ||
}; | ||
exports.addSymbolToMetadata = (source, metadataField, symbolName) => { | ||
exports.ngModuleMetadata = ngModuleMetadata; | ||
const addSymbolToMetadata = (source, metadataField, symbolName) => { | ||
if (!symbolName) | ||
@@ -57,2 +62,3 @@ return []; | ||
}; | ||
exports.addSymbolToMetadata = addSymbolToMetadata; | ||
const addMetaField = (node, text) => { | ||
@@ -88,3 +94,4 @@ if (node.properties.length === 0) { | ||
const ofKind = (node, ...kinds) => node && anyOf(node.kind, kinds); | ||
const isNgModelIdentifier = (node, name) => ofKind(node, ts.SyntaxKind.Identifier) && node.getText() === name; | ||
const isNgModelIdentifier = (node, name) => (ofKind(node, ts.SyntaxKind.Identifier) && node.getText() === name) || | ||
(ofKind(node, ts.SyntaxKind.PropertyAccessExpression) && node.name.escapedText === name); | ||
function findNode(node, kind, text) { | ||
@@ -101,3 +108,3 @@ if (node.kind === kind && node.getText() === text) { | ||
exports.findNode = findNode; | ||
exports.nodesByKind = (source, kind) => { | ||
const nodesByKind = (source, kind) => { | ||
const nodes = [source]; | ||
@@ -116,2 +123,3 @@ const result = []; | ||
}; | ||
exports.nodesByKind = nodesByKind; | ||
const findProperty = (props, metadataField) => props | ||
@@ -133,12 +141,4 @@ .filter(prop => ofKind(prop, ts.SyntaxKind.PropertyAssignment)) | ||
.map(expression => expression) | ||
.filter(node => { | ||
//@NgModule({ ... }) | ||
let expr = node.expression; | ||
//@foo.NgModule({ ... }) | ||
if (expr.kind === ts.SyntaxKind.PropertyAccessExpression) { | ||
expr = expr.name; | ||
} | ||
return isNgModelIdentifier(expr, name); | ||
}); | ||
exports.insertImport = (source, symbolName, importFrom) => { | ||
.filter(node => isNgModelIdentifier(node.expression, name)); | ||
const insertImport = (source, symbolName, importFrom) => { | ||
const isSideEffectsImport = !symbolName; | ||
@@ -176,2 +176,3 @@ const allImports = exports.nodesByKind(source, ts.SyntaxKind.ImportDeclaration); | ||
}; | ||
exports.insertImport = insertImport; | ||
const useStrictNode = (source) => exports.nodesByKind(source, ts.SyntaxKind.StringLiteral) | ||
@@ -178,0 +179,0 @@ .filter(node => node.text === 'use strict'); |
@@ -119,3 +119,4 @@ import * as ts from 'typescript'; | ||
const isNgModelIdentifier = (node: ts.Node, name: string) => | ||
ofKind(node, ts.SyntaxKind.Identifier) && node.getText() === name; | ||
(ofKind(node, ts.SyntaxKind.Identifier) && node.getText() === name) || | ||
(ofKind(node, ts.SyntaxKind.PropertyAccessExpression) && (<ts.PropertyAccessExpression> node).name.escapedText === name); | ||
@@ -175,14 +176,4 @@ export function findNode(node: ts.Node, kind: ts.SyntaxKind, text: string): ts.Node | null { | ||
.map(expression => expression as ts.CallExpression) | ||
.filter(node => { | ||
//@NgModule({ ... }) | ||
let expr = node.expression; | ||
.filter(node => isNgModelIdentifier(node.expression, name)); | ||
//@foo.NgModule({ ... }) | ||
if (expr.kind === ts.SyntaxKind.PropertyAccessExpression) { | ||
expr = (<ts.PropertyAccessExpression>expr).name; | ||
} | ||
return isNgModelIdentifier(expr, name); | ||
}); | ||
export const insertImport = (source: ts.SourceFile, symbolName: string, importFrom: string) => { | ||
@@ -189,0 +180,0 @@ const isSideEffectsImport = !symbolName; |
"use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
exports.findBootstrapModulePath = exports.findBootstrapModuleCall = exports.getAppModulePath = void 0; | ||
const ts = require("typescript"); | ||
@@ -4,0 +5,0 @@ const path_1 = require("path"); |
"use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
exports.buildRelativePath = exports.resolveModule = exports.findModule = void 0; | ||
const core_1 = require("@angular-devkit/core"); | ||
@@ -4,0 +5,0 @@ /** |
"use strict"; | ||
function __export(m) { | ||
for (var p in m) if (!exports.hasOwnProperty(p)) exports[p] = m[p]; | ||
} | ||
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) { | ||
if (k2 === undefined) k2 = k; | ||
Object.defineProperty(o, k2, { enumerable: true, get: function() { return m[k]; } }); | ||
}) : (function(o, m, k, k2) { | ||
if (k2 === undefined) k2 = k; | ||
o[k2] = m[k]; | ||
})); | ||
var __exportStar = (this && this.__exportStar) || function(m, exports) { | ||
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p); | ||
}; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
exports.fileContent = exports.asObservable = exports.stringify = exports.buildSelector = exports.folderName = exports.getAppModulePath = exports.findModule = exports.addImportToModule = exports.addExportToModule = exports.addDeclarationToModule = exports.addSymbolToMetadata = void 0; | ||
const core_1 = require("@angular-devkit/core"); | ||
@@ -10,17 +18,19 @@ const schematics_1 = require("@angular-devkit/schematics"); | ||
var ast_utils_1 = require("./ast-utils"); | ||
exports.addSymbolToMetadata = ast_utils_1.addSymbolToMetadata; | ||
exports.addDeclarationToModule = ast_utils_1.addDeclarationToModule; | ||
exports.addExportToModule = ast_utils_1.addExportToModule; | ||
exports.addImportToModule = ast_utils_1.addImportToModule; | ||
Object.defineProperty(exports, "addSymbolToMetadata", { enumerable: true, get: function () { return ast_utils_1.addSymbolToMetadata; } }); | ||
Object.defineProperty(exports, "addDeclarationToModule", { enumerable: true, get: function () { return ast_utils_1.addDeclarationToModule; } }); | ||
Object.defineProperty(exports, "addExportToModule", { enumerable: true, get: function () { return ast_utils_1.addExportToModule; } }); | ||
Object.defineProperty(exports, "addImportToModule", { enumerable: true, get: function () { return ast_utils_1.addImportToModule; } }); | ||
var find_module_1 = require("./find-module"); | ||
exports.findModule = find_module_1.findModule; | ||
__export(require("./workspace")); | ||
Object.defineProperty(exports, "findModule", { enumerable: true, get: function () { return find_module_1.findModule; } }); | ||
__exportStar(require("./workspace"), exports); | ||
var bootstrap_module_1 = require("./bootstrap-module"); | ||
exports.getAppModulePath = bootstrap_module_1.getAppModulePath; | ||
exports.folderName = (options) => (name) => options.flat ? '' : core_1.strings.dasherize(name); | ||
Object.defineProperty(exports, "getAppModulePath", { enumerable: true, get: function () { return bootstrap_module_1.getAppModulePath; } }); | ||
const folderName = (options) => (name) => options.flat ? '' : core_1.strings.dasherize(name); | ||
exports.folderName = folderName; | ||
const prefix = (pre, name) => (pre ? `${pre}-` : '') + name; | ||
exports.buildSelector = (options) => { | ||
const buildSelector = (options) => { | ||
const name = options.selector || core_1.strings.dasherize(options.name); | ||
return prefix(options.prefix, name); | ||
}; | ||
exports.buildSelector = buildSelector; | ||
function stringify(json) { | ||
@@ -27,0 +37,0 @@ return `${JSON.stringify(json, null, 2)}\n`; |
"use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
exports.createAppModule = void 0; | ||
function createAppModule(tree, path) { | ||
@@ -4,0 +5,0 @@ tree.create(path || '/src/app/app.module.ts', ` |
"use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
exports.createCliConfig = void 0; | ||
const __1 = require(".."); | ||
@@ -9,5 +10,5 @@ const config = { | ||
"projects": { | ||
"cli6": { | ||
"demo": { | ||
"root": "", | ||
"sourceRoot": "/src", | ||
"sourceRoot": "src", | ||
"projectType": "application", | ||
@@ -20,3 +21,3 @@ "prefix": "app", | ||
"options": { | ||
"outputPath": "dist/cli6", | ||
"outputPath": "dist/demo", | ||
"index": "src/index.html", | ||
@@ -27,12 +28,4 @@ "main": "src/main.ts", | ||
"assets": [ | ||
{ | ||
"glob": "favicon.ico", | ||
"input": "src", | ||
"output": "/" | ||
}, | ||
{ | ||
"glob": "**/*", | ||
"input": "src/assets", | ||
"output": "/assets" | ||
} | ||
"src/favicon.ico", | ||
"src/assets" | ||
], | ||
@@ -67,7 +60,7 @@ "styles": [ | ||
"options": { | ||
"browserTarget": "cli6:build" | ||
"browserTarget": "demo:build" | ||
}, | ||
"configurations": { | ||
"production": { | ||
"browserTarget": "cli6:build:production" | ||
"browserTarget": "demo:build:production" | ||
} | ||
@@ -79,3 +72,3 @@ } | ||
"options": { | ||
"browserTarget": "cli6:build" | ||
"browserTarget": "demo:build" | ||
} | ||
@@ -95,12 +88,4 @@ }, | ||
"assets": [ | ||
{ | ||
"glob": "favicon.ico", | ||
"input": "src/", | ||
"output": "/" | ||
}, | ||
{ | ||
"glob": "**/*", | ||
"input": "src/assets", | ||
"output": "/assets" | ||
} | ||
"src/favicon.ico", | ||
"src/assets" | ||
] | ||
@@ -122,31 +107,9 @@ } | ||
} | ||
}, | ||
"cli6-e2e": { | ||
"root": "e2e/", | ||
"projectType": "application", | ||
"architect": { | ||
"e2e": { | ||
"builder": "@angular-devkit/build-angular:protractor", | ||
"options": { | ||
"protractorConfig": "e2e/protractor.conf.js", | ||
"devServerTarget": "cli6:serve" | ||
} | ||
}, | ||
"lint": { | ||
"builder": "@angular-devkit/build-angular:tslint", | ||
"options": { | ||
"tsConfig": "e2e/tsconfig.e2e.json", | ||
"exclude": [ | ||
"**/node_modules/**" | ||
] | ||
} | ||
} | ||
} | ||
} | ||
}, | ||
"defaultProject": "cli6" | ||
"defaultProject": "demo" | ||
}; | ||
function createCliConfig(tree, options = {}) { | ||
if (options.skipTests) { | ||
delete config.projects.cli6.architect.test; | ||
delete config.projects.demo.architect.test; | ||
} | ||
@@ -153,0 +116,0 @@ let content = __1.stringify(config); |
@@ -9,5 +9,5 @@ import { Tree } from "@angular-devkit/schematics"; | ||
"projects": { | ||
"cli6": { | ||
"demo": { | ||
"root": "", | ||
"sourceRoot": "/src", | ||
"sourceRoot": "src", | ||
"projectType": "application", | ||
@@ -18,45 +18,37 @@ "prefix": "app", | ||
"build": { | ||
"builder": "@angular-devkit/build-angular:browser", | ||
"options": { | ||
"outputPath": "dist/cli6", | ||
"index": "src/index.html", | ||
"main": "src/main.ts", | ||
"polyfills": "src/polyfills.ts", | ||
"tsConfig": "src/tsconfig.app.json", | ||
"assets": [ | ||
"builder": "@angular-devkit/build-angular:browser", | ||
"options": { | ||
"outputPath": "dist/demo", | ||
"index": "src/index.html", | ||
"main": "src/main.ts", | ||
"polyfills": "src/polyfills.ts", | ||
"tsConfig": "src/tsconfig.app.json", | ||
"assets": [ | ||
"src/favicon.ico", | ||
"src/assets" | ||
], | ||
"styles": [ | ||
"src/styles.css" | ||
], | ||
"scripts": [] | ||
}, | ||
"configurations": { | ||
"production": { | ||
"fileReplacements": [ | ||
{ | ||
"glob": "favicon.ico", | ||
"input": "src", | ||
"output": "/" | ||
}, | ||
{ | ||
"glob": "**/*", | ||
"input": "src/assets", | ||
"output": "/assets" | ||
"replace": "src/environments/environment.ts", | ||
"with": "src/environments/environment.prod.ts" | ||
} | ||
], | ||
"styles": [ | ||
"src/styles.css" | ||
], | ||
"scripts": [] | ||
}, | ||
"configurations": { | ||
"production": { | ||
"fileReplacements": [ | ||
{ | ||
"replace": "src/environments/environment.ts", | ||
"with": "src/environments/environment.prod.ts" | ||
} | ||
], | ||
"optimization": true, | ||
"outputHashing": "all", | ||
"sourceMap": false, | ||
"extractCss": true, | ||
"namedChunks": false, | ||
"aot": true, | ||
"extractLicenses": true, | ||
"vendorChunk": false, | ||
"buildOptimizer": true | ||
} | ||
"optimization": true, | ||
"outputHashing": "all", | ||
"sourceMap": false, | ||
"extractCss": true, | ||
"namedChunks": false, | ||
"aot": true, | ||
"extractLicenses": true, | ||
"vendorChunk": false, | ||
"buildOptimizer": true | ||
} | ||
} | ||
}, | ||
@@ -66,7 +58,7 @@ "serve": { | ||
"options": { | ||
"browserTarget": "cli6:build" | ||
"browserTarget": "demo:build" | ||
}, | ||
"configurations": { | ||
"production": { | ||
"browserTarget": "cli6:build:production" | ||
"browserTarget": "demo:build:production" | ||
} | ||
@@ -76,70 +68,40 @@ } | ||
"extract-i18n": { | ||
"builder": "@angular-devkit/build-angular:extract-i18n", | ||
"options": { | ||
"browserTarget": "cli6:build" | ||
} | ||
"builder": "@angular-devkit/build-angular:extract-i18n", | ||
"options": { | ||
"browserTarget": "demo:build" | ||
} | ||
}, | ||
"test": { | ||
"builder": "@angular-devkit/build-angular:karma", | ||
"options": { | ||
"main": "src/test.ts", | ||
"polyfills": "src/polyfills.ts", | ||
"tsConfig": "src/tsconfig.spec.json", | ||
"karmaConfig": "src/karma.conf.js", | ||
"styles": [ | ||
"styles.css" | ||
], | ||
"scripts": [], | ||
"builder": "@angular-devkit/build-angular:karma", | ||
"options": { | ||
"main": "src/test.ts", | ||
"polyfills": "src/polyfills.ts", | ||
"tsConfig": "src/tsconfig.spec.json", | ||
"karmaConfig": "src/karma.conf.js", | ||
"styles": [ | ||
"styles.css" | ||
], | ||
"scripts": [], | ||
"assets": [ | ||
{ | ||
"glob": "favicon.ico", | ||
"input": "src/", | ||
"output": "/" | ||
}, | ||
{ | ||
"glob": "**/*", | ||
"input": "src/assets", | ||
"output": "/assets" | ||
} | ||
] | ||
} | ||
}, | ||
"lint": { | ||
"builder": "@angular-devkit/build-angular:tslint", | ||
"options": { | ||
"tsConfig": [ | ||
"src/tsconfig.app.json", | ||
"src/tsconfig.spec.json" | ||
], | ||
"exclude": [ | ||
"**/node_modules/**" | ||
] | ||
} | ||
"src/favicon.ico", | ||
"src/assets" | ||
] | ||
} | ||
} | ||
}, | ||
"cli6-e2e": { | ||
"root": "e2e/", | ||
"projectType": "application", | ||
"architect": { | ||
"e2e": { | ||
"builder": "@angular-devkit/build-angular:protractor", | ||
"options": { | ||
"protractorConfig": "e2e/protractor.conf.js", | ||
"devServerTarget": "cli6:serve" | ||
} | ||
}, | ||
"lint": { | ||
"builder": "@angular-devkit/build-angular:tslint", | ||
"options": { | ||
"tsConfig": "e2e/tsconfig.e2e.json", | ||
"exclude": [ | ||
"**/node_modules/**" | ||
] | ||
} | ||
"builder": "@angular-devkit/build-angular:tslint", | ||
"options": { | ||
"tsConfig": [ | ||
"src/tsconfig.app.json", | ||
"src/tsconfig.spec.json" | ||
], | ||
"exclude": [ | ||
"**/node_modules/**" | ||
] | ||
} | ||
} | ||
} | ||
} | ||
}, | ||
"defaultProject": "cli6" | ||
"defaultProject": "demo" | ||
}; | ||
@@ -149,3 +111,3 @@ | ||
if (options.skipTests) { | ||
delete config.projects.cli6.architect.test; | ||
delete config.projects.demo.architect.test; | ||
} | ||
@@ -152,0 +114,0 @@ |
"use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
exports.createMainBootstrap = void 0; | ||
function createMainBootstrap(tree, path) { | ||
@@ -4,0 +5,0 @@ tree.create(path || '/src/main.ts', ` |
"use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
exports.createPackageJson = void 0; | ||
const __1 = require(".."); | ||
@@ -4,0 +5,0 @@ const config = { |
"use strict"; | ||
function __export(m) { | ||
for (var p in m) if (!exports.hasOwnProperty(p)) exports[p] = m[p]; | ||
} | ||
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) { | ||
if (k2 === undefined) k2 = k; | ||
Object.defineProperty(o, k2, { enumerable: true, get: function() { return m[k]; } }); | ||
}) : (function(o, m, k, k2) { | ||
if (k2 === undefined) k2 = k; | ||
o[k2] = m[k]; | ||
})); | ||
var __exportStar = (this && this.__exportStar) || function(m, exports) { | ||
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p); | ||
}; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
__export(require("./create-app-module")); | ||
__export(require("./create-cli-config")); | ||
__export(require("./create-main-bootstrap")); | ||
__export(require("./create-package-json")); | ||
__exportStar(require("./create-app-module"), exports); | ||
__exportStar(require("./create-cli-config"), exports); | ||
__exportStar(require("./create-main-bootstrap"), exports); | ||
__exportStar(require("./create-package-json"), exports); |
@@ -1,5 +0,5 @@ | ||
import { experimental } from '@angular-devkit/core'; | ||
import { workspaces } from '@angular-devkit/core'; | ||
import { Tree } from '@angular-devkit/schematics'; | ||
export declare type WorkspaceSchema = experimental.workspace.WorkspaceSchema; | ||
export declare type WorkspaceProject = experimental.workspace.WorkspaceProject; | ||
export declare type WorkspaceSchema = workspaces.WorkspaceDefinition; | ||
export declare type WorkspaceProject = workspaces.ProjectDefinition; | ||
export declare function getWorkspace(host: Tree): WorkspaceSchema; | ||
@@ -11,3 +11,3 @@ export declare function getWorkspacePath(host: Tree): string; | ||
*/ | ||
export declare function getProjectFromWorkspace(config: WorkspaceSchema, projectName?: string): WorkspaceProject; | ||
export declare function resolveProject(host: Tree, projectName?: string): WorkspaceProject; | ||
export declare function getProjectFromWorkspace(config: WorkspaceSchema, projectName?: string): any; | ||
export declare function resolveProject(host: Tree, projectName?: string): any; |
"use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
exports.resolveProject = exports.getProjectFromWorkspace = exports.getWorkspacePath = exports.getWorkspace = void 0; | ||
const schematics_1 = require("@angular-devkit/schematics"); | ||
@@ -4,0 +5,0 @@ function getWorkspace(host) { |
@@ -1,6 +0,6 @@ | ||
import { experimental } from '@angular-devkit/core'; | ||
import { workspaces } from '@angular-devkit/core'; | ||
import { SchematicsException, Tree } from '@angular-devkit/schematics'; | ||
export type WorkspaceSchema = experimental.workspace.WorkspaceSchema; | ||
export type WorkspaceProject = experimental.workspace.WorkspaceProject; | ||
export type WorkspaceSchema = workspaces.WorkspaceDefinition; | ||
export type WorkspaceProject = workspaces.ProjectDefinition; | ||
@@ -29,3 +29,3 @@ export function getWorkspace(host: Tree): WorkspaceSchema { | ||
*/ | ||
export function getProjectFromWorkspace(config: WorkspaceSchema, projectName?: string): WorkspaceProject { | ||
export function getProjectFromWorkspace(config: WorkspaceSchema, projectName?: string): any { | ||
if (!config.projects) throw new SchematicsException('No projects are defined'); | ||
@@ -61,3 +61,3 @@ | ||
export function resolveProject(host: Tree, projectName?: string): WorkspaceProject { | ||
export function resolveProject(host: Tree, projectName?: string): any { | ||
const workspace = getWorkspace(host); | ||
@@ -64,0 +64,0 @@ |
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
No website
QualityPackage does not have a website.
Found 1 instance in 1 package
199000
3998