Updated the files.
This commit is contained in:
parent
1553e6b971
commit
753967d4f5
23418 changed files with 3784666 additions and 0 deletions
8
my-app/node_modules/@schematics/angular/pipe/files/__name@dasherize@if-flat__/__name@dasherize__.pipe.spec.ts.template
generated
vendored
Executable file
8
my-app/node_modules/@schematics/angular/pipe/files/__name@dasherize@if-flat__/__name@dasherize__.pipe.spec.ts.template
generated
vendored
Executable file
|
@ -0,0 +1,8 @@
|
|||
import { <%= classify(name) %>Pipe } from './<%= dasherize(name) %>.pipe';
|
||||
|
||||
describe('<%= classify(name) %>Pipe', () => {
|
||||
it('create an instance', () => {
|
||||
const pipe = new <%= classify(name) %>Pipe();
|
||||
expect(pipe).toBeTruthy();
|
||||
});
|
||||
});
|
13
my-app/node_modules/@schematics/angular/pipe/files/__name@dasherize@if-flat__/__name@dasherize__.pipe.ts.template
generated
vendored
Executable file
13
my-app/node_modules/@schematics/angular/pipe/files/__name@dasherize@if-flat__/__name@dasherize__.pipe.ts.template
generated
vendored
Executable file
|
@ -0,0 +1,13 @@
|
|||
import { Pipe, PipeTransform } from '@angular/core';
|
||||
|
||||
@Pipe({
|
||||
name: '<%= camelize(name) %>'<% if(standalone) {%>,
|
||||
standalone: true<%}%>
|
||||
})
|
||||
export class <%= classify(name) %>Pipe implements PipeTransform {
|
||||
|
||||
transform(value: unknown, ...args: unknown[]): unknown {
|
||||
return null;
|
||||
}
|
||||
|
||||
}
|
10
my-app/node_modules/@schematics/angular/pipe/index.d.ts
generated
vendored
Executable file
10
my-app/node_modules/@schematics/angular/pipe/index.d.ts
generated
vendored
Executable file
|
@ -0,0 +1,10 @@
|
|||
/**
|
||||
* @license
|
||||
* Copyright Google LLC All Rights Reserved.
|
||||
*
|
||||
* Use of this source code is governed by an MIT-style license that can be
|
||||
* found in the LICENSE file at https://angular.io/license
|
||||
*/
|
||||
import { Rule } from '@angular-devkit/schematics';
|
||||
import { Schema as PipeOptions } from './schema';
|
||||
export default function (options: PipeOptions): Rule;
|
42
my-app/node_modules/@schematics/angular/pipe/index.js
generated
vendored
Executable file
42
my-app/node_modules/@schematics/angular/pipe/index.js
generated
vendored
Executable file
|
@ -0,0 +1,42 @@
|
|||
"use strict";
|
||||
/**
|
||||
* @license
|
||||
* Copyright Google LLC All Rights Reserved.
|
||||
*
|
||||
* Use of this source code is governed by an MIT-style license that can be
|
||||
* found in the LICENSE file at https://angular.io/license
|
||||
*/
|
||||
Object.defineProperty(exports, "__esModule", { value: true });
|
||||
const schematics_1 = require("@angular-devkit/schematics");
|
||||
const add_declaration_to_ng_module_1 = require("../utility/add-declaration-to-ng-module");
|
||||
const find_module_1 = require("../utility/find-module");
|
||||
const parse_name_1 = require("../utility/parse-name");
|
||||
const validation_1 = require("../utility/validation");
|
||||
const workspace_1 = require("../utility/workspace");
|
||||
function default_1(options) {
|
||||
return async (host) => {
|
||||
options.path ??= await (0, workspace_1.createDefaultPath)(host, options.project);
|
||||
options.module = (0, find_module_1.findModuleFromOptions)(host, options);
|
||||
const parsedPath = (0, parse_name_1.parseName)(options.path, options.name);
|
||||
options.name = parsedPath.name;
|
||||
options.path = parsedPath.path;
|
||||
(0, validation_1.validateClassName)(schematics_1.strings.classify(options.name));
|
||||
const templateSource = (0, schematics_1.apply)((0, schematics_1.url)('./files'), [
|
||||
options.skipTests ? (0, schematics_1.filter)((path) => !path.endsWith('.spec.ts.template')) : (0, schematics_1.noop)(),
|
||||
(0, schematics_1.applyTemplates)({
|
||||
...schematics_1.strings,
|
||||
'if-flat': (s) => (options.flat ? '' : s),
|
||||
...options,
|
||||
}),
|
||||
(0, schematics_1.move)(parsedPath.path),
|
||||
]);
|
||||
return (0, schematics_1.chain)([
|
||||
(0, add_declaration_to_ng_module_1.addDeclarationToNgModule)({
|
||||
type: 'pipe',
|
||||
...options,
|
||||
}),
|
||||
(0, schematics_1.mergeWith)(templateSource),
|
||||
]);
|
||||
};
|
||||
}
|
||||
exports.default = default_1;
|
41
my-app/node_modules/@schematics/angular/pipe/schema.d.ts
generated
vendored
Executable file
41
my-app/node_modules/@schematics/angular/pipe/schema.d.ts
generated
vendored
Executable file
|
@ -0,0 +1,41 @@
|
|||
/**
|
||||
* Creates a new, generic pipe definition in the given project.
|
||||
*/
|
||||
export interface Schema {
|
||||
/**
|
||||
* The declaring NgModule exports this pipe.
|
||||
*/
|
||||
export?: boolean;
|
||||
/**
|
||||
* When true (the default) creates files at the top level of the project.
|
||||
*/
|
||||
flat?: boolean;
|
||||
/**
|
||||
* The declaring NgModule.
|
||||
*/
|
||||
module?: string;
|
||||
/**
|
||||
* The name of the pipe.
|
||||
*/
|
||||
name: string;
|
||||
/**
|
||||
* The path at which to create the pipe, relative to the workspace root.
|
||||
*/
|
||||
path?: string;
|
||||
/**
|
||||
* The name of the project.
|
||||
*/
|
||||
project: string;
|
||||
/**
|
||||
* Do not import this pipe into the owning NgModule.
|
||||
*/
|
||||
skipImport?: boolean;
|
||||
/**
|
||||
* Do not create "spec.ts" test files for the new pipe.
|
||||
*/
|
||||
skipTests?: boolean;
|
||||
/**
|
||||
* Whether the generated pipe is standalone.
|
||||
*/
|
||||
standalone?: boolean;
|
||||
}
|
4
my-app/node_modules/@schematics/angular/pipe/schema.js
generated
vendored
Executable file
4
my-app/node_modules/@schematics/angular/pipe/schema.js
generated
vendored
Executable file
|
@ -0,0 +1,4 @@
|
|||
"use strict";
|
||||
// THIS FILE IS AUTOMATICALLY GENERATED. TO UPDATE THIS FILE YOU NEED TO CHANGE THE
|
||||
// CORRESPONDING JSON SCHEMA FILE, THEN RUN devkit-admin build (or bazel build ...).
|
||||
Object.defineProperty(exports, "__esModule", { value: true });
|
67
my-app/node_modules/@schematics/angular/pipe/schema.json
generated
vendored
Executable file
67
my-app/node_modules/@schematics/angular/pipe/schema.json
generated
vendored
Executable file
|
@ -0,0 +1,67 @@
|
|||
{
|
||||
"$schema": "http://json-schema.org/draft-07/schema",
|
||||
"$id": "SchematicsAngularPipe",
|
||||
"title": "Angular Pipe Options Schema",
|
||||
"type": "object",
|
||||
"additionalProperties": false,
|
||||
"description": "Creates a new, generic pipe definition in the given project.",
|
||||
"properties": {
|
||||
"name": {
|
||||
"type": "string",
|
||||
"description": "The name of the pipe.",
|
||||
"$default": {
|
||||
"$source": "argv",
|
||||
"index": 0
|
||||
},
|
||||
"x-prompt": "What name would you like to use for the pipe?"
|
||||
},
|
||||
"path": {
|
||||
"type": "string",
|
||||
"format": "path",
|
||||
"$default": {
|
||||
"$source": "workingDirectory"
|
||||
},
|
||||
"description": "The path at which to create the pipe, relative to the workspace root.",
|
||||
"visible": false
|
||||
},
|
||||
"project": {
|
||||
"type": "string",
|
||||
"description": "The name of the project.",
|
||||
"$default": {
|
||||
"$source": "projectName"
|
||||
}
|
||||
},
|
||||
"flat": {
|
||||
"type": "boolean",
|
||||
"default": true,
|
||||
"description": "When true (the default) creates files at the top level of the project."
|
||||
},
|
||||
"skipTests": {
|
||||
"type": "boolean",
|
||||
"description": "Do not create \"spec.ts\" test files for the new pipe.",
|
||||
"default": false
|
||||
},
|
||||
"skipImport": {
|
||||
"type": "boolean",
|
||||
"default": false,
|
||||
"description": "Do not import this pipe into the owning NgModule."
|
||||
},
|
||||
"standalone": {
|
||||
"description": "Whether the generated pipe is standalone.",
|
||||
"type": "boolean",
|
||||
"default": true,
|
||||
"x-user-analytics": "ep.ng_standalone"
|
||||
},
|
||||
"module": {
|
||||
"type": "string",
|
||||
"description": "The declaring NgModule.",
|
||||
"alias": "m"
|
||||
},
|
||||
"export": {
|
||||
"type": "boolean",
|
||||
"default": false,
|
||||
"description": "The declaring NgModule exports this pipe."
|
||||
}
|
||||
},
|
||||
"required": ["name", "project"]
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue