@angular-devkit/schematics
Advanced tools
Comparing version
{ | ||
"name": "@angular-devkit/schematics", | ||
"version": "0.6.5", | ||
"version": "0.6.6", | ||
"description": "Angular Schematics - Library", | ||
@@ -20,3 +20,3 @@ "main": "src/index.js", | ||
"dependencies": { | ||
"@angular-devkit/core": "0.6.5", | ||
"@angular-devkit/core": "0.6.6", | ||
"rxjs": "^6.0.0" | ||
@@ -23,0 +23,0 @@ }, |
@@ -12,3 +12,2 @@ "use strict"; | ||
const path_1 = require("path"); | ||
const tools_1 = require("../tools"); | ||
const export_ref_1 = require("./export-ref"); | ||
@@ -34,3 +33,3 @@ const file_system_engine_host_base_1 = require("./file-system-engine-host-base"); | ||
} | ||
throw new tools_1.CollectionCannotBeResolvedException(name); | ||
throw new file_system_engine_host_base_1.CollectionCannotBeResolvedException(name); | ||
} | ||
@@ -47,3 +46,3 @@ _resolveReferenceString(refString, parentPath) { | ||
if (!desc.schematics || typeof desc.schematics != 'object') { | ||
throw new tools_1.CollectionMissingSchematicsMapException(name); | ||
throw new file_system_engine_host_base_1.CollectionMissingSchematicsMapException(name); | ||
} | ||
@@ -54,3 +53,3 @@ return desc; | ||
if (!desc.factoryFn || !desc.path || !desc.description) { | ||
throw new tools_1.SchematicMissingFieldsException(name); | ||
throw new file_system_engine_host_base_1.SchematicMissingFieldsException(name); | ||
} | ||
@@ -61,2 +60,2 @@ return desc; | ||
exports.FileSystemEngineHost = FileSystemEngineHost; | ||
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiZmlsZS1zeXN0ZW0tZW5naW5lLWhvc3QuanMiLCJzb3VyY2VSb290IjoiLi8iLCJzb3VyY2VzIjpbInBhY2thZ2VzL2FuZ3VsYXJfZGV2a2l0L3NjaGVtYXRpY3MvdG9vbHMvZmlsZS1zeXN0ZW0tZW5naW5lLWhvc3QudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6Ijs7QUFBQTs7Ozs7O0dBTUc7QUFDSCwyQkFBZ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xkc0V4Y2VwdGlvbihuYW1lKTtcbiAgICB9XG5cbiAgICByZXR1cm4gZGVzYyBhcyBGaWxlU3lzdGVtU2NoZW1hdGljRGVzYztcbiAgfVxufVxuIl19 |
@@ -13,3 +13,2 @@ "use strict"; | ||
const path_1 = require("path"); | ||
const tools_1 = require("../tools"); | ||
const export_ref_1 = require("./export-ref"); | ||
@@ -90,3 +89,3 @@ const file_system_engine_host_base_1 = require("./file-system-engine-host-base"); | ||
} | ||
throw new tools_1.CollectionCannotBeResolvedException(name); | ||
throw new file_system_engine_host_base_1.CollectionCannotBeResolvedException(name); | ||
} | ||
@@ -102,3 +101,3 @@ _resolveReferenceString(refString, parentPath) { | ||
if (!desc.schematics || typeof desc.schematics != 'object') { | ||
throw new tools_1.CollectionMissingSchematicsMapException(name); | ||
throw new file_system_engine_host_base_1.CollectionMissingSchematicsMapException(name); | ||
} | ||
@@ -109,3 +108,3 @@ return Object.assign({}, desc, { name }); | ||
if (!desc.factoryFn || !desc.path || !desc.description) { | ||
throw new tools_1.SchematicMissingFieldsException(name); | ||
throw new file_system_engine_host_base_1.SchematicMissingFieldsException(name); | ||
} | ||
@@ -116,2 +115,2 @@ return desc; | ||
exports.NodeModulesEngineHost = NodeModulesEngineHost; | ||
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoibm9kZS1tb2R1bGUtZW5naW5lLWhvc3QuanMiLCJzb3VyY2VSb290IjoiLi8iLCJzb3VyY2VzIjpbInBhY2thZ2VzL2FuZ3VsYXJfZGV2a2l0L3NjaGVtYXRpY3MvdG9vbHMvbm9kZS1tb2R1bGUtZW5naW5lLWhvc3QudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6Ijs7QUFBQTs7Ozs7O0dBTUc7QUFDSCwrQ0FBcUQ7QUFDckQsa0RBQWtEO0FBQ2xELCtCQUE2RDtBQUU3RCxvQ0FJa0I7QUFLbEIsNkNBQStDO0FBQy9DLGlGQUEwRTtBQUMxRSwr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W5zZm9ybUNvbGxlY3Rpb25EZXNjcmlwdGlvbihcbiAgICBuYW1lOiBzdHJpbmcsXG4gICAgZGVzYzogUGFydGlhbDxGaWxlU3lzdGVtQ29sbGVjdGlvbkRlc2M+LFxuICApOiBGaWxlU3lzdGVtQ29sbGVjdGlvbkRlc2Mge1xuICAgIGlmICghZGVzYy5zY2hlbWF0aWNzIHx8IHR5cGVvZiBkZXNjLnNjaGVtYXRpY3MgIT0gJ29iamVjdCcpIHtcbiAgICAgIHRocm93IG5ldyBDb2xsZWN0aW9uTWlzc2luZ1NjaGVtYXRpY3NNYXBFeGNlcHRpb24obmFtZSk7XG4gICAgfVxuXG4gICAgcmV0dXJuIHtcbiAgICAgIC4uLmRlc2MsXG4gICAgICBuYW1lLFxuICAgIH0gYXMgRmlsZVN5c3RlbUNvbGxlY3Rpb25EZXNjO1xuICB9XG5cbiAgcHJvdGVjdGVkIF90cmFuc2Zvcm1TY2hlbWF0aWNEZXNjcmlwdGlvbihcbiAgICBuYW1lOiBzdHJpbmcsXG4gICAgX2NvbGxlY3Rpb246IEZpbGVTeXN0ZW1Db2xsZWN0aW9uRGVzYyxcbiAgICBkZXNjOiBQYXJ0aWFsPEZpbGVTeXN0ZW1TY2hlbWF0aWNEZXNjPixcbiAgKTogRmlsZVN5c3RlbVNjaGVtYXRpY0Rlc2Mge1xuICAgIGlmICghZGVzYy5mYWN0b3J5Rm4gfHwgIWRlc2MucGF0aCB8fCAhZGVzYy5kZXNjcmlwdGlvbikge1xuICAgICAgdGhyb3cgbmV3IFNjaGVtYXRpY01pc3NpbmdGaWVsZHNFeGNlcHRpb24obmFtZSk7XG4gICAgfVxuXG4gICAgcmV0dXJuIGRlc2MgYXMgRmlsZVN5c3RlbVNjaGVtYXRpY0Rlc2M7XG4gIH1cbn1cbiJdfQ== |
@@ -11,4 +11,4 @@ /** | ||
import { Observable, Subject } from 'rxjs'; | ||
import { NodeModulesEngineHost } from '..'; | ||
import { DryRunEvent } from '../../src/sink/dryrun'; | ||
import { NodeModulesEngineHost } from '../node-module-engine-host'; | ||
export declare class NodeWorkflow implements workflow.Workflow { | ||
@@ -15,0 +15,0 @@ protected _host: virtualFs.Host; |
@@ -14,4 +14,5 @@ "use strict"; | ||
const operators_1 = require("rxjs/operators"); | ||
const __1 = require(".."); | ||
const node_1 = require("../../tasks/node"); | ||
const node_module_engine_host_1 = require("../node-module-engine-host"); | ||
const schema_option_transform_1 = require("../schema-option-transform"); | ||
class NodeWorkflow { | ||
@@ -27,7 +28,7 @@ constructor(_host, _options) { | ||
*/ | ||
this._engineHost = new __1.NodeModulesEngineHost(); | ||
this._engineHost = new node_module_engine_host_1.NodeModulesEngineHost(); | ||
this._engine = new schematics_1.SchematicEngine(this._engineHost, this); | ||
// Add support for schemaJson. | ||
this._registry = new core_1.schema.CoreSchemaRegistry(schematics_1.formats.standardFormats); | ||
this._engineHost.registerOptionsTransform(__1.validateOptionsWithSchema(this._registry)); | ||
this._engineHost.registerOptionsTransform(schema_option_transform_1.validateOptionsWithSchema(this._registry)); | ||
this._engineHost.registerTaskExecutor(node_1.BuiltinTaskExecutor.NodePackage, { | ||
@@ -113,2 +114,2 @@ allowPackageManagerOverride: true, | ||
exports.NodeWorkflow = NodeWorkflow; | ||
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoibm9kZS13b3JrZmxvdy5qcyIsInNvdXJjZVJvb3QiOiIuLyIsInNvdXJjZXMiOlsicGFja2FnZXMvYW5ndWxhcl9kZXZraXQvc2NoZW1hdGljcy90b29scy93b3JrZmxvdy9ub2RlLXdvcmtmbG93LnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiI7O0FBQUE7Ozs7OztHQU1HO0FBQ0gsK0NBQXdFO0FBQ3hFLDJEQVNvQyxDQUFFLCtDQUErQztBQUNyRiwrQkFBbUU7QUFDbkUsOENBQTJGO0FBQzNGLDBCQUFzRTtBQUV0RSwyQ0FBdUQ7QUFFdkQ7SUFVRSxZQUNZ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AgIH1cblxuICAgICAgICByZXR1cm4gZnNTaW5rLmNvbW1pdCh0cmVlKS5waXBlKGRlZmF1bHRJZkVtcHR5KCksIGxhc3QoKSk7XG4gICAgICB9KSxcbiAgICAgIGNvbmNhdE1hcCgoKSA9PiB7XG4gICAgICAgIGlmICh0aGlzLl9vcHRpb25zLmRyeVJ1bikge1xuICAgICAgICAgIHJldHVybiBvZigpO1xuICAgICAgICB9XG5cbiAgICAgICAgdGhpcy5fbGlmZUN5Y2xlLm5leHQoeyBraW5kOiAncG9zdC10YXNrcy1zdGFydCcgfSk7XG5cbiAgICAgICAgcmV0dXJuIHRoaXMuX2VuZ2luZS5leGVjdXRlUG9zdFRhc2tzKClcbiAgICAgICAgICAucGlwZShcbiAgICAgICAgICAgIHRhcCh7IGNvbXBsZXRlOiAoKSA9PiB0aGlzLl9saWZlQ3ljbGUubmV4dCh7IGtpbmQ6ICdwb3N0LXRhc2tzLWVuZCcgfSkgfSksXG4gICAgICAgICAgICBkZWZhdWx0SWZFbXB0eSgpLFxuICAgICAgICAgICAgbGFzdCgpLFxuICAgICAgICAgICk7XG4gICAgICB9KSxcbiAgICAgIHRhcCh7IGNvbXBsZXRlOiAoKSA9PiB7XG4gICAgICAgIHRoaXMuX2xpZmVDeWNsZS5uZXh0KHsga2luZDogJ3dvcmtmbG93LWVuZCcgfSk7XG4gICAgICAgIHRoaXMuX2NvbnRleHQucG9wKCk7XG5cbiAgICAgICAgaWYgKHRoaXMuX2NvbnRleHQubGVuZ3RoID09IDApIHtcbiAgICAgICAgICB0aGlzLl9saWZlQ3ljbGUubmV4dCh7IGtpbmQ6ICdlbmQnIH0pO1xuICAgICAgICB9XG4gICAgICB9fSksXG4gICAgKTtcbiAgfVxufVxuIl19 | ||
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoibm9kZS13b3JrZmxvdy5qcyIsInNvdXJjZVJvb3QiOiIuLyIsInNvdXJjZXMiOlsicGFja2FnZXMvYW5ndWx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5Y2xlLm5leHQoeyBraW5kOiAnd29ya2Zsb3ctZW5kJyB9KTtcbiAgICAgICAgdGhpcy5fY29udGV4dC5wb3AoKTtcblxuICAgICAgICBpZiAodGhpcy5fY29udGV4dC5sZW5ndGggPT0gMCkge1xuICAgICAgICAgIHRoaXMuX2xpZmVDeWNsZS5uZXh0KHsga2luZDogJ2VuZCcgfSk7XG4gICAgICAgIH1cbiAgICAgIH19KSxcbiAgICApO1xuICB9XG59XG4iXX0= |
641585
0.04%5833
-0.02%+ Added
- Removed
Updated