Updated the files.
This commit is contained in:
parent
1553e6b971
commit
753967d4f5
23418 changed files with 3784666 additions and 0 deletions
7
my-app/node_modules/@schematics/angular/class/files/__name@dasherize____type__.spec.ts.template
generated
vendored
Executable file
7
my-app/node_modules/@schematics/angular/class/files/__name@dasherize____type__.spec.ts.template
generated
vendored
Executable file
|
@ -0,0 +1,7 @@
|
|||
import { <%= classify(name) %> } from './<%= dasherize(name) %><%= type %>';
|
||||
|
||||
describe('<%= classify(name) %>', () => {
|
||||
it('should create an instance', () => {
|
||||
expect(new <%= classify(name) %>()).toBeTruthy();
|
||||
});
|
||||
});
|
2
my-app/node_modules/@schematics/angular/class/files/__name@dasherize____type__.ts.template
generated
vendored
Executable file
2
my-app/node_modules/@schematics/angular/class/files/__name@dasherize____type__.ts.template
generated
vendored
Executable file
|
@ -0,0 +1,2 @@
|
|||
export class <%= classify(name) %> {
|
||||
}
|
10
my-app/node_modules/@schematics/angular/class/index.d.ts
generated
vendored
Executable file
10
my-app/node_modules/@schematics/angular/class/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 ClassOptions } from './schema';
|
||||
export default function (options: ClassOptions): Rule;
|
15
my-app/node_modules/@schematics/angular/class/index.js
generated
vendored
Executable file
15
my-app/node_modules/@schematics/angular/class/index.js
generated
vendored
Executable file
|
@ -0,0 +1,15 @@
|
|||
"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 generate_from_files_1 = require("../utility/generate-from-files");
|
||||
function default_1(options) {
|
||||
options.type = options.type ? `.${options.type}` : '';
|
||||
return (0, generate_from_files_1.generateFromFiles)(options);
|
||||
}
|
||||
exports.default = default_1;
|
25
my-app/node_modules/@schematics/angular/class/schema.d.ts
generated
vendored
Executable file
25
my-app/node_modules/@schematics/angular/class/schema.d.ts
generated
vendored
Executable file
|
@ -0,0 +1,25 @@
|
|||
/**
|
||||
* Creates a new, generic class definition in the given project.
|
||||
*/
|
||||
export interface Schema {
|
||||
/**
|
||||
* The name of the new class.
|
||||
*/
|
||||
name: string;
|
||||
/**
|
||||
* The path at which to create the class, relative to the workspace root.
|
||||
*/
|
||||
path?: string;
|
||||
/**
|
||||
* The name of the project.
|
||||
*/
|
||||
project: string;
|
||||
/**
|
||||
* Do not create "spec.ts" test files for the new class.
|
||||
*/
|
||||
skipTests?: boolean;
|
||||
/**
|
||||
* Adds a developer-defined type to the filename, in the format "name.type.ts".
|
||||
*/
|
||||
type?: string;
|
||||
}
|
4
my-app/node_modules/@schematics/angular/class/schema.js
generated
vendored
Executable file
4
my-app/node_modules/@schematics/angular/class/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 });
|
45
my-app/node_modules/@schematics/angular/class/schema.json
generated
vendored
Executable file
45
my-app/node_modules/@schematics/angular/class/schema.json
generated
vendored
Executable file
|
@ -0,0 +1,45 @@
|
|||
{
|
||||
"$schema": "http://json-schema.org/draft-07/schema",
|
||||
"$id": "SchematicsAngularClass",
|
||||
"title": "Angular Class Options Schema",
|
||||
"type": "object",
|
||||
"description": "Creates a new, generic class definition in the given project.",
|
||||
"additionalProperties": false,
|
||||
"properties": {
|
||||
"name": {
|
||||
"type": "string",
|
||||
"description": "The name of the new class.",
|
||||
"$default": {
|
||||
"$source": "argv",
|
||||
"index": 0
|
||||
},
|
||||
"x-prompt": "What name would you like to use for the class?"
|
||||
},
|
||||
"path": {
|
||||
"type": "string",
|
||||
"format": "path",
|
||||
"$default": {
|
||||
"$source": "workingDirectory"
|
||||
},
|
||||
"description": "The path at which to create the class, relative to the workspace root.",
|
||||
"visible": false
|
||||
},
|
||||
"project": {
|
||||
"type": "string",
|
||||
"description": "The name of the project.",
|
||||
"$default": {
|
||||
"$source": "projectName"
|
||||
}
|
||||
},
|
||||
"skipTests": {
|
||||
"type": "boolean",
|
||||
"description": "Do not create \"spec.ts\" test files for the new class.",
|
||||
"default": false
|
||||
},
|
||||
"type": {
|
||||
"type": "string",
|
||||
"description": "Adds a developer-defined type to the filename, in the format \"name.type.ts\"."
|
||||
}
|
||||
},
|
||||
"required": ["name", "project"]
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue