├── .gitignore ├── angular-cli-workspace ├── projects │ └── some-app │ │ ├── src │ │ ├── assets │ │ │ └── .gitkeep │ │ ├── app │ │ │ ├── app.component.css │ │ │ ├── app.component.ts │ │ │ ├── app.module.ts │ │ │ ├── app.component.spec.ts │ │ │ └── app.component.html │ │ ├── styles.css │ │ ├── environments │ │ │ ├── environment.prod.ts │ │ │ └── environment.ts │ │ ├── favicon.ico │ │ ├── index.html │ │ ├── main.ts │ │ ├── test.ts │ │ └── polyfills.ts │ │ ├── tsconfig.app.json │ │ ├── e2e │ │ ├── tsconfig.json │ │ ├── src │ │ │ ├── app.po.ts │ │ │ └── app.e2e-spec.ts │ │ └── protractor.conf.js │ │ ├── tslint.json │ │ ├── tsconfig.spec.json │ │ ├── browserslist │ │ └── karma.conf.js ├── .editorconfig ├── tsconfig.json ├── .gitignore ├── README.md ├── package.json ├── tslint.json └── angular.json ├── 1_schematics_basics ├── hello_completed │ ├── src │ │ ├── hello │ │ │ ├── index_spec.d.ts │ │ │ ├── index.d.ts │ │ │ ├── index_spec.ts │ │ │ └── index.ts │ │ └── collection.json │ ├── .npmignore │ ├── .gitignore │ ├── package.json │ ├── tsconfig.json │ └── package-lock.json ├── hello │ ├── .npmignore │ ├── .gitignore │ ├── src │ │ ├── collection.json │ │ └── hello │ │ │ ├── index_spec.ts │ │ │ └── index.ts │ ├── package.json │ ├── tsconfig.json │ └── package-lock.json └── README.md ├── 2_schematics_options ├── hello │ ├── .npmignore │ ├── src │ │ ├── helpers │ │ │ ├── schema.json_property │ │ │ ├── schema.json_initial │ │ │ └── schema.json_advanced │ │ ├── collection.json │ │ └── hello │ │ │ ├── index_spec.ts │ │ │ └── index.ts │ ├── .gitignore │ ├── package.json │ ├── tsconfig.json │ └── package-lock.json ├── hello_completed │ ├── .npmignore │ ├── src │ │ ├── hello │ │ │ ├── schema.d.ts │ │ │ ├── index.ts │ │ │ ├── index_spec.ts │ │ │ └── schema.json │ │ └── collection.json │ ├── .gitignore │ ├── package.json │ ├── tsconfig.json │ └── package-lock.json └── README.md ├── 3_schematics_templates ├── hello │ ├── .npmignore │ ├── src │ │ ├── hello │ │ │ ├── schema.d.ts │ │ │ ├── index_spec.ts │ │ │ ├── schema.json │ │ │ └── index.ts │ │ ├── collection.json │ │ └── helpers │ │ │ └── hello-__name@dasherize__ │ │ │ └── hello-__name@dasherize__.component.ts_helper │ ├── .gitignore │ ├── package.json │ ├── tsconfig.json │ └── package-lock.json ├── hello_completed │ ├── .npmignore │ ├── .gitignore │ ├── src │ │ ├── collection.json │ │ └── hello │ │ │ ├── files │ │ │ └── hello-__name@dasherize__ │ │ │ │ └── hello-__name@dasherize__.component.ts │ │ │ ├── index_spec.ts │ │ │ ├── index.ts │ │ │ └── schema.json │ ├── package.json │ ├── tsconfig.json │ └── package-lock.json └── README.md ├── 4_schematics_angular_cli_integration ├── hello │ ├── .npmignore │ ├── src │ │ ├── hello │ │ │ ├── schema.d.ts │ │ │ ├── files │ │ │ │ └── hello-__name@dasherize__ │ │ │ │ │ └── hello-__name@dasherize__.component.ts │ │ │ ├── index_spec.ts │ │ │ ├── schema.json │ │ │ └── index.ts │ │ └── collection.json │ ├── .gitignore │ ├── package.json │ ├── tsconfig.json │ └── package-lock.json ├── hello_completed │ ├── .npmignore │ ├── .gitignore │ ├── src │ │ ├── collection.json │ │ └── hello │ │ │ ├── files │ │ │ └── hello-__name@dasherize__ │ │ │ │ └── hello-__name@dasherize__.component.ts │ │ │ ├── index_spec.ts │ │ │ ├── schema.json │ │ │ └── index.ts │ ├── package.json │ ├── tsconfig.json │ └── package-lock.json └── README.md └── README.md /.gitignore: -------------------------------------------------------------------------------- 1 | .idea/ 2 | node_modules/ 3 | -------------------------------------------------------------------------------- /angular-cli-workspace/projects/some-app/src/assets/.gitkeep: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /angular-cli-workspace/projects/some-app/src/app/app.component.css: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /1_schematics_basics/hello_completed/src/hello/index_spec.d.ts: -------------------------------------------------------------------------------- 1 | export {}; 2 | -------------------------------------------------------------------------------- /1_schematics_basics/hello/.npmignore: -------------------------------------------------------------------------------- 1 | # Ignores TypeScript files, but keeps definitions. 2 | *.ts 3 | !*.d.ts 4 | -------------------------------------------------------------------------------- /2_schematics_options/hello/.npmignore: -------------------------------------------------------------------------------- 1 | # Ignores TypeScript files, but keeps definitions. 2 | *.ts 3 | !*.d.ts 4 | -------------------------------------------------------------------------------- /3_schematics_templates/hello/.npmignore: -------------------------------------------------------------------------------- 1 | # Ignores TypeScript files, but keeps definitions. 2 | *.ts 3 | !*.d.ts 4 | -------------------------------------------------------------------------------- /1_schematics_basics/hello_completed/.npmignore: -------------------------------------------------------------------------------- 1 | # Ignores TypeScript files, but keeps definitions. 2 | *.ts 3 | !*.d.ts 4 | -------------------------------------------------------------------------------- /2_schematics_options/hello_completed/.npmignore: -------------------------------------------------------------------------------- 1 | # Ignores TypeScript files, but keeps definitions. 2 | *.ts 3 | !*.d.ts 4 | -------------------------------------------------------------------------------- /3_schematics_templates/hello_completed/.npmignore: -------------------------------------------------------------------------------- 1 | # Ignores TypeScript files, but keeps definitions. 2 | *.ts 3 | !*.d.ts 4 | -------------------------------------------------------------------------------- /4_schematics_angular_cli_integration/hello/.npmignore: -------------------------------------------------------------------------------- 1 | # Ignores TypeScript files, but keeps definitions. 2 | *.ts 3 | !*.d.ts 4 | -------------------------------------------------------------------------------- /angular-cli-workspace/projects/some-app/src/styles.css: -------------------------------------------------------------------------------- 1 | /* You can add global styles to this file, and also import other style files */ 2 | -------------------------------------------------------------------------------- /3_schematics_templates/hello/src/hello/schema.d.ts: -------------------------------------------------------------------------------- 1 | export interface Schema { 2 | name: string; 3 | greeting?: string; 4 | } 5 | -------------------------------------------------------------------------------- /4_schematics_angular_cli_integration/hello_completed/.npmignore: -------------------------------------------------------------------------------- 1 | # Ignores TypeScript files, but keeps definitions. 2 | *.ts 3 | !*.d.ts 4 | -------------------------------------------------------------------------------- /angular-cli-workspace/projects/some-app/src/environments/environment.prod.ts: -------------------------------------------------------------------------------- 1 | export const environment = { 2 | production: true 3 | }; 4 | -------------------------------------------------------------------------------- /2_schematics_options/hello_completed/src/hello/schema.d.ts: -------------------------------------------------------------------------------- 1 | export interface Schema { 2 | name: string; 3 | greeting: string; 4 | } 5 | -------------------------------------------------------------------------------- /4_schematics_angular_cli_integration/hello/src/hello/schema.d.ts: -------------------------------------------------------------------------------- 1 | export interface Schema { 2 | name: string; 3 | greeting?: string; 4 | } 5 | -------------------------------------------------------------------------------- /1_schematics_basics/hello_completed/src/hello/index.d.ts: -------------------------------------------------------------------------------- 1 | import { Rule } from '@angular-devkit/schematics'; 2 | export declare function hello(_options: any): Rule; 3 | -------------------------------------------------------------------------------- /angular-cli-workspace/projects/some-app/src/favicon.ico: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tomastrajan/workshop-angular-schematics/HEAD/angular-cli-workspace/projects/some-app/src/favicon.ico -------------------------------------------------------------------------------- /2_schematics_options/hello/src/helpers/schema.json_property: -------------------------------------------------------------------------------- 1 | { 2 | "name": { 3 | "type": "string", 4 | "description": "The name of the person we want to say hello to..." 5 | } 6 | } 7 | -------------------------------------------------------------------------------- /1_schematics_basics/hello/.gitignore: -------------------------------------------------------------------------------- 1 | # Outputs 2 | src/**/*.js 3 | src/**/*.js.map 4 | 5 | # IDEs 6 | .idea/ 7 | jsconfig.json 8 | .vscode/ 9 | 10 | # Misc 11 | node_modules/ 12 | npm-debug.log* 13 | yarn-error.log* 14 | 15 | # Mac OSX Finder files. 16 | **/.DS_Store 17 | .DS_Store 18 | -------------------------------------------------------------------------------- /1_schematics_basics/hello/src/collection.json: -------------------------------------------------------------------------------- 1 | { 2 | "$schema": "../node_modules/@angular-devkit/schematics/collection-schema.json", 3 | "schematics": { 4 | "hello": { 5 | "description": "A blank schematic.", 6 | "factory": "./hello/index#hello" 7 | } 8 | } 9 | } 10 | -------------------------------------------------------------------------------- /2_schematics_options/hello/src/collection.json: -------------------------------------------------------------------------------- 1 | { 2 | "$schema": "../node_modules/@angular-devkit/schematics/collection-schema.json", 3 | "schematics": { 4 | "hello": { 5 | "description": "A blank schematic.", 6 | "factory": "./hello/index#hello" 7 | } 8 | } 9 | } 10 | -------------------------------------------------------------------------------- /1_schematics_basics/hello_completed/.gitignore: -------------------------------------------------------------------------------- 1 | # Outputs 2 | src/**/*.js 3 | src/**/*.js.map 4 | 5 | # IDEs 6 | .idea/ 7 | jsconfig.json 8 | .vscode/ 9 | 10 | # Misc 11 | node_modules/ 12 | npm-debug.log* 13 | yarn-error.log* 14 | 15 | # Mac OSX Finder files. 16 | **/.DS_Store 17 | .DS_Store 18 | -------------------------------------------------------------------------------- /1_schematics_basics/hello_completed/src/collection.json: -------------------------------------------------------------------------------- 1 | { 2 | "$schema": "../node_modules/@angular-devkit/schematics/collection-schema.json", 3 | "schematics": { 4 | "hello": { 5 | "description": "A blank schematic.", 6 | "factory": "./hello/index#hello" 7 | } 8 | } 9 | } 10 | -------------------------------------------------------------------------------- /2_schematics_options/hello/.gitignore: -------------------------------------------------------------------------------- 1 | # Outputs 2 | src/**/*.js 3 | src/**/*.js.map 4 | src/**/*.d.ts 5 | 6 | # IDEs 7 | .idea/ 8 | jsconfig.json 9 | .vscode/ 10 | 11 | # Misc 12 | node_modules/ 13 | npm-debug.log* 14 | yarn-error.log* 15 | 16 | # Mac OSX Finder files. 17 | **/.DS_Store 18 | .DS_Store 19 | -------------------------------------------------------------------------------- /2_schematics_options/hello/src/helpers/schema.json_initial: -------------------------------------------------------------------------------- 1 | { 2 | "$schema": "http://json-schema.org/schema", 3 | "id": "HelloSchematics", 4 | "title": "Hello Options Schema", 5 | "type": "object", 6 | "description": "Say hello to someone", 7 | "properties": {}, 8 | "required": [] 9 | } 10 | -------------------------------------------------------------------------------- /3_schematics_templates/hello/.gitignore: -------------------------------------------------------------------------------- 1 | # Outputs 2 | src/**/*.js 3 | src/**/*.js.map 4 | src/**/*.d.ts 5 | 6 | # IDEs 7 | .idea/ 8 | jsconfig.json 9 | .vscode/ 10 | 11 | # Misc 12 | node_modules/ 13 | npm-debug.log* 14 | yarn-error.log* 15 | 16 | # Mac OSX Finder files. 17 | **/.DS_Store 18 | .DS_Store 19 | -------------------------------------------------------------------------------- /angular-cli-workspace/projects/some-app/src/app/app.component.ts: -------------------------------------------------------------------------------- 1 | import { Component } from '@angular/core'; 2 | 3 | @Component({ 4 | selector: 'app-root', 5 | templateUrl: './app.component.html', 6 | styleUrls: ['./app.component.css'] 7 | }) 8 | export class AppComponent { 9 | title = 'some-app'; 10 | } 11 | -------------------------------------------------------------------------------- /3_schematics_templates/hello_completed/.gitignore: -------------------------------------------------------------------------------- 1 | # Outputs 2 | src/**/*.js 3 | src/**/*.js.map 4 | src/**/*.d.ts 5 | 6 | # IDEs 7 | .idea/ 8 | jsconfig.json 9 | .vscode/ 10 | 11 | # Misc 12 | node_modules/ 13 | npm-debug.log* 14 | yarn-error.log* 15 | 16 | # Mac OSX Finder files. 17 | **/.DS_Store 18 | .DS_Store 19 | -------------------------------------------------------------------------------- /2_schematics_options/hello_completed/.gitignore: -------------------------------------------------------------------------------- 1 | # Outputs 2 | src/**/*.js 3 | src/**/*.js.map 4 | src/**/*.d.ts 5 | 6 | 7 | # IDEs 8 | .idea/ 9 | jsconfig.json 10 | .vscode/ 11 | 12 | # Misc 13 | node_modules/ 14 | npm-debug.log* 15 | yarn-error.log* 16 | 17 | # Mac OSX Finder files. 18 | **/.DS_Store 19 | .DS_Store 20 | -------------------------------------------------------------------------------- /4_schematics_angular_cli_integration/hello/.gitignore: -------------------------------------------------------------------------------- 1 | # Outputs 2 | src/**/*.js 3 | src/**/*.js.map 4 | src/**/*.d.ts 5 | 6 | # IDEs 7 | .idea/ 8 | jsconfig.json 9 | .vscode/ 10 | 11 | # Misc 12 | node_modules/ 13 | npm-debug.log* 14 | yarn-error.log* 15 | 16 | # Mac OSX Finder files. 17 | **/.DS_Store 18 | .DS_Store 19 | -------------------------------------------------------------------------------- /4_schematics_angular_cli_integration/hello_completed/.gitignore: -------------------------------------------------------------------------------- 1 | # Outputs 2 | src/**/*.js 3 | src/**/*.js.map 4 | src/**/*.d.ts 5 | 6 | # IDEs 7 | .idea/ 8 | jsconfig.json 9 | .vscode/ 10 | 11 | # Misc 12 | node_modules/ 13 | npm-debug.log* 14 | yarn-error.log* 15 | 16 | # Mac OSX Finder files. 17 | **/.DS_Store 18 | .DS_Store 19 | -------------------------------------------------------------------------------- /angular-cli-workspace/.editorconfig: -------------------------------------------------------------------------------- 1 | # Editor configuration, see https://editorconfig.org 2 | root = true 3 | 4 | [*] 5 | charset = utf-8 6 | indent_style = space 7 | indent_size = 2 8 | insert_final_newline = true 9 | trim_trailing_whitespace = true 10 | 11 | [*.md] 12 | max_line_length = off 13 | trim_trailing_whitespace = false 14 | -------------------------------------------------------------------------------- /angular-cli-workspace/projects/some-app/tsconfig.app.json: -------------------------------------------------------------------------------- 1 | { 2 | "extends": "../../tsconfig.json", 3 | "compilerOptions": { 4 | "outDir": "../../out-tsc/app", 5 | "types": [] 6 | }, 7 | "include": [ 8 | "src/**/*.ts" 9 | ], 10 | "exclude": [ 11 | "src/test.ts", 12 | "src/**/*.spec.ts" 13 | ] 14 | } 15 | -------------------------------------------------------------------------------- /3_schematics_templates/hello/src/collection.json: -------------------------------------------------------------------------------- 1 | { 2 | "$schema": "../node_modules/@angular-devkit/schematics/collection-schema.json", 3 | "schematics": { 4 | "hello": { 5 | "description": "A blank schematic.", 6 | "factory": "./hello/index#hello", 7 | "schema": "./hello/schema.json" 8 | } 9 | } 10 | } 11 | -------------------------------------------------------------------------------- /angular-cli-workspace/projects/some-app/e2e/tsconfig.json: -------------------------------------------------------------------------------- 1 | { 2 | "extends": "../../../tsconfig.json", 3 | "compilerOptions": { 4 | "outDir": "../../../out-tsc/e2e", 5 | "module": "commonjs", 6 | "target": "es5", 7 | "types": [ 8 | "jasmine", 9 | "jasminewd2", 10 | "node" 11 | ] 12 | } 13 | } 14 | -------------------------------------------------------------------------------- /2_schematics_options/hello_completed/src/collection.json: -------------------------------------------------------------------------------- 1 | { 2 | "$schema": "../node_modules/@angular-devkit/schematics/collection-schema.json", 3 | "schematics": { 4 | "hello": { 5 | "description": "A blank schematic.", 6 | "factory": "./hello/index#hello", 7 | "schema": "./hello/schema.json" 8 | } 9 | } 10 | } 11 | -------------------------------------------------------------------------------- /3_schematics_templates/hello_completed/src/collection.json: -------------------------------------------------------------------------------- 1 | { 2 | "$schema": "../node_modules/@angular-devkit/schematics/collection-schema.json", 3 | "schematics": { 4 | "hello": { 5 | "description": "A blank schematic.", 6 | "factory": "./hello/index#hello", 7 | "schema": "./hello/schema.json" 8 | } 9 | } 10 | } 11 | -------------------------------------------------------------------------------- /4_schematics_angular_cli_integration/hello/src/collection.json: -------------------------------------------------------------------------------- 1 | { 2 | "$schema": "../node_modules/@angular-devkit/schematics/collection-schema.json", 3 | "schematics": { 4 | "hello": { 5 | "description": "A blank schematic.", 6 | "factory": "./hello/index#hello", 7 | "schema": "./hello/schema.json" 8 | } 9 | } 10 | } 11 | -------------------------------------------------------------------------------- /angular-cli-workspace/projects/some-app/e2e/src/app.po.ts: -------------------------------------------------------------------------------- 1 | import { browser, by, element } from 'protractor'; 2 | 3 | export class AppPage { 4 | navigateTo() { 5 | return browser.get(browser.baseUrl) as Promise; 6 | } 7 | 8 | getTitleText() { 9 | return element(by.css('app-root h1')).getText() as Promise; 10 | } 11 | } 12 | -------------------------------------------------------------------------------- /4_schematics_angular_cli_integration/hello_completed/src/collection.json: -------------------------------------------------------------------------------- 1 | { 2 | "$schema": "../node_modules/@angular-devkit/schematics/collection-schema.json", 3 | "schematics": { 4 | "hello": { 5 | "description": "A blank schematic.", 6 | "factory": "./hello/index#hello", 7 | "schema": "./hello/schema.json" 8 | } 9 | } 10 | } 11 | -------------------------------------------------------------------------------- /angular-cli-workspace/projects/some-app/tslint.json: -------------------------------------------------------------------------------- 1 | { 2 | "extends": "../../tslint.json", 3 | "rules": { 4 | "directive-selector": [ 5 | true, 6 | "attribute", 7 | "app", 8 | "camelCase" 9 | ], 10 | "component-selector": [ 11 | true, 12 | "element", 13 | "app", 14 | "kebab-case" 15 | ] 16 | } 17 | } 18 | -------------------------------------------------------------------------------- /3_schematics_templates/hello/src/helpers/hello-__name@dasherize__/hello-__name@dasherize__.component.ts_helper: -------------------------------------------------------------------------------- 1 | import { Component } from '@angular/core'; 2 | 3 | @Component({ 4 | selector: 'hello-<%= dasherize(name) %>', 5 | template: `

<%= greeting %> {{name}}

` 6 | }) 7 | export class Hello<%= classify(name) %>Component { 8 | name = '<%= name %>' 9 | } 10 | -------------------------------------------------------------------------------- /4_schematics_angular_cli_integration/hello/src/hello/files/hello-__name@dasherize__/hello-__name@dasherize__.component.ts: -------------------------------------------------------------------------------- 1 | import { Component } from '@angular/core'; 2 | 3 | @Component({ 4 | selector: 'hello-<%= dasherize(name) %>', 5 | template: `

<%= greeting %> {{name}}

` 6 | }) 7 | export class Hello<%= classify(name) %>Component { 8 | name = '<%= name %>' 9 | } 10 | -------------------------------------------------------------------------------- /3_schematics_templates/hello_completed/src/hello/files/hello-__name@dasherize__/hello-__name@dasherize__.component.ts: -------------------------------------------------------------------------------- 1 | import { Component } from '@angular/core'; 2 | 3 | @Component({ 4 | selector: 'hello-<%= dasherize(name) %>', 5 | template: `

<%= greeting %> {{name}}

` 6 | }) 7 | export class Hello<%= classify(name) %>Component { 8 | name = '<%= addExclamation(name) %>' 9 | } 10 | -------------------------------------------------------------------------------- /4_schematics_angular_cli_integration/hello_completed/src/hello/files/hello-__name@dasherize__/hello-__name@dasherize__.component.ts: -------------------------------------------------------------------------------- 1 | import { Component } from '@angular/core'; 2 | 3 | @Component({ 4 | selector: 'hello-<%= dasherize(name) %>', 5 | template: `

<%= greeting %> {{name}}

` 6 | }) 7 | export class Hello<%= classify(name) %>Component { 8 | name = '<%= name %>' 9 | } 10 | -------------------------------------------------------------------------------- /angular-cli-workspace/projects/some-app/src/index.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | SomeApp 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | -------------------------------------------------------------------------------- /angular-cli-workspace/projects/some-app/tsconfig.spec.json: -------------------------------------------------------------------------------- 1 | { 2 | "extends": "../../tsconfig.json", 3 | "compilerOptions": { 4 | "outDir": "../../out-tsc/spec", 5 | "types": [ 6 | "jasmine", 7 | "node" 8 | ] 9 | }, 10 | "files": [ 11 | "src/test.ts", 12 | "src/polyfills.ts" 13 | ], 14 | "include": [ 15 | "src/**/*.spec.ts", 16 | "src/**/*.d.ts" 17 | ] 18 | } 19 | -------------------------------------------------------------------------------- /angular-cli-workspace/projects/some-app/src/app/app.module.ts: -------------------------------------------------------------------------------- 1 | import { BrowserModule } from '@angular/platform-browser'; 2 | import { NgModule } from '@angular/core'; 3 | 4 | import { AppComponent } from './app.component'; 5 | 6 | @NgModule({ 7 | declarations: [ 8 | AppComponent 9 | ], 10 | imports: [ 11 | BrowserModule 12 | ], 13 | providers: [], 14 | bootstrap: [AppComponent] 15 | }) 16 | export class AppModule { } 17 | -------------------------------------------------------------------------------- /angular-cli-workspace/projects/some-app/src/main.ts: -------------------------------------------------------------------------------- 1 | import { enableProdMode } from '@angular/core'; 2 | import { platformBrowserDynamic } from '@angular/platform-browser-dynamic'; 3 | 4 | import { AppModule } from './app/app.module'; 5 | import { environment } from './environments/environment'; 6 | 7 | if (environment.production) { 8 | enableProdMode(); 9 | } 10 | 11 | platformBrowserDynamic().bootstrapModule(AppModule) 12 | .catch(err => console.error(err)); 13 | -------------------------------------------------------------------------------- /angular-cli-workspace/projects/some-app/browserslist: -------------------------------------------------------------------------------- 1 | # This file is used by the build system to adjust CSS and JS output to support the specified browsers below. 2 | # For additional information regarding the format and rule options, please see: 3 | # https://github.com/browserslist/browserslist#queries 4 | 5 | # You can see what browsers were selected by your queries by running: 6 | # npx browserslist 7 | 8 | > 0.5% 9 | last 2 versions 10 | Firefox ESR 11 | not dead 12 | not IE 9-11 # For IE 9-11 support, remove 'not'. -------------------------------------------------------------------------------- /angular-cli-workspace/tsconfig.json: -------------------------------------------------------------------------------- 1 | { 2 | "compileOnSave": false, 3 | "compilerOptions": { 4 | "baseUrl": "./", 5 | "outDir": "./dist/out-tsc", 6 | "sourceMap": true, 7 | "declaration": false, 8 | "module": "esnext", 9 | "moduleResolution": "node", 10 | "emitDecoratorMetadata": true, 11 | "experimentalDecorators": true, 12 | "importHelpers": true, 13 | "target": "es2015", 14 | "typeRoots": [ 15 | "node_modules/@types" 16 | ], 17 | "lib": [ 18 | "es2018", 19 | "dom" 20 | ] 21 | } 22 | } 23 | -------------------------------------------------------------------------------- /2_schematics_options/hello/src/hello/index_spec.ts: -------------------------------------------------------------------------------- 1 | import { Tree } from '@angular-devkit/schematics'; 2 | import { SchematicTestRunner } from '@angular-devkit/schematics/testing'; 3 | import * as path from 'path'; 4 | 5 | 6 | const collectionPath = path.join(__dirname, '../collection.json'); 7 | 8 | 9 | describe('hello', () => { 10 | it('works', () => { 11 | const runner = new SchematicTestRunner('schematics', collectionPath); 12 | const tree = runner.runSchematic('hello', {}, Tree.empty()); 13 | 14 | expect(tree.files).toEqual([]); 15 | }); 16 | }); 17 | -------------------------------------------------------------------------------- /3_schematics_templates/hello/src/hello/index_spec.ts: -------------------------------------------------------------------------------- 1 | import { Tree } from '@angular-devkit/schematics'; 2 | import { SchematicTestRunner } from '@angular-devkit/schematics/testing'; 3 | import * as path from 'path'; 4 | 5 | 6 | const collectionPath = path.join(__dirname, '../collection.json'); 7 | 8 | 9 | describe('hello', () => { 10 | it('works', () => { 11 | const runner = new SchematicTestRunner('schematics', collectionPath); 12 | const tree = runner.runSchematic('hello', {}, Tree.empty()); 13 | 14 | expect(tree.files).toEqual([]); 15 | }); 16 | }); 17 | -------------------------------------------------------------------------------- /2_schematics_options/hello_completed/src/hello/index.ts: -------------------------------------------------------------------------------- 1 | import { Rule, SchematicContext, Tree } from '@angular-devkit/schematics'; 2 | 3 | import { Schema } from './schema'; 4 | 5 | export function hello(_options: Schema): Rule { 6 | 7 | return (tree: Tree, _context: SchematicContext) => { 8 | 9 | console.log('Running schematics with following options', _options); 10 | 11 | const name = _options.name; 12 | const greeting = _options.greeting; 13 | 14 | tree.create('hello.js', `console.log('${greeting} ${name}!');`); 15 | 16 | return tree; 17 | }; 18 | } 19 | -------------------------------------------------------------------------------- /2_schematics_options/hello_completed/src/hello/index_spec.ts: -------------------------------------------------------------------------------- 1 | import { Tree } from '@angular-devkit/schematics'; 2 | import { SchematicTestRunner } from '@angular-devkit/schematics/testing'; 3 | import * as path from 'path'; 4 | 5 | 6 | const collectionPath = path.join(__dirname, '../collection.json'); 7 | 8 | 9 | describe('hello', () => { 10 | it('works', () => { 11 | const runner = new SchematicTestRunner('schematics', collectionPath); 12 | const tree = runner.runSchematic('hello', {}, Tree.empty()); 13 | 14 | expect(tree.files).toEqual([]); 15 | }); 16 | }); 17 | -------------------------------------------------------------------------------- /3_schematics_templates/hello_completed/src/hello/index_spec.ts: -------------------------------------------------------------------------------- 1 | import { Tree } from '@angular-devkit/schematics'; 2 | import { SchematicTestRunner } from '@angular-devkit/schematics/testing'; 3 | import * as path from 'path'; 4 | 5 | 6 | const collectionPath = path.join(__dirname, '../collection.json'); 7 | 8 | 9 | describe('hello', () => { 10 | it('works', () => { 11 | const runner = new SchematicTestRunner('schematics', collectionPath); 12 | const tree = runner.runSchematic('hello', {}, Tree.empty()); 13 | 14 | expect(tree.files).toEqual([]); 15 | }); 16 | }); 17 | -------------------------------------------------------------------------------- /4_schematics_angular_cli_integration/hello/src/hello/index_spec.ts: -------------------------------------------------------------------------------- 1 | import { Tree } from '@angular-devkit/schematics'; 2 | import { SchematicTestRunner } from '@angular-devkit/schematics/testing'; 3 | import * as path from 'path'; 4 | 5 | 6 | const collectionPath = path.join(__dirname, '../collection.json'); 7 | 8 | 9 | describe('hello', () => { 10 | it('works', () => { 11 | const runner = new SchematicTestRunner('schematics', collectionPath); 12 | const tree = runner.runSchematic('hello', {}, Tree.empty()); 13 | 14 | expect(tree.files).toEqual([]); 15 | }); 16 | }); 17 | -------------------------------------------------------------------------------- /4_schematics_angular_cli_integration/hello_completed/src/hello/index_spec.ts: -------------------------------------------------------------------------------- 1 | import { Tree } from '@angular-devkit/schematics'; 2 | import { SchematicTestRunner } from '@angular-devkit/schematics/testing'; 3 | import * as path from 'path'; 4 | 5 | 6 | const collectionPath = path.join(__dirname, '../collection.json'); 7 | 8 | 9 | describe('hello', () => { 10 | it('works', () => { 11 | const runner = new SchematicTestRunner('schematics', collectionPath); 12 | const tree = runner.runSchematic('hello', {}, Tree.empty()); 13 | 14 | expect(tree.files).toEqual([]); 15 | }); 16 | }); 17 | -------------------------------------------------------------------------------- /2_schematics_options/hello/src/helpers/schema.json_advanced: -------------------------------------------------------------------------------- 1 | { 2 | "name": { 3 | "type": "string", 4 | "description": "The name of the person we want to say hello to...", 5 | "$default": { 6 | "$source": "argv", 7 | "index": 0 8 | }, 9 | "x-prompt": "What is the name of the person we want to greet?" 10 | }, 11 | "greeting": { 12 | "type": "string", 13 | "enum": ["Hello", "Ola", "Ahoj"], 14 | "default": "Hello", 15 | "x-prompt": "Whats the greeting we want to use?" 16 | } 17 | } 18 | -------------------------------------------------------------------------------- /1_schematics_basics/hello/package.json: -------------------------------------------------------------------------------- 1 | { 2 | "name": "hello", 3 | "version": "0.0.0", 4 | "description": "A blank schematics", 5 | "scripts": { 6 | "build": "tsc -p tsconfig.json", 7 | "test": "npm run build && jasmine src/**/*_spec.js" 8 | }, 9 | "keywords": [ 10 | "schematics" 11 | ], 12 | "author": "", 13 | "license": "MIT", 14 | "schematics": "./src/collection.json", 15 | "dependencies": { 16 | "@angular-devkit/core": "^8.0.2", 17 | "@angular-devkit/schematics": "^8.0.2", 18 | "@types/jasmine": "^3.3.9", 19 | "@types/node": "^8.0.31", 20 | "jasmine": "^3.3.1", 21 | "typescript": "~3.4.3" 22 | } 23 | } 24 | -------------------------------------------------------------------------------- /1_schematics_basics/hello_completed/package.json: -------------------------------------------------------------------------------- 1 | { 2 | "name": "hello", 3 | "version": "0.0.0", 4 | "description": "A blank schematics", 5 | "scripts": { 6 | "build": "tsc -p tsconfig.json", 7 | "test": "npm run build && jasmine src/**/*_spec.js" 8 | }, 9 | "keywords": [ 10 | "schematics" 11 | ], 12 | "author": "", 13 | "license": "MIT", 14 | "schematics": "./src/collection.json", 15 | "dependencies": { 16 | "@angular-devkit/core": "^8.0.2", 17 | "@angular-devkit/schematics": "^8.0.2", 18 | "@types/jasmine": "^3.3.9", 19 | "@types/node": "^8.0.31", 20 | "jasmine": "^3.3.1", 21 | "typescript": "~3.4.3" 22 | } 23 | } 24 | -------------------------------------------------------------------------------- /3_schematics_templates/hello/package.json: -------------------------------------------------------------------------------- 1 | { 2 | "name": "hello", 3 | "version": "0.0.0", 4 | "description": "A blank schematics", 5 | "scripts": { 6 | "build": "tsc -p tsconfig.json", 7 | "build:watch": "tsc -p tsconfig.json --watch", 8 | "test": "npm run build && jasmine src/**/*_spec.js" 9 | }, 10 | "keywords": [ 11 | "schematics" 12 | ], 13 | "author": "", 14 | "license": "MIT", 15 | "schematics": "./src/collection.json", 16 | "dependencies": { 17 | "@angular-devkit/core": "^8.0.2", 18 | "@angular-devkit/schematics": "^8.0.2", 19 | "@types/jasmine": "^3.3.9", 20 | "@types/node": "^8.0.31", 21 | "jasmine": "^3.3.1", 22 | "typescript": "~3.4.3" 23 | } 24 | } 25 | -------------------------------------------------------------------------------- /3_schematics_templates/hello_completed/package.json: -------------------------------------------------------------------------------- 1 | { 2 | "name": "hello", 3 | "version": "0.0.0", 4 | "description": "A blank schematics", 5 | "scripts": { 6 | "build": "tsc -p tsconfig.json", 7 | "build:watch": "tsc -p tsconfig.json --watch", 8 | "test": "npm run build && jasmine src/**/*_spec.js" 9 | }, 10 | "keywords": [ 11 | "schematics" 12 | ], 13 | "author": "", 14 | "license": "MIT", 15 | "schematics": "./src/collection.json", 16 | "dependencies": { 17 | "@angular-devkit/core": "^8.0.2", 18 | "@angular-devkit/schematics": "^8.0.2", 19 | "@types/jasmine": "^3.3.9", 20 | "@types/node": "^8.0.31", 21 | "jasmine": "^3.3.1", 22 | "typescript": "~3.4.3" 23 | } 24 | } 25 | -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- 1 | # Angular Schematics Workshop 2 | 3 | ## Exercises 4 | 5 | 1. [Schematics Basics](./1_schematics_basics/README.md) 6 | 2. [Schematics Options](./2_schematics_options/README.md) 7 | 3. [Schematics Templates](./3_schematics_templates/README.md) 8 | 9 | ## General Information 10 | 11 | 12 | #### Workflow 13 | The exercises will follow numbered TODO items. Feel free to remove already completed TODO items as you progress 14 | in your implementation to remove the file clutter. 15 | 16 | ## Useful commands 17 | 18 | 19 | * `schematics .:` - run schematics with `schematics-name` from the current project (`.`), 20 | the `:` is a separator between the schematics package and schematics name 21 | -------------------------------------------------------------------------------- /2_schematics_options/hello/package.json: -------------------------------------------------------------------------------- 1 | { 2 | "name": "hello", 3 | "version": "0.0.0", 4 | "description": "A blank schematics", 5 | "scripts": { 6 | "build": "tsc -p tsconfig.json", 7 | "build:watch": "tsc -p tsconfig.json --watch", 8 | "test": "npm run build && jasmine src/**/*_spec.js" 9 | }, 10 | "keywords": [ 11 | "schematics" 12 | ], 13 | "author": "", 14 | "license": "MIT", 15 | "schematics": "./src/collection.json", 16 | "dependencies": { 17 | "@angular-devkit/core": "^8.0.2", 18 | "@angular-devkit/schematics": "^8.0.2", 19 | "@schematics/angular": "^8.0.6", 20 | "@types/jasmine": "^3.3.9", 21 | "@types/node": "^8.0.31", 22 | "jasmine": "^3.3.1", 23 | "typescript": "~3.4.3" 24 | } 25 | } 26 | -------------------------------------------------------------------------------- /2_schematics_options/hello_completed/package.json: -------------------------------------------------------------------------------- 1 | { 2 | "name": "hello", 3 | "version": "0.0.0", 4 | "description": "A blank schematics", 5 | "scripts": { 6 | "build": "tsc -p tsconfig.json", 7 | "build:watch": "tsc -p tsconfig.json --watch", 8 | "test": "npm run build && jasmine src/**/*_spec.js" 9 | }, 10 | "keywords": [ 11 | "schematics" 12 | ], 13 | "author": "", 14 | "license": "MIT", 15 | "schematics": "./src/collection.json", 16 | "dependencies": { 17 | "@angular-devkit/core": "^8.0.2", 18 | "@angular-devkit/schematics": "^8.0.2", 19 | "@schematics/angular": "^8.0.6", 20 | "@types/jasmine": "^3.3.9", 21 | "@types/node": "^8.0.31", 22 | "jasmine": "^3.3.1", 23 | "typescript": "~3.4.3" 24 | } 25 | } 26 | -------------------------------------------------------------------------------- /angular-cli-workspace/projects/some-app/src/test.ts: -------------------------------------------------------------------------------- 1 | // This file is required by karma.conf.js and loads recursively all the .spec and framework files 2 | 3 | import 'zone.js/dist/zone-testing'; 4 | import { getTestBed } from '@angular/core/testing'; 5 | import { 6 | BrowserDynamicTestingModule, 7 | platformBrowserDynamicTesting 8 | } from '@angular/platform-browser-dynamic/testing'; 9 | 10 | declare const require: any; 11 | 12 | // First, initialize the Angular testing environment. 13 | getTestBed().initTestEnvironment( 14 | BrowserDynamicTestingModule, 15 | platformBrowserDynamicTesting() 16 | ); 17 | // Then we find all the tests. 18 | const context = require.context('./', true, /\.spec\.ts$/); 19 | // And load the modules. 20 | context.keys().map(context); 21 | -------------------------------------------------------------------------------- /4_schematics_angular_cli_integration/hello/package.json: -------------------------------------------------------------------------------- 1 | { 2 | "name": "hello", 3 | "version": "0.0.0", 4 | "description": "A blank schematics", 5 | "scripts": { 6 | "build": "tsc -p tsconfig.json", 7 | "build:watch": "tsc -p tsconfig.json --watch", 8 | "test": "npm run build && jasmine src/**/*_spec.js" 9 | }, 10 | "keywords": [ 11 | "schematics" 12 | ], 13 | "author": "", 14 | "license": "MIT", 15 | "schematics": "./src/collection.json", 16 | "dependencies": { 17 | "@angular-devkit/core": "^8.0.2", 18 | "@angular-devkit/schematics": "^8.0.2", 19 | "@schematics/angular": "^8.1.0", 20 | "@types/jasmine": "^3.3.9", 21 | "@types/node": "^8.0.31", 22 | "jasmine": "^3.3.1", 23 | "typescript": "~3.4.3" 24 | } 25 | } 26 | -------------------------------------------------------------------------------- /4_schematics_angular_cli_integration/hello_completed/package.json: -------------------------------------------------------------------------------- 1 | { 2 | "name": "hello", 3 | "version": "0.0.0", 4 | "description": "A blank schematics", 5 | "scripts": { 6 | "build": "tsc -p tsconfig.json", 7 | "build:watch": "tsc -p tsconfig.json --watch", 8 | "test": "npm run build && jasmine src/**/*_spec.js" 9 | }, 10 | "keywords": [ 11 | "schematics" 12 | ], 13 | "author": "", 14 | "license": "MIT", 15 | "schematics": "./src/collection.json", 16 | "dependencies": { 17 | "@angular-devkit/core": "^8.0.2", 18 | "@angular-devkit/schematics": "^8.0.2", 19 | "@schematics/angular": "^8.1.0", 20 | "@types/jasmine": "^3.3.9", 21 | "@types/node": "^8.0.31", 22 | "jasmine": "^3.3.1", 23 | "typescript": "~3.4.3" 24 | } 25 | } 26 | -------------------------------------------------------------------------------- /angular-cli-workspace/projects/some-app/e2e/src/app.e2e-spec.ts: -------------------------------------------------------------------------------- 1 | import { AppPage } from './app.po'; 2 | import { browser, logging } from 'protractor'; 3 | 4 | describe('workspace-project App', () => { 5 | let page: AppPage; 6 | 7 | beforeEach(() => { 8 | page = new AppPage(); 9 | }); 10 | 11 | it('should display welcome message', () => { 12 | page.navigateTo(); 13 | expect(page.getTitleText()).toEqual('Welcome to some-app!'); 14 | }); 15 | 16 | afterEach(async () => { 17 | // Assert that there are no errors emitted from the browser 18 | const logs = await browser.manage().logs().get(logging.Type.BROWSER); 19 | expect(logs).not.toContain(jasmine.objectContaining({ 20 | level: logging.Level.SEVERE, 21 | } as logging.Entry)); 22 | }); 23 | }); 24 | -------------------------------------------------------------------------------- /angular-cli-workspace/projects/some-app/src/environments/environment.ts: -------------------------------------------------------------------------------- 1 | // This file can be replaced during build by using the `fileReplacements` array. 2 | // `ng build --prod` replaces `environment.ts` with `environment.prod.ts`. 3 | // The list of file replacements can be found in `angular.json`. 4 | 5 | export const environment = { 6 | production: false 7 | }; 8 | 9 | /* 10 | * For easier debugging in development mode, you can import the following file 11 | * to ignore zone related error stack frames such as `zone.run`, `zoneDelegate.invokeTask`. 12 | * 13 | * This import should be commented out in production mode because it will have a negative impact 14 | * on performance if an error is thrown. 15 | */ 16 | // import 'zone.js/dist/zone-error'; // Included with Angular CLI. 17 | -------------------------------------------------------------------------------- /2_schematics_options/hello_completed/src/hello/schema.json: -------------------------------------------------------------------------------- 1 | { 2 | "$schema": "http://json-schema.org/schema", 3 | "id": "HelloSchematics", 4 | "title": "Hello Options Schema", 5 | "type": "object", 6 | "description": "Say hello to someone", 7 | "properties": { 8 | "name": { 9 | "type": "string", 10 | "description": "The name of the person we want to say hello to...", 11 | "$default": { 12 | "$source": "argv", 13 | "index": 0 14 | }, 15 | "x-prompt": "What is the name of the person we want to greet?" 16 | }, 17 | "greeting": { 18 | "type": "string", 19 | "enum": ["Hello", "Ola", "Ahoj"], 20 | "default": "Hello" 21 | } 22 | }, 23 | "required": [ 24 | "name" 25 | ] 26 | } 27 | -------------------------------------------------------------------------------- /1_schematics_basics/hello/tsconfig.json: -------------------------------------------------------------------------------- 1 | { 2 | "compilerOptions": { 3 | "baseUrl": "tsconfig", 4 | "lib": [ 5 | "es2018", 6 | "dom" 7 | ], 8 | "declaration": true, 9 | "module": "commonjs", 10 | "moduleResolution": "node", 11 | "noEmitOnError": true, 12 | "noFallthroughCasesInSwitch": true, 13 | "noImplicitAny": true, 14 | "noImplicitThis": true, 15 | "noUnusedParameters": true, 16 | "noUnusedLocals": true, 17 | "rootDir": "src/", 18 | "skipDefaultLibCheck": true, 19 | "skipLibCheck": true, 20 | "sourceMap": true, 21 | "strictNullChecks": true, 22 | "target": "es6", 23 | "types": [ 24 | "jasmine", 25 | "node" 26 | ] 27 | }, 28 | "include": [ 29 | "src/**/*" 30 | ], 31 | "exclude": [ 32 | "src/*/files/**/*" 33 | ] 34 | } 35 | -------------------------------------------------------------------------------- /2_schematics_options/hello/tsconfig.json: -------------------------------------------------------------------------------- 1 | { 2 | "compilerOptions": { 3 | "baseUrl": "tsconfig", 4 | "lib": [ 5 | "es2018", 6 | "dom" 7 | ], 8 | "declaration": true, 9 | "module": "commonjs", 10 | "moduleResolution": "node", 11 | "noEmitOnError": true, 12 | "noFallthroughCasesInSwitch": true, 13 | "noImplicitAny": true, 14 | "noImplicitThis": true, 15 | "noUnusedParameters": true, 16 | "noUnusedLocals": true, 17 | "rootDir": "src/", 18 | "skipDefaultLibCheck": true, 19 | "skipLibCheck": true, 20 | "sourceMap": true, 21 | "strictNullChecks": true, 22 | "target": "es6", 23 | "types": [ 24 | "jasmine", 25 | "node" 26 | ] 27 | }, 28 | "include": [ 29 | "src/**/*" 30 | ], 31 | "exclude": [ 32 | "src/*/files/**/*" 33 | ] 34 | } 35 | -------------------------------------------------------------------------------- /3_schematics_templates/hello_completed/src/hello/index.ts: -------------------------------------------------------------------------------- 1 | import { apply, mergeWith, Rule, SchematicContext, template, Tree, url } from '@angular-devkit/schematics'; 2 | import { strings } from '@angular-devkit/core'; 3 | 4 | import { Schema as HelloOptions } from './schema'; 5 | 6 | export function hello(_options: HelloOptions): Rule { 7 | 8 | return (tree: Tree, _context: SchematicContext) => { 9 | 10 | console.log('Running schematics with following options', _options); 11 | 12 | const sourceTpl = url('./files'); 13 | const sourceTplParametrized = apply(sourceTpl, [template({ ..._options, ...strings, addExclamation })]); 14 | 15 | 16 | return mergeWith(sourceTplParametrized)(tree, _context); 17 | }; 18 | 19 | } 20 | 21 | export function addExclamation(value: string): string { 22 | return `${value}!`; 23 | } 24 | -------------------------------------------------------------------------------- /3_schematics_templates/hello/tsconfig.json: -------------------------------------------------------------------------------- 1 | { 2 | "compilerOptions": { 3 | "baseUrl": "tsconfig", 4 | "lib": [ 5 | "es2018", 6 | "dom" 7 | ], 8 | "declaration": true, 9 | "module": "commonjs", 10 | "moduleResolution": "node", 11 | "noEmitOnError": true, 12 | "noFallthroughCasesInSwitch": true, 13 | "noImplicitAny": true, 14 | "noImplicitThis": true, 15 | "noUnusedParameters": true, 16 | "noUnusedLocals": true, 17 | "rootDir": "src/", 18 | "skipDefaultLibCheck": true, 19 | "skipLibCheck": true, 20 | "sourceMap": true, 21 | "strictNullChecks": true, 22 | "target": "es6", 23 | "types": [ 24 | "jasmine", 25 | "node" 26 | ] 27 | }, 28 | "include": [ 29 | "src/**/*" 30 | ], 31 | "exclude": [ 32 | "src/*/files/**/*" 33 | ] 34 | } 35 | -------------------------------------------------------------------------------- /1_schematics_basics/hello_completed/tsconfig.json: -------------------------------------------------------------------------------- 1 | { 2 | "compilerOptions": { 3 | "baseUrl": "tsconfig", 4 | "lib": [ 5 | "es2018", 6 | "dom" 7 | ], 8 | "declaration": true, 9 | "module": "commonjs", 10 | "moduleResolution": "node", 11 | "noEmitOnError": true, 12 | "noFallthroughCasesInSwitch": true, 13 | "noImplicitAny": true, 14 | "noImplicitThis": true, 15 | "noUnusedParameters": true, 16 | "noUnusedLocals": true, 17 | "rootDir": "src/", 18 | "skipDefaultLibCheck": true, 19 | "skipLibCheck": true, 20 | "sourceMap": true, 21 | "strictNullChecks": true, 22 | "target": "es6", 23 | "types": [ 24 | "jasmine", 25 | "node" 26 | ] 27 | }, 28 | "include": [ 29 | "src/**/*" 30 | ], 31 | "exclude": [ 32 | "src/*/files/**/*" 33 | ] 34 | } 35 | -------------------------------------------------------------------------------- /2_schematics_options/hello_completed/tsconfig.json: -------------------------------------------------------------------------------- 1 | { 2 | "compilerOptions": { 3 | "baseUrl": "tsconfig", 4 | "lib": [ 5 | "es2018", 6 | "dom" 7 | ], 8 | "declaration": true, 9 | "module": "commonjs", 10 | "moduleResolution": "node", 11 | "noEmitOnError": true, 12 | "noFallthroughCasesInSwitch": true, 13 | "noImplicitAny": true, 14 | "noImplicitThis": true, 15 | "noUnusedParameters": true, 16 | "noUnusedLocals": true, 17 | "rootDir": "src/", 18 | "skipDefaultLibCheck": true, 19 | "skipLibCheck": true, 20 | "sourceMap": true, 21 | "strictNullChecks": true, 22 | "target": "es6", 23 | "types": [ 24 | "jasmine", 25 | "node" 26 | ] 27 | }, 28 | "include": [ 29 | "src/**/*" 30 | ], 31 | "exclude": [ 32 | "src/*/files/**/*" 33 | ] 34 | } 35 | -------------------------------------------------------------------------------- /3_schematics_templates/hello/src/hello/schema.json: -------------------------------------------------------------------------------- 1 | { 2 | "$schema": "http://json-schema.org/schema", 3 | "id": "HelloSchematics", 4 | "title": "Hello Options Schema", 5 | "type": "object", 6 | "description": "Say hello to someone", 7 | "properties": { 8 | "name": { 9 | "type": "string", 10 | "description": "The name of the person we want to say hello to...", 11 | "$default": { 12 | "$source": "argv", 13 | "index": 0 14 | }, 15 | "x-prompt": "What is the name of the person we want to greet?" 16 | }, 17 | "greeting": { 18 | "enum": ["Hello", "Ola", "Ahoj"], 19 | "type": "string", 20 | "description": "The type of greeting we want to use", 21 | "default": "Hello" 22 | } 23 | }, 24 | "required": [ 25 | "name" 26 | ] 27 | } 28 | -------------------------------------------------------------------------------- /3_schematics_templates/hello_completed/tsconfig.json: -------------------------------------------------------------------------------- 1 | { 2 | "compilerOptions": { 3 | "baseUrl": "tsconfig", 4 | "lib": [ 5 | "es2018", 6 | "dom" 7 | ], 8 | "declaration": true, 9 | "module": "commonjs", 10 | "moduleResolution": "node", 11 | "noEmitOnError": true, 12 | "noFallthroughCasesInSwitch": true, 13 | "noImplicitAny": true, 14 | "noImplicitThis": true, 15 | "noUnusedParameters": true, 16 | "noUnusedLocals": true, 17 | "rootDir": "src/", 18 | "skipDefaultLibCheck": true, 19 | "skipLibCheck": true, 20 | "sourceMap": true, 21 | "strictNullChecks": true, 22 | "target": "es6", 23 | "types": [ 24 | "jasmine", 25 | "node" 26 | ] 27 | }, 28 | "include": [ 29 | "src/**/*" 30 | ], 31 | "exclude": [ 32 | "src/*/files/**/*" 33 | ] 34 | } 35 | -------------------------------------------------------------------------------- /4_schematics_angular_cli_integration/hello/tsconfig.json: -------------------------------------------------------------------------------- 1 | { 2 | "compilerOptions": { 3 | "baseUrl": "tsconfig", 4 | "lib": [ 5 | "es2018", 6 | "dom" 7 | ], 8 | "declaration": true, 9 | "module": "commonjs", 10 | "moduleResolution": "node", 11 | "noEmitOnError": true, 12 | "noFallthroughCasesInSwitch": true, 13 | "noImplicitAny": true, 14 | "noImplicitThis": true, 15 | "noUnusedParameters": true, 16 | "noUnusedLocals": true, 17 | "rootDir": "src/", 18 | "skipDefaultLibCheck": true, 19 | "skipLibCheck": true, 20 | "sourceMap": true, 21 | "strictNullChecks": true, 22 | "target": "es6", 23 | "types": [ 24 | "jasmine", 25 | "node" 26 | ] 27 | }, 28 | "include": [ 29 | "src/**/*" 30 | ], 31 | "exclude": [ 32 | "src/*/files/**/*" 33 | ] 34 | } 35 | -------------------------------------------------------------------------------- /1_schematics_basics/hello/src/hello/index_spec.ts: -------------------------------------------------------------------------------- 1 | import { Tree } from '@angular-devkit/schematics'; 2 | import { SchematicTestRunner } from '@angular-devkit/schematics/testing'; 3 | import * as path from 'path'; 4 | 5 | 6 | const collectionPath = path.join(__dirname, '../collection.json'); 7 | 8 | 9 | describe('hello', () => { 10 | 11 | // TODO testing 1. use async arrow function 12 | it('works', () => { 13 | 14 | const runner = new SchematicTestRunner('schematics', collectionPath); 15 | 16 | // TODO testing 2. use runSchematicsAsync ( don't forget to await the result tree and cast it toPromise() ) 17 | const tree = runner.runSchematic('hello', {}, Tree.empty()); 18 | 19 | // TODO testing 3. adjust assertion to pass the test 20 | expect(tree.files).toEqual([]); 21 | 22 | 23 | // TODO testing 4. run tests 24 | }); 25 | }); 26 | -------------------------------------------------------------------------------- /3_schematics_templates/hello_completed/src/hello/schema.json: -------------------------------------------------------------------------------- 1 | { 2 | "$schema": "http://json-schema.org/schema", 3 | "id": "HelloSchematics", 4 | "title": "Hello Options Schema", 5 | "type": "object", 6 | "description": "Say hello to someone", 7 | "properties": { 8 | "name": { 9 | "type": "string", 10 | "description": "The name of the person we want to say hello to...", 11 | "$default": { 12 | "$source": "argv", 13 | "index": 0 14 | }, 15 | "x-prompt": "What is the name of the person we want to greet?" 16 | }, 17 | "greeting": { 18 | "enum": ["Hello", "Ola", "Ahoj"], 19 | "type": "string", 20 | "description": "The type of greeting we want to use", 21 | "default": "Hello" 22 | } 23 | }, 24 | "required": [ 25 | "name" 26 | ] 27 | } 28 | -------------------------------------------------------------------------------- /4_schematics_angular_cli_integration/hello/src/hello/schema.json: -------------------------------------------------------------------------------- 1 | { 2 | "$schema": "http://json-schema.org/schema", 3 | "id": "HelloSchematics", 4 | "title": "Hello Options Schema", 5 | "type": "object", 6 | "description": "Say hello to someone", 7 | "properties": { 8 | "name": { 9 | "type": "string", 10 | "description": "The name of the person we want to say hello to...", 11 | "$default": { 12 | "$source": "argv", 13 | "index": 0 14 | }, 15 | "x-prompt": "What is the name of the person we want to greet?" 16 | }, 17 | "greeting": { 18 | "enum": ["Hello", "Ola", "Ahoj"], 19 | "type": "string", 20 | "description": "The type of greeting we want to use", 21 | "default": "Hello" 22 | } 23 | }, 24 | "required": [ 25 | "name" 26 | ] 27 | } 28 | -------------------------------------------------------------------------------- /4_schematics_angular_cli_integration/hello_completed/tsconfig.json: -------------------------------------------------------------------------------- 1 | { 2 | "compilerOptions": { 3 | "baseUrl": "tsconfig", 4 | "lib": [ 5 | "es2018", 6 | "dom" 7 | ], 8 | "declaration": true, 9 | "module": "commonjs", 10 | "moduleResolution": "node", 11 | "noEmitOnError": true, 12 | "noFallthroughCasesInSwitch": true, 13 | "noImplicitAny": true, 14 | "noImplicitThis": true, 15 | "noUnusedParameters": true, 16 | "noUnusedLocals": true, 17 | "rootDir": "src/", 18 | "skipDefaultLibCheck": true, 19 | "skipLibCheck": true, 20 | "sourceMap": true, 21 | "strictNullChecks": true, 22 | "target": "es6", 23 | "types": [ 24 | "jasmine", 25 | "node" 26 | ] 27 | }, 28 | "include": [ 29 | "src/**/*" 30 | ], 31 | "exclude": [ 32 | "src/*/files/**/*" 33 | ] 34 | } 35 | -------------------------------------------------------------------------------- /angular-cli-workspace/.gitignore: -------------------------------------------------------------------------------- 1 | # See http://help.github.com/ignore-files/ for more about ignoring files. 2 | 3 | # compiled output 4 | /dist 5 | /tmp 6 | /out-tsc 7 | # Only exists if Bazel was run 8 | /bazel-out 9 | 10 | # dependencies 11 | /node_modules 12 | 13 | # profiling files 14 | chrome-profiler-events.json 15 | speed-measure-plugin.json 16 | 17 | # IDEs and editors 18 | /.idea 19 | .project 20 | .classpath 21 | .c9/ 22 | *.launch 23 | .settings/ 24 | *.sublime-workspace 25 | 26 | # IDE - VSCode 27 | .vscode/* 28 | !.vscode/settings.json 29 | !.vscode/tasks.json 30 | !.vscode/launch.json 31 | !.vscode/extensions.json 32 | .history/* 33 | 34 | # misc 35 | /.sass-cache 36 | /connect.lock 37 | /coverage 38 | /libpeerconnection.log 39 | npm-debug.log 40 | yarn-error.log 41 | testem.log 42 | /typings 43 | 44 | # System Files 45 | .DS_Store 46 | Thumbs.db 47 | -------------------------------------------------------------------------------- /1_schematics_basics/hello_completed/src/hello/index_spec.ts: -------------------------------------------------------------------------------- 1 | import { Tree } from '@angular-devkit/schematics'; 2 | import { SchematicTestRunner } from '@angular-devkit/schematics/testing'; 3 | import * as path from 'path'; 4 | 5 | 6 | const collectionPath = path.join(__dirname, '../collection.json'); 7 | 8 | 9 | describe('hello', () => { 10 | 11 | // TODO testing 1. use async arrow function 12 | it('works', () => { 13 | 14 | const runner = new SchematicTestRunner('schematics', collectionPath); 15 | 16 | // TODO testing 2. use runSchematicsAsync ( don't forget to await the result tree and cast it toPromise() ) 17 | const tree = runner.runSchematic('hello', {}, Tree.empty()); 18 | 19 | // TODO testing 3. adjust assertion to pass the test 20 | expect(tree.files).toEqual([]); 21 | 22 | 23 | // TODO testing 4. run tests 24 | }); 25 | }); 26 | -------------------------------------------------------------------------------- /1_schematics_basics/hello/src/hello/index.ts: -------------------------------------------------------------------------------- 1 | import { Rule, SchematicContext, Tree } from '@angular-devkit/schematics'; 2 | 3 | 4 | // You don't have to export the function as default. You can also have more than one rule factory 5 | // per file. 6 | export function hello(_options: any): Rule { 7 | 8 | return (tree: Tree, _context: SchematicContext) => { 9 | 10 | // TODO 1. create variable for desired file name (eg hello.js) 11 | 12 | // TODO 2. create variable with the content of the created file (try using javascript template strings) 13 | 14 | // TODO 3. create file in the tree using the pre-created variables 15 | 16 | // TODO 4. build and run schematics to create file (mind --dry-run because of the dev mode) 17 | 18 | // TODO 5. run created file using node 19 | 20 | return tree; 21 | 22 | // TODO 6. try to re-run schematics ( explore --force flag ) 23 | }; 24 | 25 | } 26 | -------------------------------------------------------------------------------- /1_schematics_basics/README.md: -------------------------------------------------------------------------------- 1 | # Angular Schematics Basics 2 | 3 | # Hints 4 | 5 | * every exercise is described step by step inside of the `./hello/src/hello.index.ts` file in form of the TODO comments 6 | 7 | * don't forget to run `npm run build` (or run `npm run build:watch` in other console) in the base `./hello` folder so 8 | that you compile your Typescript source code into javascript which can be executed using `schematics` command 9 | 10 | * always rememeber to running `schematics` command with the `--dry-run=false` flag to actualy perform changes to 11 | the file system because by default Angular Schematics run in dry run mode when executing schematics collection using 12 | relative path (for example `.:` for a local folder, or `../path/to/collection.json:` ) 13 | 14 | * always remember to delete generated file before running schematics again as we can't use `--force` flag before 15 | we use proper Angular Schematics templates 16 | -------------------------------------------------------------------------------- /2_schematics_options/README.md: -------------------------------------------------------------------------------- 1 | # Angular Schematics Options 2 | 3 | # Hints 4 | 5 | * every exercise is described step by step inside of the `./hello/src/hello.index.ts` file in form of the TODO comments 6 | 7 | * don't forget to run `npm run build` (or run `npm run build:watch` in other console) in the base `./hello` folder so 8 | that you compile your Typescript source code into javascript which can be executed using `schematics` command 9 | 10 | * always rememeber to running `schematics` command with the `--dry-run=false` flag to actualy perform changes to 11 | the file system because by default Angular Schematics run in dry run mode when executing schematics collection using 12 | relative path (for example `.:` for a local folder, or `../path/to/collection.json:` ) 13 | 14 | * always remember to delete generated file before running schematics again as we can't use `--force` flag before 15 | we use proper Angular Schematics templates 16 | -------------------------------------------------------------------------------- /angular-cli-workspace/projects/some-app/e2e/protractor.conf.js: -------------------------------------------------------------------------------- 1 | // @ts-check 2 | // Protractor configuration file, see link for more information 3 | // https://github.com/angular/protractor/blob/master/lib/config.ts 4 | 5 | const { SpecReporter } = require('jasmine-spec-reporter'); 6 | 7 | /** 8 | * @type { import("protractor").Config } 9 | */ 10 | exports.config = { 11 | allScriptsTimeout: 11000, 12 | specs: [ 13 | './src/**/*.e2e-spec.ts' 14 | ], 15 | capabilities: { 16 | 'browserName': 'chrome' 17 | }, 18 | directConnect: true, 19 | baseUrl: 'http://localhost:4200/', 20 | framework: 'jasmine', 21 | jasmineNodeOpts: { 22 | showColors: true, 23 | defaultTimeoutInterval: 30000, 24 | print: function() {} 25 | }, 26 | onPrepare() { 27 | require('ts-node').register({ 28 | project: require('path').join(__dirname, './tsconfig.json') 29 | }); 30 | jasmine.getEnv().addReporter(new SpecReporter({ spec: { displayStacktrace: true } })); 31 | } 32 | }; -------------------------------------------------------------------------------- /4_schematics_angular_cli_integration/hello_completed/src/hello/schema.json: -------------------------------------------------------------------------------- 1 | { 2 | "$schema": "http://json-schema.org/schema", 3 | "id": "HelloSchematics", 4 | "title": "Hello Options Schema", 5 | "type": "object", 6 | "description": "Say hello to someone", 7 | "properties": { 8 | "name": { 9 | "type": "string", 10 | "description": "The name of the person we want to say hello to...", 11 | "$default": { 12 | "$source": "argv", 13 | "index": 0 14 | }, 15 | "x-prompt": "What is the name of the person we want to greet?" 16 | }, 17 | "greeting": { 18 | "enum": ["Hello", "Ola", "Ahoj"], 19 | "type": "string", 20 | "description": "The type of greeting we want to use", 21 | "default": "Hello" 22 | }, 23 | "project": { 24 | "type": "string", 25 | "description": "The project in which we want to generate our component" 26 | } 27 | }, 28 | "required": [ 29 | "name" 30 | ] 31 | } 32 | -------------------------------------------------------------------------------- /1_schematics_basics/hello_completed/src/hello/index.ts: -------------------------------------------------------------------------------- 1 | import { Rule, SchematicContext, Tree } from '@angular-devkit/schematics'; 2 | 3 | 4 | // You don't have to export the function as default. You can also have more than one rule factory 5 | // per file. 6 | export function hello(_options: any): Rule { 7 | 8 | return (tree: Tree, _context: SchematicContext) => { 9 | 10 | const fileName = 'hello.js'; 11 | const fileContent = `console.log('Hello NG-MY!')`; 12 | 13 | tree.create(fileName, fileContent); 14 | 15 | 16 | // run ... 17 | // 1. npm run build 18 | // 2. schematics .:hello --dry-run=false 19 | // 3. node hello.js 20 | // you should see "Hello NG-MY!" in your console 21 | 22 | return tree; 23 | 24 | // if you try running "schematics .:hello --dry-run=false" again 25 | // it will fail because the hello.js file already exists 26 | // you can try to use --force flag ( schematics .:hello --dry-run=false --force ) 27 | // but this doesn't work with tree.create only later when we will use proper templates 28 | // for now we have to delete hello.js file manually 29 | }; 30 | 31 | } 32 | -------------------------------------------------------------------------------- /angular-cli-workspace/README.md: -------------------------------------------------------------------------------- 1 | # AngularCliWorkspace 2 | 3 | This project was generated with [Angular CLI](https://github.com/angular/angular-cli) version 8.0.2. 4 | 5 | ## Development server 6 | 7 | Run `ng serve` for a dev server. Navigate to `http://localhost:4200/`. The app will automatically reload if you change any of the source files. 8 | 9 | ## Code scaffolding 10 | 11 | Run `ng generate component component-name` to generate a new component. You can also use `ng generate directive|pipe|service|class|guard|interface|enum|module`. 12 | 13 | ## Build 14 | 15 | Run `ng build` to build the project. The build artifacts will be stored in the `dist/` directory. Use the `--prod` flag for a production build. 16 | 17 | ## Running unit tests 18 | 19 | Run `ng test` to execute the unit tests via [Karma](https://karma-runner.github.io). 20 | 21 | ## Running end-to-end tests 22 | 23 | Run `ng e2e` to execute the end-to-end tests via [Protractor](http://www.protractortest.org/). 24 | 25 | ## Further help 26 | 27 | To get more help on the Angular CLI use `ng help` or go check out the [Angular CLI README](https://github.com/angular/angular-cli/blob/master/README.md). 28 | -------------------------------------------------------------------------------- /angular-cli-workspace/projects/some-app/src/app/app.component.spec.ts: -------------------------------------------------------------------------------- 1 | import { TestBed, async } from '@angular/core/testing'; 2 | import { AppComponent } from './app.component'; 3 | 4 | describe('AppComponent', () => { 5 | beforeEach(async(() => { 6 | TestBed.configureTestingModule({ 7 | declarations: [ 8 | AppComponent 9 | ], 10 | }).compileComponents(); 11 | })); 12 | 13 | it('should create the app', () => { 14 | const fixture = TestBed.createComponent(AppComponent); 15 | const app = fixture.debugElement.componentInstance; 16 | expect(app).toBeTruthy(); 17 | }); 18 | 19 | it(`should have as title 'some-app'`, () => { 20 | const fixture = TestBed.createComponent(AppComponent); 21 | const app = fixture.debugElement.componentInstance; 22 | expect(app.title).toEqual('some-app'); 23 | }); 24 | 25 | it('should render title in a h1 tag', () => { 26 | const fixture = TestBed.createComponent(AppComponent); 27 | fixture.detectChanges(); 28 | const compiled = fixture.debugElement.nativeElement; 29 | expect(compiled.querySelector('h1').textContent).toContain('Welcome to some-app!'); 30 | }); 31 | }); 32 | -------------------------------------------------------------------------------- /angular-cli-workspace/projects/some-app/karma.conf.js: -------------------------------------------------------------------------------- 1 | // Karma configuration file, see link for more information 2 | // https://karma-runner.github.io/1.0/config/configuration-file.html 3 | 4 | module.exports = function (config) { 5 | config.set({ 6 | basePath: '', 7 | frameworks: ['jasmine', '@angular-devkit/build-angular'], 8 | plugins: [ 9 | require('karma-jasmine'), 10 | require('karma-chrome-launcher'), 11 | require('karma-jasmine-html-reporter'), 12 | require('karma-coverage-istanbul-reporter'), 13 | require('@angular-devkit/build-angular/plugins/karma') 14 | ], 15 | client: { 16 | clearContext: false // leave Jasmine Spec Runner output visible in browser 17 | }, 18 | coverageIstanbulReporter: { 19 | dir: require('path').join(__dirname, '../../coverage/some-app'), 20 | reports: ['html', 'lcovonly', 'text-summary'], 21 | fixWebpackSourcePaths: true 22 | }, 23 | reporters: ['progress', 'kjhtml'], 24 | port: 9876, 25 | colors: true, 26 | logLevel: config.LOG_INFO, 27 | autoWatch: true, 28 | browsers: ['Chrome'], 29 | singleRun: false, 30 | restartOnFileChange: true 31 | }); 32 | }; 33 | -------------------------------------------------------------------------------- /angular-cli-workspace/projects/some-app/src/app/app.component.html: -------------------------------------------------------------------------------- 1 | 2 |
3 |

4 | Welcome to {{ title }}! 5 |

6 | Angular Logo 7 |
8 |

Here are some links to help you start:

9 | 20 | 21 | -------------------------------------------------------------------------------- /angular-cli-workspace/package.json: -------------------------------------------------------------------------------- 1 | { 2 | "name": "angular-cli-workspace", 3 | "version": "0.0.0", 4 | "scripts": { 5 | "ng": "ng", 6 | "start": "ng serve", 7 | "build": "ng build", 8 | "test": "ng test", 9 | "lint": "ng lint", 10 | "e2e": "ng e2e" 11 | }, 12 | "private": true, 13 | "dependencies": { 14 | "@angular/animations": "~8.0.0", 15 | "@angular/common": "~8.0.0", 16 | "@angular/compiler": "~8.0.0", 17 | "@angular/core": "~8.0.0", 18 | "@angular/forms": "~8.0.0", 19 | "@angular/platform-browser": "~8.0.0", 20 | "@angular/platform-browser-dynamic": "~8.0.0", 21 | "@angular/router": "~8.0.0", 22 | "rxjs": "~6.4.0", 23 | "tslib": "^1.9.0", 24 | "zone.js": "~0.9.1" 25 | }, 26 | "devDependencies": { 27 | "@angular-devkit/build-angular": "~0.800.6", 28 | "@angular/cli": "~8.0.2", 29 | "@angular/compiler-cli": "~8.0.0", 30 | "@angular/language-service": "~8.0.0", 31 | "@types/node": "~8.9.4", 32 | "@types/jasmine": "~3.3.8", 33 | "@types/jasminewd2": "~2.0.3", 34 | "codelyzer": "^5.0.0", 35 | "jasmine-core": "~3.4.0", 36 | "jasmine-spec-reporter": "~4.2.1", 37 | "karma": "~4.1.0", 38 | "karma-chrome-launcher": "~2.2.0", 39 | "karma-coverage-istanbul-reporter": "~2.0.1", 40 | "karma-jasmine": "~2.0.1", 41 | "karma-jasmine-html-reporter": "^1.4.0", 42 | "protractor": "~5.4.0", 43 | "ts-node": "~7.0.0", 44 | "tslint": "~5.15.0", 45 | "typescript": "~3.4.3" 46 | } 47 | } 48 | -------------------------------------------------------------------------------- /4_schematics_angular_cli_integration/hello_completed/src/hello/index.ts: -------------------------------------------------------------------------------- 1 | import { 2 | apply, 3 | mergeWith, move, 4 | Rule, 5 | SchematicContext, 6 | SchematicsException, 7 | template, 8 | Tree, 9 | url 10 | } from '@angular-devkit/schematics'; 11 | import { strings } from '@angular-devkit/core'; 12 | 13 | import { Schema as HelloOptions } from './schema'; 14 | import { parseName } from "@schematics/angular/utility/parse-name"; 15 | 16 | export function hello(_options: HelloOptions): Rule { 17 | 18 | return (tree: Tree, _context: SchematicContext) => { 19 | 20 | console.log('Running schematics with following options', _options); 21 | 22 | const workspaceAsBuffer = tree.read('angular.json'); 23 | 24 | if (!workspaceAsBuffer) { 25 | throw new SchematicsException('We are not inside of Angular CLI workspace'); 26 | } 27 | 28 | 29 | const workspace = JSON.parse(workspaceAsBuffer.toString()); 30 | 31 | const projectName = _options.project || workspace.defaultProject; 32 | 33 | const project = workspace.projects[projectName]; 34 | 35 | const sourceRoot = project.sourceRoot; 36 | 37 | const projectType = project.projectType; 38 | 39 | const type = projectType === 'application' ? 'app' : 'lib'; 40 | 41 | const path = `${sourceRoot}/${type}`; 42 | 43 | 44 | const parsed = parseName(path, _options.name); 45 | 46 | 47 | _options.name = parsed.name; 48 | 49 | const sourceTpl = url('./files'); 50 | const sourceTplParametrized = apply(sourceTpl, [ 51 | template({ ..._options, ...strings }), 52 | move(parsed.path) 53 | ]); 54 | 55 | 56 | return mergeWith(sourceTplParametrized)(tree, _context); 57 | }; 58 | 59 | } 60 | -------------------------------------------------------------------------------- /angular-cli-workspace/tslint.json: -------------------------------------------------------------------------------- 1 | { 2 | "extends": "tslint:recommended", 3 | "rulesDirectory": [ 4 | "codelyzer" 5 | ], 6 | "rules": { 7 | "array-type": false, 8 | "arrow-parens": false, 9 | "deprecation": { 10 | "severity": "warn" 11 | }, 12 | "import-blacklist": [ 13 | true, 14 | "rxjs/Rx" 15 | ], 16 | "interface-name": false, 17 | "max-classes-per-file": false, 18 | "max-line-length": [ 19 | true, 20 | 140 21 | ], 22 | "member-access": false, 23 | "member-ordering": [ 24 | true, 25 | { 26 | "order": [ 27 | "static-field", 28 | "instance-field", 29 | "static-method", 30 | "instance-method" 31 | ] 32 | } 33 | ], 34 | "no-consecutive-blank-lines": false, 35 | "no-console": [ 36 | true, 37 | "debug", 38 | "info", 39 | "time", 40 | "timeEnd", 41 | "trace" 42 | ], 43 | "no-empty": false, 44 | "no-inferrable-types": [ 45 | true, 46 | "ignore-params" 47 | ], 48 | "no-non-null-assertion": true, 49 | "no-redundant-jsdoc": true, 50 | "no-switch-case-fall-through": true, 51 | "no-use-before-declare": true, 52 | "no-var-requires": false, 53 | "object-literal-key-quotes": [ 54 | true, 55 | "as-needed" 56 | ], 57 | "object-literal-sort-keys": false, 58 | "ordered-imports": false, 59 | "quotemark": [ 60 | true, 61 | "single" 62 | ], 63 | "trailing-comma": false, 64 | "component-class-suffix": true, 65 | "contextual-lifecycle": true, 66 | "directive-class-suffix": true, 67 | "no-conflicting-lifecycle": true, 68 | "no-host-metadata-property": true, 69 | "no-input-rename": true, 70 | "no-inputs-metadata-property": true, 71 | "no-output-native": true, 72 | "no-output-on-prefix": true, 73 | "no-output-rename": true, 74 | "no-outputs-metadata-property": true, 75 | "template-banana-in-box": true, 76 | "template-no-negated-async": true, 77 | "use-lifecycle-interface": true, 78 | "use-pipe-transform-interface": true 79 | } 80 | } -------------------------------------------------------------------------------- /3_schematics_templates/README.md: -------------------------------------------------------------------------------- 1 | # Angular Schematics Templates 2 | 3 | 4 | # Description 5 | 6 | When using Angular Schematics, we have been creating files directly in the tree using method `tree.create()`. 7 | This works but is pretty low level and doesn't support great convenience features like `--force` flag. 8 | Besides that generating files by using low level API would not scale when we wanted to create some more sophisticated 9 | folder structure. 10 | 11 | Luckily there is a great built in solution in form of Angular Schematics templates! 12 | 13 | ## Templating language 14 | The templating support comes with the ability to pre create real template file which then can be easily parametrized 15 | with the options we're passing to our schematics. This is achieved with the help of the following tools... 16 | 17 | 1. we can use option values directly in the folder ( and file ) name using `__myOption__` syntax. 18 | 2. we can adjust option value by using helper functions `__myOption@myHelper__` 19 | 3. we can print option value in the template file content using `<%= myOption %>` 20 | 4. similarly we can adjust option value in the template file content using `<%= myHelper(myOption) %>` 21 | 5. file content template syntax is very flexible and allows any kind of javascript expression like `<% if(myOption) {` some content ` <% } %>` 22 | 23 | 24 | # Hints 25 | 26 | * every exercise is described step by step inside of the `./hello/src/hello.index.ts` file in form of the TODO comments 27 | 28 | * don't forget to run `npm run build` (or run `npm run build:watch` in other console) in the base `./hello` folder so 29 | that you compile your Typescript source code into javascript which can be executed using `schematics` command 30 | 31 | * always rememeber to running `schematics` command with the `--dry-run=false` flag to actualy perform changes to 32 | the file system because by default Angular Schematics run in dry run mode when executing schematics collection using 33 | relative path (for example `.:` for a local folder, or `../path/to/collection.json:` ) 34 | 35 | * always remember to use`--force` flag when running schematics so that you overwrite any previously generated files 36 | -------------------------------------------------------------------------------- /4_schematics_angular_cli_integration/README.md: -------------------------------------------------------------------------------- 1 | # Angular Schematics Templates 2 | 3 | 4 | # Description 5 | Until now, we always executed schematics inside of the schematics project itself using relative path 6 | `schematics .:` which works but is not really useful. 7 | 8 | Next, we will try to execute our schematics in the context of real Angular CLI workspace (`angular-cli-workspace`) to 9 | generate our component inside a real Angular project (`some-app`). 10 | 11 | First we can do this also using relative path when we point to the `collection.json` file of our schematics project 12 | from the Angular CLI workspace like this 13 | `schematics ../4_schematics_angular_cli_integration/hello/src/collection.json:hello --dry-run=false`. 14 | 15 | This will generate our component in the root of the workspace instead of inside of the `some-app` project. To make this 16 | work properly we have to integrate our schematics code with the Angular CLI by adding support for project and path resolving 17 | which will be the focus of this exercise! 18 | 19 | ## Using "ng g" instead of "schematics" cli command 20 | 21 | Running schematics inside of an Angular CLI workspace enables us to use `ng g ../path/to/collection.json:` 22 | instead of `schematics ../path/to/collection.json:`. The main benefit is that we can now use `--help` flag 23 | which will print nice info about all the supported flags and their values. This info is based on the descriptions 24 | that we provided in the `schema.json` file and represents one of the best features of Angular Schematics because 25 | our uses don't have to search for docs and can focus on gettign things done! 26 | 27 | # Hints 28 | 29 | * every exercise is described step by step inside of the `./hello/src/hello.index.ts` file in form of the TODO comments 30 | 31 | * don't forget to run `npm run build` (or run `npm run build:watch` in other console) in the base `./hello` folder so 32 | that you compile your Typescript source code into javascript which can be executed using `schematics` command 33 | 34 | * always rememeber to running `schematics` command with the `--dry-run=false` flag to actualy perform changes to 35 | the file system because by default Angular Schematics run in dry run mode when executing schematics collection using 36 | relative path (for example `.:` for a local folder, or `../path/to/collection.json:` ) 37 | 38 | * always remember to use`--force` flag when running schematics so that you overwrite any previously generated files 39 | -------------------------------------------------------------------------------- /angular-cli-workspace/projects/some-app/src/polyfills.ts: -------------------------------------------------------------------------------- 1 | /** 2 | * This file includes polyfills needed by Angular and is loaded before the app. 3 | * You can add your own extra polyfills to this file. 4 | * 5 | * This file is divided into 2 sections: 6 | * 1. Browser polyfills. These are applied before loading ZoneJS and are sorted by browsers. 7 | * 2. Application imports. Files imported after ZoneJS that should be loaded before your main 8 | * file. 9 | * 10 | * The current setup is for so-called "evergreen" browsers; the last versions of browsers that 11 | * automatically update themselves. This includes Safari >= 10, Chrome >= 55 (including Opera), 12 | * Edge >= 13 on the desktop, and iOS 10 and Chrome on mobile. 13 | * 14 | * Learn more in https://angular.io/guide/browser-support 15 | */ 16 | 17 | /*************************************************************************************************** 18 | * BROWSER POLYFILLS 19 | */ 20 | 21 | /** IE10 and IE11 requires the following for NgClass support on SVG elements */ 22 | // import 'classlist.js'; // Run `npm install --save classlist.js`. 23 | 24 | /** 25 | * Web Animations `@angular/platform-browser/animations` 26 | * Only required if AnimationBuilder is used within the application and using IE/Edge or Safari. 27 | * Standard animation support in Angular DOES NOT require any polyfills (as of Angular 6.0). 28 | */ 29 | // import 'web-animations-js'; // Run `npm install --save web-animations-js`. 30 | 31 | /** 32 | * By default, zone.js will patch all possible macroTask and DomEvents 33 | * user can disable parts of macroTask/DomEvents patch by setting following flags 34 | * because those flags need to be set before `zone.js` being loaded, and webpack 35 | * will put import in the top of bundle, so user need to create a separate file 36 | * in this directory (for example: zone-flags.ts), and put the following flags 37 | * into that file, and then add the following code before importing zone.js. 38 | * import './zone-flags.ts'; 39 | * 40 | * The flags allowed in zone-flags.ts are listed here. 41 | * 42 | * The following flags will work for all browsers. 43 | * 44 | * (window as any).__Zone_disable_requestAnimationFrame = true; // disable patch requestAnimationFrame 45 | * (window as any).__Zone_disable_on_property = true; // disable patch onProperty such as onclick 46 | * (window as any).__zone_symbol__UNPATCHED_EVENTS = ['scroll', 'mousemove']; // disable patch specified eventNames 47 | * 48 | * in IE/Edge developer tools, the addEventListener will also be wrapped by zone.js 49 | * with the following flag, it will bypass `zone.js` patch for IE/Edge 50 | * 51 | * (window as any).__Zone_enable_cross_context_check = true; 52 | * 53 | */ 54 | 55 | /*************************************************************************************************** 56 | * Zone JS is required by default for Angular itself. 57 | */ 58 | import 'zone.js/dist/zone'; // Included with Angular CLI. 59 | 60 | 61 | /*************************************************************************************************** 62 | * APPLICATION IMPORTS 63 | */ 64 | -------------------------------------------------------------------------------- /2_schematics_options/hello/src/hello/index.ts: -------------------------------------------------------------------------------- 1 | import { Rule, SchematicContext, Tree } from '@angular-devkit/schematics'; 2 | 3 | // TODO 1. build and run schematics with random parameters (eg --a --b --c 123) 4 | 5 | // TODO 2. create schema.d.ts file in /hello folder 6 | 7 | // TODO 3. create and export typescript interface with name Schema which will contain name property of a type string 8 | 9 | // TODO 4. import and use Schema interface in this file to type _options argument of the hello function 10 | 11 | // TODO 5. create schema.json file in /hello folder 12 | 13 | // TODO 6. copy "initial" content into schema.json file from ./helpers folder 14 | 15 | // TODO 7. add name property to the schema.json ( specify its type to be string and add short description ) and make it required 16 | 17 | // TODO 8. reference schema.json in the collection.json file for hello schematics ( using "schema" property with path to file as a value ) 18 | 19 | export function hello(_options: any): Rule { 20 | 21 | return (tree: Tree, _context: SchematicContext) => { 22 | 23 | console.log('Running schematics with following options', _options); 24 | 25 | // TODO 8. retrieve name property form _options ( store it in a name variable ) 26 | 27 | // TODO 9. use name variable to parametrize hello.js file content ( replace NG-MY with variable using string template syntax ${} ) 28 | 29 | tree.create('hello.js', `console.log('Hello NG-MY!');`); 30 | 31 | // TODO 10. build and run schematics with --name param to create file (mind --dry-run=false because of the dev mode) 32 | 33 | // TODO 11. run created file using node 34 | 35 | // TODO 12. explore running schematics with wrong params like --name1 or without any params at all 36 | 37 | return tree; 38 | 39 | // TODO 13. add new "greeting" option in both schema.d.ts and schema.json, it will be of a string type 40 | // in schema.json we will also list possible values using enum property with an array of possible values like Hello, Ola, or Ahoj 41 | 42 | // TODO 14. add default value (eg Hello) and x-prompt (with the question about greeting we want to use) for the new property in schema.json file 43 | 44 | // TODO 15. get the new "greeting" property from _options and replace hardcoded "Hello" in the generated file content 45 | 46 | // TODO 16. build and run schematics with --name param, but WITHOUT --greeting param (mind --dry-run=false because of the dev mode) 47 | // you should see that the schmatics will ask you about the missing "greeting" parameter and give you a choice to select value 48 | 49 | // TODO 17. take a look in ./helpers/schema.json_advanced and copy its content to replace properties in schema.json 50 | // this adjusts name property definition with "$default" which enables us to pass in name without --name property 51 | // the name will be taken as a positional property from command line ( "$source": "argv" ) as the first argument ( "index": 0 ) 52 | 53 | // TODO 18. try to remove "x-prompt" from greetings and run schematics again to see it will use default value when no --greeting option was provided 54 | }; 55 | } 56 | -------------------------------------------------------------------------------- /3_schematics_templates/hello/src/hello/index.ts: -------------------------------------------------------------------------------- 1 | import { Rule, SchematicContext, Tree } from '@angular-devkit/schematics'; 2 | 3 | import { Schema as HelloOptions } from './schema'; 4 | 5 | // TODO 1. start build with npm run build:watch ( in a separate console window / tab ) 6 | 7 | // TODO 2. create "files/" folder in the "hello/" folder 8 | 9 | // TODO 3. create folder inside of the "files/" folder using template syntax ( __variable@helper__ ) 10 | // "hello-__name@dasherize__" ( expresion is separated with 2 underscores ) 11 | 12 | // TODO 4. create file inside of the newly created template folder with name "hello-__name@dasherize__.component.ts" 13 | 14 | // TODO 5. create content of the file to be a simple Angular component 15 | // use template syntax <%= variable %> (or <%= helper(variable) %> ) to parametrize selector 16 | // ( with help of dasherize() ), component class name ( with classify() ) and store name as component property 17 | // the component can use inline template which will show parametrized greetings to a person similar to examples before 18 | // try to do it by yourself but if you can't have a look into helpers/ folder for an example 19 | 20 | export function hello(_options: HelloOptions): Rule { 21 | 22 | return (tree: Tree, _context: SchematicContext) => { 23 | 24 | console.log('Running schematics with following options', _options); 25 | 26 | // TODO 6. load template into "sourceTpl" variable using url() function ( from @angular-devkit/schematics package ) with "./files" parameter 27 | 28 | // TODO 7. apply options onto template using apply() function ( from @angular-devkit/schematics package ) 29 | // the function accepts our sourceTpl and an array of rules 30 | // we will provide a single rule called template() ( from @angular-devkit/schematics package ) 31 | // inside of that rule we will provide options object into which we will spread our options ( like this the following { ..._options } ) 32 | // result of the apply() function will be stored in the sourceTplParametrized variable 33 | 34 | // TODO 8. import the strings object ( from @angular-devkit/core ) and spread it into the template() options ( { ..._options, ...strings } ) 35 | 36 | // TODO 9. return mergeWith() with "sourceTplParametrized" as an argument and call it with (tree, _context) 37 | // to prevent typescript compiler from complaining that we have unused variable tree 38 | // remove "return tree;" as we're already returning mergeWith() 39 | 40 | return tree; 41 | 42 | // TODO 10. build and run schematics (mind --dry-run because of the dev mode) and explore generated file 43 | 44 | // TODO 11. try running schematics again without deleting file ( you should see warning that the file exists ) 45 | 46 | // TODO 12. run schematics with --force flag ( this now works because we're using proper templating ) 47 | 48 | }; 49 | 50 | } 51 | 52 | // TODO 13. create and export addExclamation() function which accepts value of type string as an argument 53 | // and returns that string plus exclamation mark ( ! ) (or in other words it returns "value!" for "value" 54 | 55 | // TODO 14. pass addExclamation function into the template options { ..._options, ...strings, addExclamation } 56 | 57 | // TODO 15. use add exclamation in the template by changing name = '<%= name %>' to name = '<%= addExclamation(name) %>' 58 | 59 | // TODO 16. build and run schematics (mind --dry-run because of the dev mode) and explore generated file 60 | -------------------------------------------------------------------------------- /angular-cli-workspace/angular.json: -------------------------------------------------------------------------------- 1 | { 2 | "$schema": "./node_modules/@angular/cli/lib/config/schema.json", 3 | "version": 1, 4 | "newProjectRoot": "projects", 5 | "projects": { 6 | "some-app": { 7 | "projectType": "application", 8 | "schematics": {}, 9 | "root": "projects/some-app", 10 | "sourceRoot": "projects/some-app/src", 11 | "prefix": "app", 12 | "architect": { 13 | "build": { 14 | "builder": "@angular-devkit/build-angular:browser", 15 | "options": { 16 | "outputPath": "dist/some-app", 17 | "index": "projects/some-app/src/index.html", 18 | "main": "projects/some-app/src/main.ts", 19 | "polyfills": "projects/some-app/src/polyfills.ts", 20 | "tsConfig": "projects/some-app/tsconfig.app.json", 21 | "aot": false, 22 | "assets": [ 23 | "projects/some-app/src/favicon.ico", 24 | "projects/some-app/src/assets" 25 | ], 26 | "styles": [ 27 | "projects/some-app/src/styles.css" 28 | ], 29 | "scripts": [] 30 | }, 31 | "configurations": { 32 | "production": { 33 | "fileReplacements": [ 34 | { 35 | "replace": "projects/some-app/src/environments/environment.ts", 36 | "with": "projects/some-app/src/environments/environment.prod.ts" 37 | } 38 | ], 39 | "optimization": true, 40 | "outputHashing": "all", 41 | "sourceMap": false, 42 | "extractCss": true, 43 | "namedChunks": false, 44 | "aot": true, 45 | "extractLicenses": true, 46 | "vendorChunk": false, 47 | "buildOptimizer": true, 48 | "budgets": [ 49 | { 50 | "type": "initial", 51 | "maximumWarning": "2mb", 52 | "maximumError": "5mb" 53 | } 54 | ] 55 | } 56 | } 57 | }, 58 | "serve": { 59 | "builder": "@angular-devkit/build-angular:dev-server", 60 | "options": { 61 | "browserTarget": "some-app:build" 62 | }, 63 | "configurations": { 64 | "production": { 65 | "browserTarget": "some-app:build:production" 66 | } 67 | } 68 | }, 69 | "extract-i18n": { 70 | "builder": "@angular-devkit/build-angular:extract-i18n", 71 | "options": { 72 | "browserTarget": "some-app:build" 73 | } 74 | }, 75 | "test": { 76 | "builder": "@angular-devkit/build-angular:karma", 77 | "options": { 78 | "main": "projects/some-app/src/test.ts", 79 | "polyfills": "projects/some-app/src/polyfills.ts", 80 | "tsConfig": "projects/some-app/tsconfig.spec.json", 81 | "karmaConfig": "projects/some-app/karma.conf.js", 82 | "assets": [ 83 | "projects/some-app/src/favicon.ico", 84 | "projects/some-app/src/assets" 85 | ], 86 | "styles": [ 87 | "projects/some-app/src/styles.css" 88 | ], 89 | "scripts": [] 90 | } 91 | }, 92 | "lint": { 93 | "builder": "@angular-devkit/build-angular:tslint", 94 | "options": { 95 | "tsConfig": [ 96 | "projects/some-app/tsconfig.app.json", 97 | "projects/some-app/tsconfig.spec.json", 98 | "projects/some-app/e2e/tsconfig.json" 99 | ], 100 | "exclude": [ 101 | "**/node_modules/**" 102 | ] 103 | } 104 | }, 105 | "e2e": { 106 | "builder": "@angular-devkit/build-angular:protractor", 107 | "options": { 108 | "protractorConfig": "projects/some-app/e2e/protractor.conf.js", 109 | "devServerTarget": "some-app:serve" 110 | }, 111 | "configurations": { 112 | "production": { 113 | "devServerTarget": "some-app:serve:production" 114 | } 115 | } 116 | } 117 | } 118 | }}, 119 | "defaultProject": "some-app" 120 | } -------------------------------------------------------------------------------- /4_schematics_angular_cli_integration/hello/src/hello/index.ts: -------------------------------------------------------------------------------- 1 | import { apply, mergeWith, Rule, SchematicContext, template, Tree, url } from '@angular-devkit/schematics'; 2 | import { strings } from '@angular-devkit/core'; 3 | 4 | import { Schema as HelloOptions } from './schema'; 5 | 6 | export function hello(_options: HelloOptions): Rule { 7 | 8 | return (tree: Tree, _context: SchematicContext) => { 9 | 10 | console.log('Running schematics with following options', _options); 11 | 12 | // TODO 0. run "npm i @schematics/angular" to make sure you have additional dependency 13 | 14 | // TODO 1. start build with npm run build:watch ( in a separate console window / tab ) 15 | 16 | // TODO 2. run schematics from the angular-cli-workspace using schematics command 17 | // it will be same until now just the relative path will point to the collection.json file 18 | // "schematics ../4_schematics_angular_cli_integration/hello/src/collection.json:hello --dry-run=false" 19 | // explore angular-cli-workspace to see location of generated file 20 | 21 | // TODO 3. run schematics from the angular-cli-workspace using ng generate (ng g) command 22 | 23 | // TODO 4. run schematics from the angular-cli-workspace using ng generate command with --help flag 24 | // we will see all the supported options based on what we specified in the schema.json descriptions ( and schematics default options ) 25 | 26 | // The following part is pretty specific and code heavy so dont hesitate to ask for clarification if something is not clear 27 | 28 | // TODO 5. read angular.json file from tree and store it in a "workspaceAsBuffer" variable 29 | 30 | // TODO 6. check if the variable is defined and if not throw new SchematicsException with message that we are not inside of Angular CLI workspace 31 | 32 | // TODO 7. JSON parse the retrieved angular.json file ( use toString() to convert retrieved buffer to string first ) and store it in a workspace variable 33 | 34 | // TODO 8. get a "defaultProject" property and store it in the "projectName" variable 35 | 36 | // TODO 9. get and store "project" configuration by retrieving "projectName" property from "workspace.projects" (workspace.projects[projectName]) 37 | 38 | // TODO 10. create "sourceRoot" and "projectType" variables and retrieve them from "project" 39 | 40 | // TODO 11. create "type" variable and populate it either with "app" or "lib" string based on if the "projectType" has value of "application" string 41 | 42 | // TODO 11. create "path" variable which will consist of "sourceRoot" slash "type" 43 | 44 | // TODO 12. import "parseName" function from "@schematics/angular/utility/parse-name" 45 | 46 | // TODO 13. call parseName with prepared "path" and _.options.name and store the result in "parsed" variable 47 | 48 | // TODO 14. re-assign "_options.name" to be "parsed.name" 49 | 50 | // TODO 15. import move() from "@angular-devkit/schematics" 51 | 52 | // TODO 16. add the move() function after the template() function in the rules array of the apply() function ( apply(tpl, [template(...), move()]) ) and call it with "parsed.path" 53 | 54 | 55 | const sourceTpl = url('./files'); 56 | const sourceTplParametrized = apply(sourceTpl, [template({ ..._options, ...strings })]); 57 | 58 | 59 | return mergeWith(sourceTplParametrized)(tree, _context); 60 | }; 61 | 62 | } 63 | 64 | // TODO 17. build and run schematics (mind --dry-run because of the dev mode) (it will fail because we're not in Angular CLI workspace which is great!) 65 | 66 | // TODO 18. run schematics from the angular-cli-workspace ( ng g ../4_schematics_angular_cli_integration/hello/src/collection.json:hello --dry-run=false ) 67 | 68 | // TODO 19. add project property of type string to schema.d.ts (make it optional) and schema.json files 69 | 70 | // TODO 20. adjust "projectName" variable to be "_options.project" or fall back to the value of "defaultProject" if the "_options.project" is undefined 71 | 72 | // TODO 21. run "ng g library some-lib --skip-install" in angular-cli-workspace to generate additional library project 73 | 74 | // TODO 22. run schematics from the angular-cli-workspace with new --project some-lib flag ( ng g ../4_schematics_angular_cli_integration/hello/src/collection.json:hello --dry-run=false --project some-lib) 75 | 76 | // TODO 23. try to run schematics with more complicated names like "some/path/ng My" to see how parseName generates proper folder structure 77 | 78 | // GREAT ! Now we have Angular CLI integrated schematics which behave the same way as default ones provided by Angular! 79 | 80 | -------------------------------------------------------------------------------- /1_schematics_basics/hello/package-lock.json: -------------------------------------------------------------------------------- 1 | { 2 | "name": "hello", 3 | "version": "0.0.0", 4 | "lockfileVersion": 1, 5 | "requires": true, 6 | "dependencies": { 7 | "@angular-devkit/core": { 8 | "version": "8.0.6", 9 | "resolved": "https://registry.npmjs.org/@angular-devkit/core/-/core-8.0.6.tgz", 10 | "integrity": "sha512-gbKEVsQuYqBJPzgaxEitvs0aN9NwmUHhTkum28mRyPbS3witay/q8+3ls48M2W+98Da/PQbfndxFY4OCa+qHEA==", 11 | "requires": { 12 | "ajv": "6.10.0", 13 | "fast-json-stable-stringify": "2.0.0", 14 | "magic-string": "0.25.2", 15 | "rxjs": "6.4.0", 16 | "source-map": "0.7.3" 17 | } 18 | }, 19 | "@angular-devkit/schematics": { 20 | "version": "8.0.6", 21 | "resolved": "https://registry.npmjs.org/@angular-devkit/schematics/-/schematics-8.0.6.tgz", 22 | "integrity": "sha512-FGPcVKxNvtdFB0A6oHyxtWeugL83nW+kPATlAimgh1hu7TCP94dDpflCV9o/lgZlH817xTYXrhToXJaMZSnDPw==", 23 | "requires": { 24 | "@angular-devkit/core": "8.0.6", 25 | "rxjs": "6.4.0" 26 | } 27 | }, 28 | "@types/jasmine": { 29 | "version": "3.3.13", 30 | "resolved": "https://registry.npmjs.org/@types/jasmine/-/jasmine-3.3.13.tgz", 31 | "integrity": "sha512-iczmLoIiVymaD1TIr2UctxjFkNEslVE/QtNAUmpDsD71cZfZBAsPCUv1Y+8AwsfA8bLx2ccr7d95T9w/UAirlQ==" 32 | }, 33 | "@types/node": { 34 | "version": "8.10.49", 35 | "resolved": "https://registry.npmjs.org/@types/node/-/node-8.10.49.tgz", 36 | "integrity": "sha512-YX30JVx0PvSmJ3Eqr74fYLGeBxD+C7vIL20ek+GGGLJeUbVYRUW3EzyAXpIRA0K8c8o0UWqR/GwEFYiFoz1T8w==" 37 | }, 38 | "ajv": { 39 | "version": "6.10.0", 40 | "resolved": "https://registry.npmjs.org/ajv/-/ajv-6.10.0.tgz", 41 | "integrity": "sha512-nffhOpkymDECQyR0mnsUtoCE8RlX38G0rYP+wgLWFyZuUyuuojSSvi/+euOiQBIn63whYwYVIIH1TvE3tu4OEg==", 42 | "requires": { 43 | "fast-deep-equal": "^2.0.1", 44 | "fast-json-stable-stringify": "^2.0.0", 45 | "json-schema-traverse": "^0.4.1", 46 | "uri-js": "^4.2.2" 47 | } 48 | }, 49 | "balanced-match": { 50 | "version": "1.0.0", 51 | "resolved": "https://registry.npmjs.org/balanced-match/-/balanced-match-1.0.0.tgz", 52 | "integrity": "sha1-ibTRmasr7kneFk6gK4nORi1xt2c=" 53 | }, 54 | "brace-expansion": { 55 | "version": "1.1.11", 56 | "resolved": "https://registry.npmjs.org/brace-expansion/-/brace-expansion-1.1.11.tgz", 57 | "integrity": "sha512-iCuPHDFgrHX7H2vEI/5xpz07zSHB00TpugqhmYtVmMO6518mCuRMoOYFldEBl0g187ufozdaHgWKcYFb61qGiA==", 58 | "requires": { 59 | "balanced-match": "^1.0.0", 60 | "concat-map": "0.0.1" 61 | } 62 | }, 63 | "concat-map": { 64 | "version": "0.0.1", 65 | "resolved": "https://registry.npmjs.org/concat-map/-/concat-map-0.0.1.tgz", 66 | "integrity": "sha1-2Klr13/Wjfd5OnMDajug1UBdR3s=" 67 | }, 68 | "fast-deep-equal": { 69 | "version": "2.0.1", 70 | "resolved": "https://registry.npmjs.org/fast-deep-equal/-/fast-deep-equal-2.0.1.tgz", 71 | "integrity": "sha1-ewUhjd+WZ79/Nwv3/bLLFf3Qqkk=" 72 | }, 73 | "fast-json-stable-stringify": { 74 | "version": "2.0.0", 75 | "resolved": "https://registry.npmjs.org/fast-json-stable-stringify/-/fast-json-stable-stringify-2.0.0.tgz", 76 | "integrity": "sha1-1RQsDK7msRifh9OnYREGT4bIu/I=" 77 | }, 78 | "fs.realpath": { 79 | "version": "1.0.0", 80 | "resolved": "https://registry.npmjs.org/fs.realpath/-/fs.realpath-1.0.0.tgz", 81 | "integrity": "sha1-FQStJSMVjKpA20onh8sBQRmU6k8=" 82 | }, 83 | "glob": { 84 | "version": "7.1.4", 85 | "resolved": "https://registry.npmjs.org/glob/-/glob-7.1.4.tgz", 86 | "integrity": "sha512-hkLPepehmnKk41pUGm3sYxoFs/umurYfYJCerbXEyFIWcAzvpipAgVkBqqT9RBKMGjnq6kMuyYwha6csxbiM1A==", 87 | "requires": { 88 | "fs.realpath": "^1.0.0", 89 | "inflight": "^1.0.4", 90 | "inherits": "2", 91 | "minimatch": "^3.0.4", 92 | "once": "^1.3.0", 93 | "path-is-absolute": "^1.0.0" 94 | } 95 | }, 96 | "inflight": { 97 | "version": "1.0.6", 98 | "resolved": "https://registry.npmjs.org/inflight/-/inflight-1.0.6.tgz", 99 | "integrity": "sha1-Sb1jMdfQLQwJvJEKEHW6gWW1bfk=", 100 | "requires": { 101 | "once": "^1.3.0", 102 | "wrappy": "1" 103 | } 104 | }, 105 | "inherits": { 106 | "version": "2.0.4", 107 | "resolved": "https://registry.npmjs.org/inherits/-/inherits-2.0.4.tgz", 108 | "integrity": "sha512-k/vGaX4/Yla3WzyMCvTQOXYeIHvqOKtnqBduzTHpzpQZzAskKMhZ2K+EnBiSM9zGSoIFeMpXKxa4dYeZIQqewQ==" 109 | }, 110 | "jasmine": { 111 | "version": "3.4.0", 112 | "resolved": "https://registry.npmjs.org/jasmine/-/jasmine-3.4.0.tgz", 113 | "integrity": "sha512-sR9b4n+fnBFDEd7VS2el2DeHgKcPiMVn44rtKFumq9q7P/t8WrxsVIZPob4UDdgcDNCwyDqwxCt4k9TDRmjPoQ==", 114 | "requires": { 115 | "glob": "^7.1.3", 116 | "jasmine-core": "~3.4.0" 117 | } 118 | }, 119 | "jasmine-core": { 120 | "version": "3.4.0", 121 | "resolved": "https://registry.npmjs.org/jasmine-core/-/jasmine-core-3.4.0.tgz", 122 | "integrity": "sha512-HU/YxV4i6GcmiH4duATwAbJQMlE0MsDIR5XmSVxURxKHn3aGAdbY1/ZJFmVRbKtnLwIxxMJD7gYaPsypcbYimg==" 123 | }, 124 | "json-schema-traverse": { 125 | "version": "0.4.1", 126 | "resolved": "https://registry.npmjs.org/json-schema-traverse/-/json-schema-traverse-0.4.1.tgz", 127 | "integrity": "sha512-xbbCH5dCYU5T8LcEhhuh7HJ88HXuW3qsI3Y0zOZFKfZEHcpWiHU/Jxzk629Brsab/mMiHQti9wMP+845RPe3Vg==" 128 | }, 129 | "magic-string": { 130 | "version": "0.25.2", 131 | "resolved": "https://registry.npmjs.org/magic-string/-/magic-string-0.25.2.tgz", 132 | "integrity": "sha512-iLs9mPjh9IuTtRsqqhNGYcZXGei0Nh/A4xirrsqW7c+QhKVFL2vm7U09ru6cHRD22azaP/wMDgI+HCqbETMTtg==", 133 | "requires": { 134 | "sourcemap-codec": "^1.4.4" 135 | } 136 | }, 137 | "minimatch": { 138 | "version": "3.0.4", 139 | "resolved": "https://registry.npmjs.org/minimatch/-/minimatch-3.0.4.tgz", 140 | "integrity": "sha512-yJHVQEhyqPLUTgt9B83PXu6W3rx4MvvHvSUvToogpwoGDOUQ+yDrR0HRot+yOCdCO7u4hX3pWft6kWBBcqh0UA==", 141 | "requires": { 142 | "brace-expansion": "^1.1.7" 143 | } 144 | }, 145 | "once": { 146 | "version": "1.4.0", 147 | "resolved": "https://registry.npmjs.org/once/-/once-1.4.0.tgz", 148 | "integrity": "sha1-WDsap3WWHUsROsF9nFC6753Xa9E=", 149 | "requires": { 150 | "wrappy": "1" 151 | } 152 | }, 153 | "path-is-absolute": { 154 | "version": "1.0.1", 155 | "resolved": "https://registry.npmjs.org/path-is-absolute/-/path-is-absolute-1.0.1.tgz", 156 | "integrity": "sha1-F0uSaHNVNP+8es5r9TpanhtcX18=" 157 | }, 158 | "punycode": { 159 | "version": "2.1.1", 160 | "resolved": "https://registry.npmjs.org/punycode/-/punycode-2.1.1.tgz", 161 | "integrity": "sha512-XRsRjdf+j5ml+y/6GKHPZbrF/8p2Yga0JPtdqTIY2Xe5ohJPD9saDJJLPvp9+NSBprVvevdXZybnj2cv8OEd0A==" 162 | }, 163 | "rxjs": { 164 | "version": "6.4.0", 165 | "resolved": "https://registry.npmjs.org/rxjs/-/rxjs-6.4.0.tgz", 166 | "integrity": "sha512-Z9Yfa11F6B9Sg/BK9MnqnQ+aQYicPLtilXBp2yUtDt2JRCE0h26d33EnfO3ZxoNxG0T92OUucP3Ct7cpfkdFfw==", 167 | "requires": { 168 | "tslib": "^1.9.0" 169 | } 170 | }, 171 | "source-map": { 172 | "version": "0.7.3", 173 | "resolved": "https://registry.npmjs.org/source-map/-/source-map-0.7.3.tgz", 174 | "integrity": "sha512-CkCj6giN3S+n9qrYiBTX5gystlENnRW5jZeNLHpe6aue+SrHcG5VYwujhW9s4dY31mEGsxBDrHR6oI69fTXsaQ==" 175 | }, 176 | "sourcemap-codec": { 177 | "version": "1.4.4", 178 | "resolved": "https://registry.npmjs.org/sourcemap-codec/-/sourcemap-codec-1.4.4.tgz", 179 | "integrity": "sha512-CYAPYdBu34781kLHkaW3m6b/uUSyMOC2R61gcYMWooeuaGtjof86ZA/8T+qVPPt7np1085CR9hmMGrySwEc8Xg==" 180 | }, 181 | "tslib": { 182 | "version": "1.10.0", 183 | "resolved": "https://registry.npmjs.org/tslib/-/tslib-1.10.0.tgz", 184 | "integrity": "sha512-qOebF53frne81cf0S9B41ByenJ3/IuH8yJKngAX35CmiZySA0khhkovshKK+jGCaMnVomla7gVlIcc3EvKPbTQ==" 185 | }, 186 | "typescript": { 187 | "version": "3.4.5", 188 | "resolved": "https://registry.npmjs.org/typescript/-/typescript-3.4.5.tgz", 189 | "integrity": "sha512-YycBxUb49UUhdNMU5aJ7z5Ej2XGmaIBL0x34vZ82fn3hGvD+bgrMrVDpatgz2f7YxUMJxMkbWxJZeAvDxVe7Vw==" 190 | }, 191 | "uri-js": { 192 | "version": "4.2.2", 193 | "resolved": "https://registry.npmjs.org/uri-js/-/uri-js-4.2.2.tgz", 194 | "integrity": "sha512-KY9Frmirql91X2Qgjry0Wd4Y+YTdrdZheS8TFwvkbLWf/G5KNJDCh6pKL5OZctEW4+0Baa5idK2ZQuELRwPznQ==", 195 | "requires": { 196 | "punycode": "^2.1.0" 197 | } 198 | }, 199 | "wrappy": { 200 | "version": "1.0.2", 201 | "resolved": "https://registry.npmjs.org/wrappy/-/wrappy-1.0.2.tgz", 202 | "integrity": "sha1-tSQ9jz7BqjXxNkYFvA0QNuMKtp8=" 203 | } 204 | } 205 | } 206 | -------------------------------------------------------------------------------- /3_schematics_templates/hello/package-lock.json: -------------------------------------------------------------------------------- 1 | { 2 | "name": "hello", 3 | "version": "0.0.0", 4 | "lockfileVersion": 1, 5 | "requires": true, 6 | "dependencies": { 7 | "@angular-devkit/core": { 8 | "version": "8.0.6", 9 | "resolved": "https://registry.npmjs.org/@angular-devkit/core/-/core-8.0.6.tgz", 10 | "integrity": "sha512-gbKEVsQuYqBJPzgaxEitvs0aN9NwmUHhTkum28mRyPbS3witay/q8+3ls48M2W+98Da/PQbfndxFY4OCa+qHEA==", 11 | "requires": { 12 | "ajv": "6.10.0", 13 | "fast-json-stable-stringify": "2.0.0", 14 | "magic-string": "0.25.2", 15 | "rxjs": "6.4.0", 16 | "source-map": "0.7.3" 17 | } 18 | }, 19 | "@angular-devkit/schematics": { 20 | "version": "8.0.6", 21 | "resolved": "https://registry.npmjs.org/@angular-devkit/schematics/-/schematics-8.0.6.tgz", 22 | "integrity": "sha512-FGPcVKxNvtdFB0A6oHyxtWeugL83nW+kPATlAimgh1hu7TCP94dDpflCV9o/lgZlH817xTYXrhToXJaMZSnDPw==", 23 | "requires": { 24 | "@angular-devkit/core": "8.0.6", 25 | "rxjs": "6.4.0" 26 | } 27 | }, 28 | "@types/jasmine": { 29 | "version": "3.3.13", 30 | "resolved": "https://registry.npmjs.org/@types/jasmine/-/jasmine-3.3.13.tgz", 31 | "integrity": "sha512-iczmLoIiVymaD1TIr2UctxjFkNEslVE/QtNAUmpDsD71cZfZBAsPCUv1Y+8AwsfA8bLx2ccr7d95T9w/UAirlQ==" 32 | }, 33 | "@types/node": { 34 | "version": "8.10.49", 35 | "resolved": "https://registry.npmjs.org/@types/node/-/node-8.10.49.tgz", 36 | "integrity": "sha512-YX30JVx0PvSmJ3Eqr74fYLGeBxD+C7vIL20ek+GGGLJeUbVYRUW3EzyAXpIRA0K8c8o0UWqR/GwEFYiFoz1T8w==" 37 | }, 38 | "ajv": { 39 | "version": "6.10.0", 40 | "resolved": "https://registry.npmjs.org/ajv/-/ajv-6.10.0.tgz", 41 | "integrity": "sha512-nffhOpkymDECQyR0mnsUtoCE8RlX38G0rYP+wgLWFyZuUyuuojSSvi/+euOiQBIn63whYwYVIIH1TvE3tu4OEg==", 42 | "requires": { 43 | "fast-deep-equal": "^2.0.1", 44 | "fast-json-stable-stringify": "^2.0.0", 45 | "json-schema-traverse": "^0.4.1", 46 | "uri-js": "^4.2.2" 47 | } 48 | }, 49 | "balanced-match": { 50 | "version": "1.0.0", 51 | "resolved": "https://registry.npmjs.org/balanced-match/-/balanced-match-1.0.0.tgz", 52 | "integrity": "sha1-ibTRmasr7kneFk6gK4nORi1xt2c=" 53 | }, 54 | "brace-expansion": { 55 | "version": "1.1.11", 56 | "resolved": "https://registry.npmjs.org/brace-expansion/-/brace-expansion-1.1.11.tgz", 57 | "integrity": "sha512-iCuPHDFgrHX7H2vEI/5xpz07zSHB00TpugqhmYtVmMO6518mCuRMoOYFldEBl0g187ufozdaHgWKcYFb61qGiA==", 58 | "requires": { 59 | "balanced-match": "^1.0.0", 60 | "concat-map": "0.0.1" 61 | } 62 | }, 63 | "concat-map": { 64 | "version": "0.0.1", 65 | "resolved": "https://registry.npmjs.org/concat-map/-/concat-map-0.0.1.tgz", 66 | "integrity": "sha1-2Klr13/Wjfd5OnMDajug1UBdR3s=" 67 | }, 68 | "fast-deep-equal": { 69 | "version": "2.0.1", 70 | "resolved": "https://registry.npmjs.org/fast-deep-equal/-/fast-deep-equal-2.0.1.tgz", 71 | "integrity": "sha1-ewUhjd+WZ79/Nwv3/bLLFf3Qqkk=" 72 | }, 73 | "fast-json-stable-stringify": { 74 | "version": "2.0.0", 75 | "resolved": "https://registry.npmjs.org/fast-json-stable-stringify/-/fast-json-stable-stringify-2.0.0.tgz", 76 | "integrity": "sha1-1RQsDK7msRifh9OnYREGT4bIu/I=" 77 | }, 78 | "fs.realpath": { 79 | "version": "1.0.0", 80 | "resolved": "https://registry.npmjs.org/fs.realpath/-/fs.realpath-1.0.0.tgz", 81 | "integrity": "sha1-FQStJSMVjKpA20onh8sBQRmU6k8=" 82 | }, 83 | "glob": { 84 | "version": "7.1.4", 85 | "resolved": "https://registry.npmjs.org/glob/-/glob-7.1.4.tgz", 86 | "integrity": "sha512-hkLPepehmnKk41pUGm3sYxoFs/umurYfYJCerbXEyFIWcAzvpipAgVkBqqT9RBKMGjnq6kMuyYwha6csxbiM1A==", 87 | "requires": { 88 | "fs.realpath": "^1.0.0", 89 | "inflight": "^1.0.4", 90 | "inherits": "2", 91 | "minimatch": "^3.0.4", 92 | "once": "^1.3.0", 93 | "path-is-absolute": "^1.0.0" 94 | } 95 | }, 96 | "inflight": { 97 | "version": "1.0.6", 98 | "resolved": "https://registry.npmjs.org/inflight/-/inflight-1.0.6.tgz", 99 | "integrity": "sha1-Sb1jMdfQLQwJvJEKEHW6gWW1bfk=", 100 | "requires": { 101 | "once": "^1.3.0", 102 | "wrappy": "1" 103 | } 104 | }, 105 | "inherits": { 106 | "version": "2.0.4", 107 | "resolved": "https://registry.npmjs.org/inherits/-/inherits-2.0.4.tgz", 108 | "integrity": "sha512-k/vGaX4/Yla3WzyMCvTQOXYeIHvqOKtnqBduzTHpzpQZzAskKMhZ2K+EnBiSM9zGSoIFeMpXKxa4dYeZIQqewQ==" 109 | }, 110 | "jasmine": { 111 | "version": "3.4.0", 112 | "resolved": "https://registry.npmjs.org/jasmine/-/jasmine-3.4.0.tgz", 113 | "integrity": "sha512-sR9b4n+fnBFDEd7VS2el2DeHgKcPiMVn44rtKFumq9q7P/t8WrxsVIZPob4UDdgcDNCwyDqwxCt4k9TDRmjPoQ==", 114 | "requires": { 115 | "glob": "^7.1.3", 116 | "jasmine-core": "~3.4.0" 117 | } 118 | }, 119 | "jasmine-core": { 120 | "version": "3.4.0", 121 | "resolved": "https://registry.npmjs.org/jasmine-core/-/jasmine-core-3.4.0.tgz", 122 | "integrity": "sha512-HU/YxV4i6GcmiH4duATwAbJQMlE0MsDIR5XmSVxURxKHn3aGAdbY1/ZJFmVRbKtnLwIxxMJD7gYaPsypcbYimg==" 123 | }, 124 | "json-schema-traverse": { 125 | "version": "0.4.1", 126 | "resolved": "https://registry.npmjs.org/json-schema-traverse/-/json-schema-traverse-0.4.1.tgz", 127 | "integrity": "sha512-xbbCH5dCYU5T8LcEhhuh7HJ88HXuW3qsI3Y0zOZFKfZEHcpWiHU/Jxzk629Brsab/mMiHQti9wMP+845RPe3Vg==" 128 | }, 129 | "magic-string": { 130 | "version": "0.25.2", 131 | "resolved": "https://registry.npmjs.org/magic-string/-/magic-string-0.25.2.tgz", 132 | "integrity": "sha512-iLs9mPjh9IuTtRsqqhNGYcZXGei0Nh/A4xirrsqW7c+QhKVFL2vm7U09ru6cHRD22azaP/wMDgI+HCqbETMTtg==", 133 | "requires": { 134 | "sourcemap-codec": "^1.4.4" 135 | } 136 | }, 137 | "minimatch": { 138 | "version": "3.0.4", 139 | "resolved": "https://registry.npmjs.org/minimatch/-/minimatch-3.0.4.tgz", 140 | "integrity": "sha512-yJHVQEhyqPLUTgt9B83PXu6W3rx4MvvHvSUvToogpwoGDOUQ+yDrR0HRot+yOCdCO7u4hX3pWft6kWBBcqh0UA==", 141 | "requires": { 142 | "brace-expansion": "^1.1.7" 143 | } 144 | }, 145 | "once": { 146 | "version": "1.4.0", 147 | "resolved": "https://registry.npmjs.org/once/-/once-1.4.0.tgz", 148 | "integrity": "sha1-WDsap3WWHUsROsF9nFC6753Xa9E=", 149 | "requires": { 150 | "wrappy": "1" 151 | } 152 | }, 153 | "path-is-absolute": { 154 | "version": "1.0.1", 155 | "resolved": "https://registry.npmjs.org/path-is-absolute/-/path-is-absolute-1.0.1.tgz", 156 | "integrity": "sha1-F0uSaHNVNP+8es5r9TpanhtcX18=" 157 | }, 158 | "punycode": { 159 | "version": "2.1.1", 160 | "resolved": "https://registry.npmjs.org/punycode/-/punycode-2.1.1.tgz", 161 | "integrity": "sha512-XRsRjdf+j5ml+y/6GKHPZbrF/8p2Yga0JPtdqTIY2Xe5ohJPD9saDJJLPvp9+NSBprVvevdXZybnj2cv8OEd0A==" 162 | }, 163 | "rxjs": { 164 | "version": "6.4.0", 165 | "resolved": "https://registry.npmjs.org/rxjs/-/rxjs-6.4.0.tgz", 166 | "integrity": "sha512-Z9Yfa11F6B9Sg/BK9MnqnQ+aQYicPLtilXBp2yUtDt2JRCE0h26d33EnfO3ZxoNxG0T92OUucP3Ct7cpfkdFfw==", 167 | "requires": { 168 | "tslib": "^1.9.0" 169 | } 170 | }, 171 | "source-map": { 172 | "version": "0.7.3", 173 | "resolved": "https://registry.npmjs.org/source-map/-/source-map-0.7.3.tgz", 174 | "integrity": "sha512-CkCj6giN3S+n9qrYiBTX5gystlENnRW5jZeNLHpe6aue+SrHcG5VYwujhW9s4dY31mEGsxBDrHR6oI69fTXsaQ==" 175 | }, 176 | "sourcemap-codec": { 177 | "version": "1.4.4", 178 | "resolved": "https://registry.npmjs.org/sourcemap-codec/-/sourcemap-codec-1.4.4.tgz", 179 | "integrity": "sha512-CYAPYdBu34781kLHkaW3m6b/uUSyMOC2R61gcYMWooeuaGtjof86ZA/8T+qVPPt7np1085CR9hmMGrySwEc8Xg==" 180 | }, 181 | "tslib": { 182 | "version": "1.10.0", 183 | "resolved": "https://registry.npmjs.org/tslib/-/tslib-1.10.0.tgz", 184 | "integrity": "sha512-qOebF53frne81cf0S9B41ByenJ3/IuH8yJKngAX35CmiZySA0khhkovshKK+jGCaMnVomla7gVlIcc3EvKPbTQ==" 185 | }, 186 | "typescript": { 187 | "version": "3.4.5", 188 | "resolved": "https://registry.npmjs.org/typescript/-/typescript-3.4.5.tgz", 189 | "integrity": "sha512-YycBxUb49UUhdNMU5aJ7z5Ej2XGmaIBL0x34vZ82fn3hGvD+bgrMrVDpatgz2f7YxUMJxMkbWxJZeAvDxVe7Vw==" 190 | }, 191 | "uri-js": { 192 | "version": "4.2.2", 193 | "resolved": "https://registry.npmjs.org/uri-js/-/uri-js-4.2.2.tgz", 194 | "integrity": "sha512-KY9Frmirql91X2Qgjry0Wd4Y+YTdrdZheS8TFwvkbLWf/G5KNJDCh6pKL5OZctEW4+0Baa5idK2ZQuELRwPznQ==", 195 | "requires": { 196 | "punycode": "^2.1.0" 197 | } 198 | }, 199 | "wrappy": { 200 | "version": "1.0.2", 201 | "resolved": "https://registry.npmjs.org/wrappy/-/wrappy-1.0.2.tgz", 202 | "integrity": "sha1-tSQ9jz7BqjXxNkYFvA0QNuMKtp8=" 203 | } 204 | } 205 | } 206 | -------------------------------------------------------------------------------- /1_schematics_basics/hello_completed/package-lock.json: -------------------------------------------------------------------------------- 1 | { 2 | "name": "hello", 3 | "version": "0.0.0", 4 | "lockfileVersion": 1, 5 | "requires": true, 6 | "dependencies": { 7 | "@angular-devkit/core": { 8 | "version": "8.0.6", 9 | "resolved": "https://registry.npmjs.org/@angular-devkit/core/-/core-8.0.6.tgz", 10 | "integrity": "sha512-gbKEVsQuYqBJPzgaxEitvs0aN9NwmUHhTkum28mRyPbS3witay/q8+3ls48M2W+98Da/PQbfndxFY4OCa+qHEA==", 11 | "requires": { 12 | "ajv": "6.10.0", 13 | "fast-json-stable-stringify": "2.0.0", 14 | "magic-string": "0.25.2", 15 | "rxjs": "6.4.0", 16 | "source-map": "0.7.3" 17 | } 18 | }, 19 | "@angular-devkit/schematics": { 20 | "version": "8.0.6", 21 | "resolved": "https://registry.npmjs.org/@angular-devkit/schematics/-/schematics-8.0.6.tgz", 22 | "integrity": "sha512-FGPcVKxNvtdFB0A6oHyxtWeugL83nW+kPATlAimgh1hu7TCP94dDpflCV9o/lgZlH817xTYXrhToXJaMZSnDPw==", 23 | "requires": { 24 | "@angular-devkit/core": "8.0.6", 25 | "rxjs": "6.4.0" 26 | } 27 | }, 28 | "@types/jasmine": { 29 | "version": "3.3.13", 30 | "resolved": "https://registry.npmjs.org/@types/jasmine/-/jasmine-3.3.13.tgz", 31 | "integrity": "sha512-iczmLoIiVymaD1TIr2UctxjFkNEslVE/QtNAUmpDsD71cZfZBAsPCUv1Y+8AwsfA8bLx2ccr7d95T9w/UAirlQ==" 32 | }, 33 | "@types/node": { 34 | "version": "8.10.49", 35 | "resolved": "https://registry.npmjs.org/@types/node/-/node-8.10.49.tgz", 36 | "integrity": "sha512-YX30JVx0PvSmJ3Eqr74fYLGeBxD+C7vIL20ek+GGGLJeUbVYRUW3EzyAXpIRA0K8c8o0UWqR/GwEFYiFoz1T8w==" 37 | }, 38 | "ajv": { 39 | "version": "6.10.0", 40 | "resolved": "https://registry.npmjs.org/ajv/-/ajv-6.10.0.tgz", 41 | "integrity": "sha512-nffhOpkymDECQyR0mnsUtoCE8RlX38G0rYP+wgLWFyZuUyuuojSSvi/+euOiQBIn63whYwYVIIH1TvE3tu4OEg==", 42 | "requires": { 43 | "fast-deep-equal": "^2.0.1", 44 | "fast-json-stable-stringify": "^2.0.0", 45 | "json-schema-traverse": "^0.4.1", 46 | "uri-js": "^4.2.2" 47 | } 48 | }, 49 | "balanced-match": { 50 | "version": "1.0.0", 51 | "resolved": "https://registry.npmjs.org/balanced-match/-/balanced-match-1.0.0.tgz", 52 | "integrity": "sha1-ibTRmasr7kneFk6gK4nORi1xt2c=" 53 | }, 54 | "brace-expansion": { 55 | "version": "1.1.11", 56 | "resolved": "https://registry.npmjs.org/brace-expansion/-/brace-expansion-1.1.11.tgz", 57 | "integrity": "sha512-iCuPHDFgrHX7H2vEI/5xpz07zSHB00TpugqhmYtVmMO6518mCuRMoOYFldEBl0g187ufozdaHgWKcYFb61qGiA==", 58 | "requires": { 59 | "balanced-match": "^1.0.0", 60 | "concat-map": "0.0.1" 61 | } 62 | }, 63 | "concat-map": { 64 | "version": "0.0.1", 65 | "resolved": "https://registry.npmjs.org/concat-map/-/concat-map-0.0.1.tgz", 66 | "integrity": "sha1-2Klr13/Wjfd5OnMDajug1UBdR3s=" 67 | }, 68 | "fast-deep-equal": { 69 | "version": "2.0.1", 70 | "resolved": "https://registry.npmjs.org/fast-deep-equal/-/fast-deep-equal-2.0.1.tgz", 71 | "integrity": "sha1-ewUhjd+WZ79/Nwv3/bLLFf3Qqkk=" 72 | }, 73 | "fast-json-stable-stringify": { 74 | "version": "2.0.0", 75 | "resolved": "https://registry.npmjs.org/fast-json-stable-stringify/-/fast-json-stable-stringify-2.0.0.tgz", 76 | "integrity": "sha1-1RQsDK7msRifh9OnYREGT4bIu/I=" 77 | }, 78 | "fs.realpath": { 79 | "version": "1.0.0", 80 | "resolved": "https://registry.npmjs.org/fs.realpath/-/fs.realpath-1.0.0.tgz", 81 | "integrity": "sha1-FQStJSMVjKpA20onh8sBQRmU6k8=" 82 | }, 83 | "glob": { 84 | "version": "7.1.4", 85 | "resolved": "https://registry.npmjs.org/glob/-/glob-7.1.4.tgz", 86 | "integrity": "sha512-hkLPepehmnKk41pUGm3sYxoFs/umurYfYJCerbXEyFIWcAzvpipAgVkBqqT9RBKMGjnq6kMuyYwha6csxbiM1A==", 87 | "requires": { 88 | "fs.realpath": "^1.0.0", 89 | "inflight": "^1.0.4", 90 | "inherits": "2", 91 | "minimatch": "^3.0.4", 92 | "once": "^1.3.0", 93 | "path-is-absolute": "^1.0.0" 94 | } 95 | }, 96 | "inflight": { 97 | "version": "1.0.6", 98 | "resolved": "https://registry.npmjs.org/inflight/-/inflight-1.0.6.tgz", 99 | "integrity": "sha1-Sb1jMdfQLQwJvJEKEHW6gWW1bfk=", 100 | "requires": { 101 | "once": "^1.3.0", 102 | "wrappy": "1" 103 | } 104 | }, 105 | "inherits": { 106 | "version": "2.0.4", 107 | "resolved": "https://registry.npmjs.org/inherits/-/inherits-2.0.4.tgz", 108 | "integrity": "sha512-k/vGaX4/Yla3WzyMCvTQOXYeIHvqOKtnqBduzTHpzpQZzAskKMhZ2K+EnBiSM9zGSoIFeMpXKxa4dYeZIQqewQ==" 109 | }, 110 | "jasmine": { 111 | "version": "3.4.0", 112 | "resolved": "https://registry.npmjs.org/jasmine/-/jasmine-3.4.0.tgz", 113 | "integrity": "sha512-sR9b4n+fnBFDEd7VS2el2DeHgKcPiMVn44rtKFumq9q7P/t8WrxsVIZPob4UDdgcDNCwyDqwxCt4k9TDRmjPoQ==", 114 | "requires": { 115 | "glob": "^7.1.3", 116 | "jasmine-core": "~3.4.0" 117 | } 118 | }, 119 | "jasmine-core": { 120 | "version": "3.4.0", 121 | "resolved": "https://registry.npmjs.org/jasmine-core/-/jasmine-core-3.4.0.tgz", 122 | "integrity": "sha512-HU/YxV4i6GcmiH4duATwAbJQMlE0MsDIR5XmSVxURxKHn3aGAdbY1/ZJFmVRbKtnLwIxxMJD7gYaPsypcbYimg==" 123 | }, 124 | "json-schema-traverse": { 125 | "version": "0.4.1", 126 | "resolved": "https://registry.npmjs.org/json-schema-traverse/-/json-schema-traverse-0.4.1.tgz", 127 | "integrity": "sha512-xbbCH5dCYU5T8LcEhhuh7HJ88HXuW3qsI3Y0zOZFKfZEHcpWiHU/Jxzk629Brsab/mMiHQti9wMP+845RPe3Vg==" 128 | }, 129 | "magic-string": { 130 | "version": "0.25.2", 131 | "resolved": "https://registry.npmjs.org/magic-string/-/magic-string-0.25.2.tgz", 132 | "integrity": "sha512-iLs9mPjh9IuTtRsqqhNGYcZXGei0Nh/A4xirrsqW7c+QhKVFL2vm7U09ru6cHRD22azaP/wMDgI+HCqbETMTtg==", 133 | "requires": { 134 | "sourcemap-codec": "^1.4.4" 135 | } 136 | }, 137 | "minimatch": { 138 | "version": "3.0.4", 139 | "resolved": "https://registry.npmjs.org/minimatch/-/minimatch-3.0.4.tgz", 140 | "integrity": "sha512-yJHVQEhyqPLUTgt9B83PXu6W3rx4MvvHvSUvToogpwoGDOUQ+yDrR0HRot+yOCdCO7u4hX3pWft6kWBBcqh0UA==", 141 | "requires": { 142 | "brace-expansion": "^1.1.7" 143 | } 144 | }, 145 | "once": { 146 | "version": "1.4.0", 147 | "resolved": "https://registry.npmjs.org/once/-/once-1.4.0.tgz", 148 | "integrity": "sha1-WDsap3WWHUsROsF9nFC6753Xa9E=", 149 | "requires": { 150 | "wrappy": "1" 151 | } 152 | }, 153 | "path-is-absolute": { 154 | "version": "1.0.1", 155 | "resolved": "https://registry.npmjs.org/path-is-absolute/-/path-is-absolute-1.0.1.tgz", 156 | "integrity": "sha1-F0uSaHNVNP+8es5r9TpanhtcX18=" 157 | }, 158 | "punycode": { 159 | "version": "2.1.1", 160 | "resolved": "https://registry.npmjs.org/punycode/-/punycode-2.1.1.tgz", 161 | "integrity": "sha512-XRsRjdf+j5ml+y/6GKHPZbrF/8p2Yga0JPtdqTIY2Xe5ohJPD9saDJJLPvp9+NSBprVvevdXZybnj2cv8OEd0A==" 162 | }, 163 | "rxjs": { 164 | "version": "6.4.0", 165 | "resolved": "https://registry.npmjs.org/rxjs/-/rxjs-6.4.0.tgz", 166 | "integrity": "sha512-Z9Yfa11F6B9Sg/BK9MnqnQ+aQYicPLtilXBp2yUtDt2JRCE0h26d33EnfO3ZxoNxG0T92OUucP3Ct7cpfkdFfw==", 167 | "requires": { 168 | "tslib": "^1.9.0" 169 | } 170 | }, 171 | "source-map": { 172 | "version": "0.7.3", 173 | "resolved": "https://registry.npmjs.org/source-map/-/source-map-0.7.3.tgz", 174 | "integrity": "sha512-CkCj6giN3S+n9qrYiBTX5gystlENnRW5jZeNLHpe6aue+SrHcG5VYwujhW9s4dY31mEGsxBDrHR6oI69fTXsaQ==" 175 | }, 176 | "sourcemap-codec": { 177 | "version": "1.4.4", 178 | "resolved": "https://registry.npmjs.org/sourcemap-codec/-/sourcemap-codec-1.4.4.tgz", 179 | "integrity": "sha512-CYAPYdBu34781kLHkaW3m6b/uUSyMOC2R61gcYMWooeuaGtjof86ZA/8T+qVPPt7np1085CR9hmMGrySwEc8Xg==" 180 | }, 181 | "tslib": { 182 | "version": "1.10.0", 183 | "resolved": "https://registry.npmjs.org/tslib/-/tslib-1.10.0.tgz", 184 | "integrity": "sha512-qOebF53frne81cf0S9B41ByenJ3/IuH8yJKngAX35CmiZySA0khhkovshKK+jGCaMnVomla7gVlIcc3EvKPbTQ==" 185 | }, 186 | "typescript": { 187 | "version": "3.4.5", 188 | "resolved": "https://registry.npmjs.org/typescript/-/typescript-3.4.5.tgz", 189 | "integrity": "sha512-YycBxUb49UUhdNMU5aJ7z5Ej2XGmaIBL0x34vZ82fn3hGvD+bgrMrVDpatgz2f7YxUMJxMkbWxJZeAvDxVe7Vw==" 190 | }, 191 | "uri-js": { 192 | "version": "4.2.2", 193 | "resolved": "https://registry.npmjs.org/uri-js/-/uri-js-4.2.2.tgz", 194 | "integrity": "sha512-KY9Frmirql91X2Qgjry0Wd4Y+YTdrdZheS8TFwvkbLWf/G5KNJDCh6pKL5OZctEW4+0Baa5idK2ZQuELRwPznQ==", 195 | "requires": { 196 | "punycode": "^2.1.0" 197 | } 198 | }, 199 | "wrappy": { 200 | "version": "1.0.2", 201 | "resolved": "https://registry.npmjs.org/wrappy/-/wrappy-1.0.2.tgz", 202 | "integrity": "sha1-tSQ9jz7BqjXxNkYFvA0QNuMKtp8=" 203 | } 204 | } 205 | } 206 | -------------------------------------------------------------------------------- /3_schematics_templates/hello_completed/package-lock.json: -------------------------------------------------------------------------------- 1 | { 2 | "name": "hello", 3 | "version": "0.0.0", 4 | "lockfileVersion": 1, 5 | "requires": true, 6 | "dependencies": { 7 | "@angular-devkit/core": { 8 | "version": "8.0.6", 9 | "resolved": "https://registry.npmjs.org/@angular-devkit/core/-/core-8.0.6.tgz", 10 | "integrity": "sha512-gbKEVsQuYqBJPzgaxEitvs0aN9NwmUHhTkum28mRyPbS3witay/q8+3ls48M2W+98Da/PQbfndxFY4OCa+qHEA==", 11 | "requires": { 12 | "ajv": "6.10.0", 13 | "fast-json-stable-stringify": "2.0.0", 14 | "magic-string": "0.25.2", 15 | "rxjs": "6.4.0", 16 | "source-map": "0.7.3" 17 | } 18 | }, 19 | "@angular-devkit/schematics": { 20 | "version": "8.0.6", 21 | "resolved": "https://registry.npmjs.org/@angular-devkit/schematics/-/schematics-8.0.6.tgz", 22 | "integrity": "sha512-FGPcVKxNvtdFB0A6oHyxtWeugL83nW+kPATlAimgh1hu7TCP94dDpflCV9o/lgZlH817xTYXrhToXJaMZSnDPw==", 23 | "requires": { 24 | "@angular-devkit/core": "8.0.6", 25 | "rxjs": "6.4.0" 26 | } 27 | }, 28 | "@types/jasmine": { 29 | "version": "3.3.13", 30 | "resolved": "https://registry.npmjs.org/@types/jasmine/-/jasmine-3.3.13.tgz", 31 | "integrity": "sha512-iczmLoIiVymaD1TIr2UctxjFkNEslVE/QtNAUmpDsD71cZfZBAsPCUv1Y+8AwsfA8bLx2ccr7d95T9w/UAirlQ==" 32 | }, 33 | "@types/node": { 34 | "version": "8.10.49", 35 | "resolved": "https://registry.npmjs.org/@types/node/-/node-8.10.49.tgz", 36 | "integrity": "sha512-YX30JVx0PvSmJ3Eqr74fYLGeBxD+C7vIL20ek+GGGLJeUbVYRUW3EzyAXpIRA0K8c8o0UWqR/GwEFYiFoz1T8w==" 37 | }, 38 | "ajv": { 39 | "version": "6.10.0", 40 | "resolved": "https://registry.npmjs.org/ajv/-/ajv-6.10.0.tgz", 41 | "integrity": "sha512-nffhOpkymDECQyR0mnsUtoCE8RlX38G0rYP+wgLWFyZuUyuuojSSvi/+euOiQBIn63whYwYVIIH1TvE3tu4OEg==", 42 | "requires": { 43 | "fast-deep-equal": "^2.0.1", 44 | "fast-json-stable-stringify": "^2.0.0", 45 | "json-schema-traverse": "^0.4.1", 46 | "uri-js": "^4.2.2" 47 | } 48 | }, 49 | "balanced-match": { 50 | "version": "1.0.0", 51 | "resolved": "https://registry.npmjs.org/balanced-match/-/balanced-match-1.0.0.tgz", 52 | "integrity": "sha1-ibTRmasr7kneFk6gK4nORi1xt2c=" 53 | }, 54 | "brace-expansion": { 55 | "version": "1.1.11", 56 | "resolved": "https://registry.npmjs.org/brace-expansion/-/brace-expansion-1.1.11.tgz", 57 | "integrity": "sha512-iCuPHDFgrHX7H2vEI/5xpz07zSHB00TpugqhmYtVmMO6518mCuRMoOYFldEBl0g187ufozdaHgWKcYFb61qGiA==", 58 | "requires": { 59 | "balanced-match": "^1.0.0", 60 | "concat-map": "0.0.1" 61 | } 62 | }, 63 | "concat-map": { 64 | "version": "0.0.1", 65 | "resolved": "https://registry.npmjs.org/concat-map/-/concat-map-0.0.1.tgz", 66 | "integrity": "sha1-2Klr13/Wjfd5OnMDajug1UBdR3s=" 67 | }, 68 | "fast-deep-equal": { 69 | "version": "2.0.1", 70 | "resolved": "https://registry.npmjs.org/fast-deep-equal/-/fast-deep-equal-2.0.1.tgz", 71 | "integrity": "sha1-ewUhjd+WZ79/Nwv3/bLLFf3Qqkk=" 72 | }, 73 | "fast-json-stable-stringify": { 74 | "version": "2.0.0", 75 | "resolved": "https://registry.npmjs.org/fast-json-stable-stringify/-/fast-json-stable-stringify-2.0.0.tgz", 76 | "integrity": "sha1-1RQsDK7msRifh9OnYREGT4bIu/I=" 77 | }, 78 | "fs.realpath": { 79 | "version": "1.0.0", 80 | "resolved": "https://registry.npmjs.org/fs.realpath/-/fs.realpath-1.0.0.tgz", 81 | "integrity": "sha1-FQStJSMVjKpA20onh8sBQRmU6k8=" 82 | }, 83 | "glob": { 84 | "version": "7.1.4", 85 | "resolved": "https://registry.npmjs.org/glob/-/glob-7.1.4.tgz", 86 | "integrity": "sha512-hkLPepehmnKk41pUGm3sYxoFs/umurYfYJCerbXEyFIWcAzvpipAgVkBqqT9RBKMGjnq6kMuyYwha6csxbiM1A==", 87 | "requires": { 88 | "fs.realpath": "^1.0.0", 89 | "inflight": "^1.0.4", 90 | "inherits": "2", 91 | "minimatch": "^3.0.4", 92 | "once": "^1.3.0", 93 | "path-is-absolute": "^1.0.0" 94 | } 95 | }, 96 | "inflight": { 97 | "version": "1.0.6", 98 | "resolved": "https://registry.npmjs.org/inflight/-/inflight-1.0.6.tgz", 99 | "integrity": "sha1-Sb1jMdfQLQwJvJEKEHW6gWW1bfk=", 100 | "requires": { 101 | "once": "^1.3.0", 102 | "wrappy": "1" 103 | } 104 | }, 105 | "inherits": { 106 | "version": "2.0.4", 107 | "resolved": "https://registry.npmjs.org/inherits/-/inherits-2.0.4.tgz", 108 | "integrity": "sha512-k/vGaX4/Yla3WzyMCvTQOXYeIHvqOKtnqBduzTHpzpQZzAskKMhZ2K+EnBiSM9zGSoIFeMpXKxa4dYeZIQqewQ==" 109 | }, 110 | "jasmine": { 111 | "version": "3.4.0", 112 | "resolved": "https://registry.npmjs.org/jasmine/-/jasmine-3.4.0.tgz", 113 | "integrity": "sha512-sR9b4n+fnBFDEd7VS2el2DeHgKcPiMVn44rtKFumq9q7P/t8WrxsVIZPob4UDdgcDNCwyDqwxCt4k9TDRmjPoQ==", 114 | "requires": { 115 | "glob": "^7.1.3", 116 | "jasmine-core": "~3.4.0" 117 | } 118 | }, 119 | "jasmine-core": { 120 | "version": "3.4.0", 121 | "resolved": "https://registry.npmjs.org/jasmine-core/-/jasmine-core-3.4.0.tgz", 122 | "integrity": "sha512-HU/YxV4i6GcmiH4duATwAbJQMlE0MsDIR5XmSVxURxKHn3aGAdbY1/ZJFmVRbKtnLwIxxMJD7gYaPsypcbYimg==" 123 | }, 124 | "json-schema-traverse": { 125 | "version": "0.4.1", 126 | "resolved": "https://registry.npmjs.org/json-schema-traverse/-/json-schema-traverse-0.4.1.tgz", 127 | "integrity": "sha512-xbbCH5dCYU5T8LcEhhuh7HJ88HXuW3qsI3Y0zOZFKfZEHcpWiHU/Jxzk629Brsab/mMiHQti9wMP+845RPe3Vg==" 128 | }, 129 | "magic-string": { 130 | "version": "0.25.2", 131 | "resolved": "https://registry.npmjs.org/magic-string/-/magic-string-0.25.2.tgz", 132 | "integrity": "sha512-iLs9mPjh9IuTtRsqqhNGYcZXGei0Nh/A4xirrsqW7c+QhKVFL2vm7U09ru6cHRD22azaP/wMDgI+HCqbETMTtg==", 133 | "requires": { 134 | "sourcemap-codec": "^1.4.4" 135 | } 136 | }, 137 | "minimatch": { 138 | "version": "3.0.4", 139 | "resolved": "https://registry.npmjs.org/minimatch/-/minimatch-3.0.4.tgz", 140 | "integrity": "sha512-yJHVQEhyqPLUTgt9B83PXu6W3rx4MvvHvSUvToogpwoGDOUQ+yDrR0HRot+yOCdCO7u4hX3pWft6kWBBcqh0UA==", 141 | "requires": { 142 | "brace-expansion": "^1.1.7" 143 | } 144 | }, 145 | "once": { 146 | "version": "1.4.0", 147 | "resolved": "https://registry.npmjs.org/once/-/once-1.4.0.tgz", 148 | "integrity": "sha1-WDsap3WWHUsROsF9nFC6753Xa9E=", 149 | "requires": { 150 | "wrappy": "1" 151 | } 152 | }, 153 | "path-is-absolute": { 154 | "version": "1.0.1", 155 | "resolved": "https://registry.npmjs.org/path-is-absolute/-/path-is-absolute-1.0.1.tgz", 156 | "integrity": "sha1-F0uSaHNVNP+8es5r9TpanhtcX18=" 157 | }, 158 | "punycode": { 159 | "version": "2.1.1", 160 | "resolved": "https://registry.npmjs.org/punycode/-/punycode-2.1.1.tgz", 161 | "integrity": "sha512-XRsRjdf+j5ml+y/6GKHPZbrF/8p2Yga0JPtdqTIY2Xe5ohJPD9saDJJLPvp9+NSBprVvevdXZybnj2cv8OEd0A==" 162 | }, 163 | "rxjs": { 164 | "version": "6.4.0", 165 | "resolved": "https://registry.npmjs.org/rxjs/-/rxjs-6.4.0.tgz", 166 | "integrity": "sha512-Z9Yfa11F6B9Sg/BK9MnqnQ+aQYicPLtilXBp2yUtDt2JRCE0h26d33EnfO3ZxoNxG0T92OUucP3Ct7cpfkdFfw==", 167 | "requires": { 168 | "tslib": "^1.9.0" 169 | } 170 | }, 171 | "source-map": { 172 | "version": "0.7.3", 173 | "resolved": "https://registry.npmjs.org/source-map/-/source-map-0.7.3.tgz", 174 | "integrity": "sha512-CkCj6giN3S+n9qrYiBTX5gystlENnRW5jZeNLHpe6aue+SrHcG5VYwujhW9s4dY31mEGsxBDrHR6oI69fTXsaQ==" 175 | }, 176 | "sourcemap-codec": { 177 | "version": "1.4.4", 178 | "resolved": "https://registry.npmjs.org/sourcemap-codec/-/sourcemap-codec-1.4.4.tgz", 179 | "integrity": "sha512-CYAPYdBu34781kLHkaW3m6b/uUSyMOC2R61gcYMWooeuaGtjof86ZA/8T+qVPPt7np1085CR9hmMGrySwEc8Xg==" 180 | }, 181 | "tslib": { 182 | "version": "1.10.0", 183 | "resolved": "https://registry.npmjs.org/tslib/-/tslib-1.10.0.tgz", 184 | "integrity": "sha512-qOebF53frne81cf0S9B41ByenJ3/IuH8yJKngAX35CmiZySA0khhkovshKK+jGCaMnVomla7gVlIcc3EvKPbTQ==" 185 | }, 186 | "typescript": { 187 | "version": "3.4.5", 188 | "resolved": "https://registry.npmjs.org/typescript/-/typescript-3.4.5.tgz", 189 | "integrity": "sha512-YycBxUb49UUhdNMU5aJ7z5Ej2XGmaIBL0x34vZ82fn3hGvD+bgrMrVDpatgz2f7YxUMJxMkbWxJZeAvDxVe7Vw==" 190 | }, 191 | "uri-js": { 192 | "version": "4.2.2", 193 | "resolved": "https://registry.npmjs.org/uri-js/-/uri-js-4.2.2.tgz", 194 | "integrity": "sha512-KY9Frmirql91X2Qgjry0Wd4Y+YTdrdZheS8TFwvkbLWf/G5KNJDCh6pKL5OZctEW4+0Baa5idK2ZQuELRwPznQ==", 195 | "requires": { 196 | "punycode": "^2.1.0" 197 | } 198 | }, 199 | "wrappy": { 200 | "version": "1.0.2", 201 | "resolved": "https://registry.npmjs.org/wrappy/-/wrappy-1.0.2.tgz", 202 | "integrity": "sha1-tSQ9jz7BqjXxNkYFvA0QNuMKtp8=" 203 | } 204 | } 205 | } 206 | -------------------------------------------------------------------------------- /2_schematics_options/hello/package-lock.json: -------------------------------------------------------------------------------- 1 | { 2 | "name": "hello", 3 | "version": "0.0.0", 4 | "lockfileVersion": 1, 5 | "requires": true, 6 | "dependencies": { 7 | "@angular-devkit/core": { 8 | "version": "8.0.6", 9 | "resolved": "https://registry.npmjs.org/@angular-devkit/core/-/core-8.0.6.tgz", 10 | "integrity": "sha512-gbKEVsQuYqBJPzgaxEitvs0aN9NwmUHhTkum28mRyPbS3witay/q8+3ls48M2W+98Da/PQbfndxFY4OCa+qHEA==", 11 | "requires": { 12 | "ajv": "6.10.0", 13 | "fast-json-stable-stringify": "2.0.0", 14 | "magic-string": "0.25.2", 15 | "rxjs": "6.4.0", 16 | "source-map": "0.7.3" 17 | } 18 | }, 19 | "@angular-devkit/schematics": { 20 | "version": "8.0.6", 21 | "resolved": "https://registry.npmjs.org/@angular-devkit/schematics/-/schematics-8.0.6.tgz", 22 | "integrity": "sha512-FGPcVKxNvtdFB0A6oHyxtWeugL83nW+kPATlAimgh1hu7TCP94dDpflCV9o/lgZlH817xTYXrhToXJaMZSnDPw==", 23 | "requires": { 24 | "@angular-devkit/core": "8.0.6", 25 | "rxjs": "6.4.0" 26 | } 27 | }, 28 | "@schematics/angular": { 29 | "version": "8.0.6", 30 | "resolved": "https://registry.npmjs.org/@schematics/angular/-/angular-8.0.6.tgz", 31 | "integrity": "sha512-F0/MrbvrJQJIjt0GwEkmf9PZUX0xQlCjlDcH6U7yBni0/+R5Gd5g3G0f12fsSa2iAwpwrLkKpiQluj29eFituQ==", 32 | "requires": { 33 | "@angular-devkit/core": "8.0.6", 34 | "@angular-devkit/schematics": "8.0.6" 35 | } 36 | }, 37 | "@types/jasmine": { 38 | "version": "3.3.13", 39 | "resolved": "https://registry.npmjs.org/@types/jasmine/-/jasmine-3.3.13.tgz", 40 | "integrity": "sha512-iczmLoIiVymaD1TIr2UctxjFkNEslVE/QtNAUmpDsD71cZfZBAsPCUv1Y+8AwsfA8bLx2ccr7d95T9w/UAirlQ==" 41 | }, 42 | "@types/node": { 43 | "version": "8.10.49", 44 | "resolved": "https://registry.npmjs.org/@types/node/-/node-8.10.49.tgz", 45 | "integrity": "sha512-YX30JVx0PvSmJ3Eqr74fYLGeBxD+C7vIL20ek+GGGLJeUbVYRUW3EzyAXpIRA0K8c8o0UWqR/GwEFYiFoz1T8w==" 46 | }, 47 | "ajv": { 48 | "version": "6.10.0", 49 | "resolved": "https://registry.npmjs.org/ajv/-/ajv-6.10.0.tgz", 50 | "integrity": "sha512-nffhOpkymDECQyR0mnsUtoCE8RlX38G0rYP+wgLWFyZuUyuuojSSvi/+euOiQBIn63whYwYVIIH1TvE3tu4OEg==", 51 | "requires": { 52 | "fast-deep-equal": "^2.0.1", 53 | "fast-json-stable-stringify": "^2.0.0", 54 | "json-schema-traverse": "^0.4.1", 55 | "uri-js": "^4.2.2" 56 | } 57 | }, 58 | "balanced-match": { 59 | "version": "1.0.0", 60 | "resolved": "https://registry.npmjs.org/balanced-match/-/balanced-match-1.0.0.tgz", 61 | "integrity": "sha1-ibTRmasr7kneFk6gK4nORi1xt2c=" 62 | }, 63 | "brace-expansion": { 64 | "version": "1.1.11", 65 | "resolved": "https://registry.npmjs.org/brace-expansion/-/brace-expansion-1.1.11.tgz", 66 | "integrity": "sha512-iCuPHDFgrHX7H2vEI/5xpz07zSHB00TpugqhmYtVmMO6518mCuRMoOYFldEBl0g187ufozdaHgWKcYFb61qGiA==", 67 | "requires": { 68 | "balanced-match": "^1.0.0", 69 | "concat-map": "0.0.1" 70 | } 71 | }, 72 | "concat-map": { 73 | "version": "0.0.1", 74 | "resolved": "https://registry.npmjs.org/concat-map/-/concat-map-0.0.1.tgz", 75 | "integrity": "sha1-2Klr13/Wjfd5OnMDajug1UBdR3s=" 76 | }, 77 | "fast-deep-equal": { 78 | "version": "2.0.1", 79 | "resolved": "https://registry.npmjs.org/fast-deep-equal/-/fast-deep-equal-2.0.1.tgz", 80 | "integrity": "sha1-ewUhjd+WZ79/Nwv3/bLLFf3Qqkk=" 81 | }, 82 | "fast-json-stable-stringify": { 83 | "version": "2.0.0", 84 | "resolved": "https://registry.npmjs.org/fast-json-stable-stringify/-/fast-json-stable-stringify-2.0.0.tgz", 85 | "integrity": "sha1-1RQsDK7msRifh9OnYREGT4bIu/I=" 86 | }, 87 | "fs.realpath": { 88 | "version": "1.0.0", 89 | "resolved": "https://registry.npmjs.org/fs.realpath/-/fs.realpath-1.0.0.tgz", 90 | "integrity": "sha1-FQStJSMVjKpA20onh8sBQRmU6k8=" 91 | }, 92 | "glob": { 93 | "version": "7.1.4", 94 | "resolved": "https://registry.npmjs.org/glob/-/glob-7.1.4.tgz", 95 | "integrity": "sha512-hkLPepehmnKk41pUGm3sYxoFs/umurYfYJCerbXEyFIWcAzvpipAgVkBqqT9RBKMGjnq6kMuyYwha6csxbiM1A==", 96 | "requires": { 97 | "fs.realpath": "^1.0.0", 98 | "inflight": "^1.0.4", 99 | "inherits": "2", 100 | "minimatch": "^3.0.4", 101 | "once": "^1.3.0", 102 | "path-is-absolute": "^1.0.0" 103 | } 104 | }, 105 | "inflight": { 106 | "version": "1.0.6", 107 | "resolved": "https://registry.npmjs.org/inflight/-/inflight-1.0.6.tgz", 108 | "integrity": "sha1-Sb1jMdfQLQwJvJEKEHW6gWW1bfk=", 109 | "requires": { 110 | "once": "^1.3.0", 111 | "wrappy": "1" 112 | } 113 | }, 114 | "inherits": { 115 | "version": "2.0.4", 116 | "resolved": "https://registry.npmjs.org/inherits/-/inherits-2.0.4.tgz", 117 | "integrity": "sha512-k/vGaX4/Yla3WzyMCvTQOXYeIHvqOKtnqBduzTHpzpQZzAskKMhZ2K+EnBiSM9zGSoIFeMpXKxa4dYeZIQqewQ==" 118 | }, 119 | "jasmine": { 120 | "version": "3.4.0", 121 | "resolved": "https://registry.npmjs.org/jasmine/-/jasmine-3.4.0.tgz", 122 | "integrity": "sha512-sR9b4n+fnBFDEd7VS2el2DeHgKcPiMVn44rtKFumq9q7P/t8WrxsVIZPob4UDdgcDNCwyDqwxCt4k9TDRmjPoQ==", 123 | "requires": { 124 | "glob": "^7.1.3", 125 | "jasmine-core": "~3.4.0" 126 | } 127 | }, 128 | "jasmine-core": { 129 | "version": "3.4.0", 130 | "resolved": "https://registry.npmjs.org/jasmine-core/-/jasmine-core-3.4.0.tgz", 131 | "integrity": "sha512-HU/YxV4i6GcmiH4duATwAbJQMlE0MsDIR5XmSVxURxKHn3aGAdbY1/ZJFmVRbKtnLwIxxMJD7gYaPsypcbYimg==" 132 | }, 133 | "json-schema-traverse": { 134 | "version": "0.4.1", 135 | "resolved": "https://registry.npmjs.org/json-schema-traverse/-/json-schema-traverse-0.4.1.tgz", 136 | "integrity": "sha512-xbbCH5dCYU5T8LcEhhuh7HJ88HXuW3qsI3Y0zOZFKfZEHcpWiHU/Jxzk629Brsab/mMiHQti9wMP+845RPe3Vg==" 137 | }, 138 | "magic-string": { 139 | "version": "0.25.2", 140 | "resolved": "https://registry.npmjs.org/magic-string/-/magic-string-0.25.2.tgz", 141 | "integrity": "sha512-iLs9mPjh9IuTtRsqqhNGYcZXGei0Nh/A4xirrsqW7c+QhKVFL2vm7U09ru6cHRD22azaP/wMDgI+HCqbETMTtg==", 142 | "requires": { 143 | "sourcemap-codec": "^1.4.4" 144 | } 145 | }, 146 | "minimatch": { 147 | "version": "3.0.4", 148 | "resolved": "https://registry.npmjs.org/minimatch/-/minimatch-3.0.4.tgz", 149 | "integrity": "sha512-yJHVQEhyqPLUTgt9B83PXu6W3rx4MvvHvSUvToogpwoGDOUQ+yDrR0HRot+yOCdCO7u4hX3pWft6kWBBcqh0UA==", 150 | "requires": { 151 | "brace-expansion": "^1.1.7" 152 | } 153 | }, 154 | "once": { 155 | "version": "1.4.0", 156 | "resolved": "https://registry.npmjs.org/once/-/once-1.4.0.tgz", 157 | "integrity": "sha1-WDsap3WWHUsROsF9nFC6753Xa9E=", 158 | "requires": { 159 | "wrappy": "1" 160 | } 161 | }, 162 | "path-is-absolute": { 163 | "version": "1.0.1", 164 | "resolved": "https://registry.npmjs.org/path-is-absolute/-/path-is-absolute-1.0.1.tgz", 165 | "integrity": "sha1-F0uSaHNVNP+8es5r9TpanhtcX18=" 166 | }, 167 | "punycode": { 168 | "version": "2.1.1", 169 | "resolved": "https://registry.npmjs.org/punycode/-/punycode-2.1.1.tgz", 170 | "integrity": "sha512-XRsRjdf+j5ml+y/6GKHPZbrF/8p2Yga0JPtdqTIY2Xe5ohJPD9saDJJLPvp9+NSBprVvevdXZybnj2cv8OEd0A==" 171 | }, 172 | "rxjs": { 173 | "version": "6.4.0", 174 | "resolved": "https://registry.npmjs.org/rxjs/-/rxjs-6.4.0.tgz", 175 | "integrity": "sha512-Z9Yfa11F6B9Sg/BK9MnqnQ+aQYicPLtilXBp2yUtDt2JRCE0h26d33EnfO3ZxoNxG0T92OUucP3Ct7cpfkdFfw==", 176 | "requires": { 177 | "tslib": "^1.9.0" 178 | } 179 | }, 180 | "source-map": { 181 | "version": "0.7.3", 182 | "resolved": "https://registry.npmjs.org/source-map/-/source-map-0.7.3.tgz", 183 | "integrity": "sha512-CkCj6giN3S+n9qrYiBTX5gystlENnRW5jZeNLHpe6aue+SrHcG5VYwujhW9s4dY31mEGsxBDrHR6oI69fTXsaQ==" 184 | }, 185 | "sourcemap-codec": { 186 | "version": "1.4.4", 187 | "resolved": "https://registry.npmjs.org/sourcemap-codec/-/sourcemap-codec-1.4.4.tgz", 188 | "integrity": "sha512-CYAPYdBu34781kLHkaW3m6b/uUSyMOC2R61gcYMWooeuaGtjof86ZA/8T+qVPPt7np1085CR9hmMGrySwEc8Xg==" 189 | }, 190 | "tslib": { 191 | "version": "1.10.0", 192 | "resolved": "https://registry.npmjs.org/tslib/-/tslib-1.10.0.tgz", 193 | "integrity": "sha512-qOebF53frne81cf0S9B41ByenJ3/IuH8yJKngAX35CmiZySA0khhkovshKK+jGCaMnVomla7gVlIcc3EvKPbTQ==" 194 | }, 195 | "typescript": { 196 | "version": "3.4.5", 197 | "resolved": "https://registry.npmjs.org/typescript/-/typescript-3.4.5.tgz", 198 | "integrity": "sha512-YycBxUb49UUhdNMU5aJ7z5Ej2XGmaIBL0x34vZ82fn3hGvD+bgrMrVDpatgz2f7YxUMJxMkbWxJZeAvDxVe7Vw==" 199 | }, 200 | "uri-js": { 201 | "version": "4.2.2", 202 | "resolved": "https://registry.npmjs.org/uri-js/-/uri-js-4.2.2.tgz", 203 | "integrity": "sha512-KY9Frmirql91X2Qgjry0Wd4Y+YTdrdZheS8TFwvkbLWf/G5KNJDCh6pKL5OZctEW4+0Baa5idK2ZQuELRwPznQ==", 204 | "requires": { 205 | "punycode": "^2.1.0" 206 | } 207 | }, 208 | "wrappy": { 209 | "version": "1.0.2", 210 | "resolved": "https://registry.npmjs.org/wrappy/-/wrappy-1.0.2.tgz", 211 | "integrity": "sha1-tSQ9jz7BqjXxNkYFvA0QNuMKtp8=" 212 | } 213 | } 214 | } 215 | -------------------------------------------------------------------------------- /2_schematics_options/hello_completed/package-lock.json: -------------------------------------------------------------------------------- 1 | { 2 | "name": "hello", 3 | "version": "0.0.0", 4 | "lockfileVersion": 1, 5 | "requires": true, 6 | "dependencies": { 7 | "@angular-devkit/core": { 8 | "version": "8.0.6", 9 | "resolved": "https://registry.npmjs.org/@angular-devkit/core/-/core-8.0.6.tgz", 10 | "integrity": "sha512-gbKEVsQuYqBJPzgaxEitvs0aN9NwmUHhTkum28mRyPbS3witay/q8+3ls48M2W+98Da/PQbfndxFY4OCa+qHEA==", 11 | "requires": { 12 | "ajv": "6.10.0", 13 | "fast-json-stable-stringify": "2.0.0", 14 | "magic-string": "0.25.2", 15 | "rxjs": "6.4.0", 16 | "source-map": "0.7.3" 17 | } 18 | }, 19 | "@angular-devkit/schematics": { 20 | "version": "8.0.6", 21 | "resolved": "https://registry.npmjs.org/@angular-devkit/schematics/-/schematics-8.0.6.tgz", 22 | "integrity": "sha512-FGPcVKxNvtdFB0A6oHyxtWeugL83nW+kPATlAimgh1hu7TCP94dDpflCV9o/lgZlH817xTYXrhToXJaMZSnDPw==", 23 | "requires": { 24 | "@angular-devkit/core": "8.0.6", 25 | "rxjs": "6.4.0" 26 | } 27 | }, 28 | "@schematics/angular": { 29 | "version": "8.0.6", 30 | "resolved": "https://registry.npmjs.org/@schematics/angular/-/angular-8.0.6.tgz", 31 | "integrity": "sha512-F0/MrbvrJQJIjt0GwEkmf9PZUX0xQlCjlDcH6U7yBni0/+R5Gd5g3G0f12fsSa2iAwpwrLkKpiQluj29eFituQ==", 32 | "requires": { 33 | "@angular-devkit/core": "8.0.6", 34 | "@angular-devkit/schematics": "8.0.6" 35 | } 36 | }, 37 | "@types/jasmine": { 38 | "version": "3.3.13", 39 | "resolved": "https://registry.npmjs.org/@types/jasmine/-/jasmine-3.3.13.tgz", 40 | "integrity": "sha512-iczmLoIiVymaD1TIr2UctxjFkNEslVE/QtNAUmpDsD71cZfZBAsPCUv1Y+8AwsfA8bLx2ccr7d95T9w/UAirlQ==" 41 | }, 42 | "@types/node": { 43 | "version": "8.10.49", 44 | "resolved": "https://registry.npmjs.org/@types/node/-/node-8.10.49.tgz", 45 | "integrity": "sha512-YX30JVx0PvSmJ3Eqr74fYLGeBxD+C7vIL20ek+GGGLJeUbVYRUW3EzyAXpIRA0K8c8o0UWqR/GwEFYiFoz1T8w==" 46 | }, 47 | "ajv": { 48 | "version": "6.10.0", 49 | "resolved": "https://registry.npmjs.org/ajv/-/ajv-6.10.0.tgz", 50 | "integrity": "sha512-nffhOpkymDECQyR0mnsUtoCE8RlX38G0rYP+wgLWFyZuUyuuojSSvi/+euOiQBIn63whYwYVIIH1TvE3tu4OEg==", 51 | "requires": { 52 | "fast-deep-equal": "^2.0.1", 53 | "fast-json-stable-stringify": "^2.0.0", 54 | "json-schema-traverse": "^0.4.1", 55 | "uri-js": "^4.2.2" 56 | } 57 | }, 58 | "balanced-match": { 59 | "version": "1.0.0", 60 | "resolved": "https://registry.npmjs.org/balanced-match/-/balanced-match-1.0.0.tgz", 61 | "integrity": "sha1-ibTRmasr7kneFk6gK4nORi1xt2c=" 62 | }, 63 | "brace-expansion": { 64 | "version": "1.1.11", 65 | "resolved": "https://registry.npmjs.org/brace-expansion/-/brace-expansion-1.1.11.tgz", 66 | "integrity": "sha512-iCuPHDFgrHX7H2vEI/5xpz07zSHB00TpugqhmYtVmMO6518mCuRMoOYFldEBl0g187ufozdaHgWKcYFb61qGiA==", 67 | "requires": { 68 | "balanced-match": "^1.0.0", 69 | "concat-map": "0.0.1" 70 | } 71 | }, 72 | "concat-map": { 73 | "version": "0.0.1", 74 | "resolved": "https://registry.npmjs.org/concat-map/-/concat-map-0.0.1.tgz", 75 | "integrity": "sha1-2Klr13/Wjfd5OnMDajug1UBdR3s=" 76 | }, 77 | "fast-deep-equal": { 78 | "version": "2.0.1", 79 | "resolved": "https://registry.npmjs.org/fast-deep-equal/-/fast-deep-equal-2.0.1.tgz", 80 | "integrity": "sha1-ewUhjd+WZ79/Nwv3/bLLFf3Qqkk=" 81 | }, 82 | "fast-json-stable-stringify": { 83 | "version": "2.0.0", 84 | "resolved": "https://registry.npmjs.org/fast-json-stable-stringify/-/fast-json-stable-stringify-2.0.0.tgz", 85 | "integrity": "sha1-1RQsDK7msRifh9OnYREGT4bIu/I=" 86 | }, 87 | "fs.realpath": { 88 | "version": "1.0.0", 89 | "resolved": "https://registry.npmjs.org/fs.realpath/-/fs.realpath-1.0.0.tgz", 90 | "integrity": "sha1-FQStJSMVjKpA20onh8sBQRmU6k8=" 91 | }, 92 | "glob": { 93 | "version": "7.1.4", 94 | "resolved": "https://registry.npmjs.org/glob/-/glob-7.1.4.tgz", 95 | "integrity": "sha512-hkLPepehmnKk41pUGm3sYxoFs/umurYfYJCerbXEyFIWcAzvpipAgVkBqqT9RBKMGjnq6kMuyYwha6csxbiM1A==", 96 | "requires": { 97 | "fs.realpath": "^1.0.0", 98 | "inflight": "^1.0.4", 99 | "inherits": "2", 100 | "minimatch": "^3.0.4", 101 | "once": "^1.3.0", 102 | "path-is-absolute": "^1.0.0" 103 | } 104 | }, 105 | "inflight": { 106 | "version": "1.0.6", 107 | "resolved": "https://registry.npmjs.org/inflight/-/inflight-1.0.6.tgz", 108 | "integrity": "sha1-Sb1jMdfQLQwJvJEKEHW6gWW1bfk=", 109 | "requires": { 110 | "once": "^1.3.0", 111 | "wrappy": "1" 112 | } 113 | }, 114 | "inherits": { 115 | "version": "2.0.4", 116 | "resolved": "https://registry.npmjs.org/inherits/-/inherits-2.0.4.tgz", 117 | "integrity": "sha512-k/vGaX4/Yla3WzyMCvTQOXYeIHvqOKtnqBduzTHpzpQZzAskKMhZ2K+EnBiSM9zGSoIFeMpXKxa4dYeZIQqewQ==" 118 | }, 119 | "jasmine": { 120 | "version": "3.4.0", 121 | "resolved": "https://registry.npmjs.org/jasmine/-/jasmine-3.4.0.tgz", 122 | "integrity": "sha512-sR9b4n+fnBFDEd7VS2el2DeHgKcPiMVn44rtKFumq9q7P/t8WrxsVIZPob4UDdgcDNCwyDqwxCt4k9TDRmjPoQ==", 123 | "requires": { 124 | "glob": "^7.1.3", 125 | "jasmine-core": "~3.4.0" 126 | } 127 | }, 128 | "jasmine-core": { 129 | "version": "3.4.0", 130 | "resolved": "https://registry.npmjs.org/jasmine-core/-/jasmine-core-3.4.0.tgz", 131 | "integrity": "sha512-HU/YxV4i6GcmiH4duATwAbJQMlE0MsDIR5XmSVxURxKHn3aGAdbY1/ZJFmVRbKtnLwIxxMJD7gYaPsypcbYimg==" 132 | }, 133 | "json-schema-traverse": { 134 | "version": "0.4.1", 135 | "resolved": "https://registry.npmjs.org/json-schema-traverse/-/json-schema-traverse-0.4.1.tgz", 136 | "integrity": "sha512-xbbCH5dCYU5T8LcEhhuh7HJ88HXuW3qsI3Y0zOZFKfZEHcpWiHU/Jxzk629Brsab/mMiHQti9wMP+845RPe3Vg==" 137 | }, 138 | "magic-string": { 139 | "version": "0.25.2", 140 | "resolved": "https://registry.npmjs.org/magic-string/-/magic-string-0.25.2.tgz", 141 | "integrity": "sha512-iLs9mPjh9IuTtRsqqhNGYcZXGei0Nh/A4xirrsqW7c+QhKVFL2vm7U09ru6cHRD22azaP/wMDgI+HCqbETMTtg==", 142 | "requires": { 143 | "sourcemap-codec": "^1.4.4" 144 | } 145 | }, 146 | "minimatch": { 147 | "version": "3.0.4", 148 | "resolved": "https://registry.npmjs.org/minimatch/-/minimatch-3.0.4.tgz", 149 | "integrity": "sha512-yJHVQEhyqPLUTgt9B83PXu6W3rx4MvvHvSUvToogpwoGDOUQ+yDrR0HRot+yOCdCO7u4hX3pWft6kWBBcqh0UA==", 150 | "requires": { 151 | "brace-expansion": "^1.1.7" 152 | } 153 | }, 154 | "once": { 155 | "version": "1.4.0", 156 | "resolved": "https://registry.npmjs.org/once/-/once-1.4.0.tgz", 157 | "integrity": "sha1-WDsap3WWHUsROsF9nFC6753Xa9E=", 158 | "requires": { 159 | "wrappy": "1" 160 | } 161 | }, 162 | "path-is-absolute": { 163 | "version": "1.0.1", 164 | "resolved": "https://registry.npmjs.org/path-is-absolute/-/path-is-absolute-1.0.1.tgz", 165 | "integrity": "sha1-F0uSaHNVNP+8es5r9TpanhtcX18=" 166 | }, 167 | "punycode": { 168 | "version": "2.1.1", 169 | "resolved": "https://registry.npmjs.org/punycode/-/punycode-2.1.1.tgz", 170 | "integrity": "sha512-XRsRjdf+j5ml+y/6GKHPZbrF/8p2Yga0JPtdqTIY2Xe5ohJPD9saDJJLPvp9+NSBprVvevdXZybnj2cv8OEd0A==" 171 | }, 172 | "rxjs": { 173 | "version": "6.4.0", 174 | "resolved": "https://registry.npmjs.org/rxjs/-/rxjs-6.4.0.tgz", 175 | "integrity": "sha512-Z9Yfa11F6B9Sg/BK9MnqnQ+aQYicPLtilXBp2yUtDt2JRCE0h26d33EnfO3ZxoNxG0T92OUucP3Ct7cpfkdFfw==", 176 | "requires": { 177 | "tslib": "^1.9.0" 178 | } 179 | }, 180 | "source-map": { 181 | "version": "0.7.3", 182 | "resolved": "https://registry.npmjs.org/source-map/-/source-map-0.7.3.tgz", 183 | "integrity": "sha512-CkCj6giN3S+n9qrYiBTX5gystlENnRW5jZeNLHpe6aue+SrHcG5VYwujhW9s4dY31mEGsxBDrHR6oI69fTXsaQ==" 184 | }, 185 | "sourcemap-codec": { 186 | "version": "1.4.4", 187 | "resolved": "https://registry.npmjs.org/sourcemap-codec/-/sourcemap-codec-1.4.4.tgz", 188 | "integrity": "sha512-CYAPYdBu34781kLHkaW3m6b/uUSyMOC2R61gcYMWooeuaGtjof86ZA/8T+qVPPt7np1085CR9hmMGrySwEc8Xg==" 189 | }, 190 | "tslib": { 191 | "version": "1.10.0", 192 | "resolved": "https://registry.npmjs.org/tslib/-/tslib-1.10.0.tgz", 193 | "integrity": "sha512-qOebF53frne81cf0S9B41ByenJ3/IuH8yJKngAX35CmiZySA0khhkovshKK+jGCaMnVomla7gVlIcc3EvKPbTQ==" 194 | }, 195 | "typescript": { 196 | "version": "3.4.5", 197 | "resolved": "https://registry.npmjs.org/typescript/-/typescript-3.4.5.tgz", 198 | "integrity": "sha512-YycBxUb49UUhdNMU5aJ7z5Ej2XGmaIBL0x34vZ82fn3hGvD+bgrMrVDpatgz2f7YxUMJxMkbWxJZeAvDxVe7Vw==" 199 | }, 200 | "uri-js": { 201 | "version": "4.2.2", 202 | "resolved": "https://registry.npmjs.org/uri-js/-/uri-js-4.2.2.tgz", 203 | "integrity": "sha512-KY9Frmirql91X2Qgjry0Wd4Y+YTdrdZheS8TFwvkbLWf/G5KNJDCh6pKL5OZctEW4+0Baa5idK2ZQuELRwPznQ==", 204 | "requires": { 205 | "punycode": "^2.1.0" 206 | } 207 | }, 208 | "wrappy": { 209 | "version": "1.0.2", 210 | "resolved": "https://registry.npmjs.org/wrappy/-/wrappy-1.0.2.tgz", 211 | "integrity": "sha1-tSQ9jz7BqjXxNkYFvA0QNuMKtp8=" 212 | } 213 | } 214 | } 215 | -------------------------------------------------------------------------------- /4_schematics_angular_cli_integration/hello/package-lock.json: -------------------------------------------------------------------------------- 1 | { 2 | "name": "hello", 3 | "version": "0.0.0", 4 | "lockfileVersion": 1, 5 | "requires": true, 6 | "dependencies": { 7 | "@angular-devkit/core": { 8 | "version": "8.1.0", 9 | "resolved": "https://registry.npmjs.org/@angular-devkit/core/-/core-8.1.0.tgz", 10 | "integrity": "sha512-Xdtkrs62WMMR1BnSfpBvwjapRYalvArewAi7NXo0QxIFWPhQGbgSqT5PJMie4V3vHHNMbcC9cPzjKGjwwF8FHw==", 11 | "requires": { 12 | "ajv": "6.10.0", 13 | "fast-json-stable-stringify": "2.0.0", 14 | "magic-string": "0.25.3", 15 | "rxjs": "6.4.0", 16 | "source-map": "0.7.3" 17 | } 18 | }, 19 | "@angular-devkit/schematics": { 20 | "version": "8.1.0", 21 | "resolved": "https://registry.npmjs.org/@angular-devkit/schematics/-/schematics-8.1.0.tgz", 22 | "integrity": "sha512-9gatz7QEExtE3MvLcto8k5qNNyqtD+ouHWxIStdKi+L1T/Pys4ylMrUAF8JvHwK6UssVuSPzewe5DTVoNc2B0A==", 23 | "requires": { 24 | "@angular-devkit/core": "8.1.0", 25 | "rxjs": "6.4.0" 26 | } 27 | }, 28 | "@schematics/angular": { 29 | "version": "8.1.0", 30 | "resolved": "https://registry.npmjs.org/@schematics/angular/-/angular-8.1.0.tgz", 31 | "integrity": "sha512-zAZQF5RTzkUXrGzIQn5Be2cUmvRuC4miYnf7K63kbr4Ox4KIBYAcplbd7rINwVG2g/xm8wnZHdfJlGls2u0oYA==", 32 | "requires": { 33 | "@angular-devkit/core": "8.1.0", 34 | "@angular-devkit/schematics": "8.1.0" 35 | } 36 | }, 37 | "@types/jasmine": { 38 | "version": "3.3.13", 39 | "resolved": "https://registry.npmjs.org/@types/jasmine/-/jasmine-3.3.13.tgz", 40 | "integrity": "sha512-iczmLoIiVymaD1TIr2UctxjFkNEslVE/QtNAUmpDsD71cZfZBAsPCUv1Y+8AwsfA8bLx2ccr7d95T9w/UAirlQ==" 41 | }, 42 | "@types/node": { 43 | "version": "8.10.50", 44 | "resolved": "https://registry.npmjs.org/@types/node/-/node-8.10.50.tgz", 45 | "integrity": "sha512-+ZbcUwJdaBgOZpwXeT0v+gHC/jQbEfzoc9s4d0rN0JIKeQbuTrT+A2n1aQY6LpZjrLXJT7avVUqiCecCJeeZxA==" 46 | }, 47 | "ajv": { 48 | "version": "6.10.0", 49 | "resolved": "https://registry.npmjs.org/ajv/-/ajv-6.10.0.tgz", 50 | "integrity": "sha512-nffhOpkymDECQyR0mnsUtoCE8RlX38G0rYP+wgLWFyZuUyuuojSSvi/+euOiQBIn63whYwYVIIH1TvE3tu4OEg==", 51 | "requires": { 52 | "fast-deep-equal": "^2.0.1", 53 | "fast-json-stable-stringify": "^2.0.0", 54 | "json-schema-traverse": "^0.4.1", 55 | "uri-js": "^4.2.2" 56 | } 57 | }, 58 | "balanced-match": { 59 | "version": "1.0.0", 60 | "resolved": "https://registry.npmjs.org/balanced-match/-/balanced-match-1.0.0.tgz", 61 | "integrity": "sha1-ibTRmasr7kneFk6gK4nORi1xt2c=" 62 | }, 63 | "brace-expansion": { 64 | "version": "1.1.11", 65 | "resolved": "https://registry.npmjs.org/brace-expansion/-/brace-expansion-1.1.11.tgz", 66 | "integrity": "sha512-iCuPHDFgrHX7H2vEI/5xpz07zSHB00TpugqhmYtVmMO6518mCuRMoOYFldEBl0g187ufozdaHgWKcYFb61qGiA==", 67 | "requires": { 68 | "balanced-match": "^1.0.0", 69 | "concat-map": "0.0.1" 70 | } 71 | }, 72 | "concat-map": { 73 | "version": "0.0.1", 74 | "resolved": "https://registry.npmjs.org/concat-map/-/concat-map-0.0.1.tgz", 75 | "integrity": "sha1-2Klr13/Wjfd5OnMDajug1UBdR3s=" 76 | }, 77 | "fast-deep-equal": { 78 | "version": "2.0.1", 79 | "resolved": "https://registry.npmjs.org/fast-deep-equal/-/fast-deep-equal-2.0.1.tgz", 80 | "integrity": "sha1-ewUhjd+WZ79/Nwv3/bLLFf3Qqkk=" 81 | }, 82 | "fast-json-stable-stringify": { 83 | "version": "2.0.0", 84 | "resolved": "https://registry.npmjs.org/fast-json-stable-stringify/-/fast-json-stable-stringify-2.0.0.tgz", 85 | "integrity": "sha1-1RQsDK7msRifh9OnYREGT4bIu/I=" 86 | }, 87 | "fs.realpath": { 88 | "version": "1.0.0", 89 | "resolved": "https://registry.npmjs.org/fs.realpath/-/fs.realpath-1.0.0.tgz", 90 | "integrity": "sha1-FQStJSMVjKpA20onh8sBQRmU6k8=" 91 | }, 92 | "glob": { 93 | "version": "7.1.4", 94 | "resolved": "https://registry.npmjs.org/glob/-/glob-7.1.4.tgz", 95 | "integrity": "sha512-hkLPepehmnKk41pUGm3sYxoFs/umurYfYJCerbXEyFIWcAzvpipAgVkBqqT9RBKMGjnq6kMuyYwha6csxbiM1A==", 96 | "requires": { 97 | "fs.realpath": "^1.0.0", 98 | "inflight": "^1.0.4", 99 | "inherits": "2", 100 | "minimatch": "^3.0.4", 101 | "once": "^1.3.0", 102 | "path-is-absolute": "^1.0.0" 103 | } 104 | }, 105 | "inflight": { 106 | "version": "1.0.6", 107 | "resolved": "https://registry.npmjs.org/inflight/-/inflight-1.0.6.tgz", 108 | "integrity": "sha1-Sb1jMdfQLQwJvJEKEHW6gWW1bfk=", 109 | "requires": { 110 | "once": "^1.3.0", 111 | "wrappy": "1" 112 | } 113 | }, 114 | "inherits": { 115 | "version": "2.0.4", 116 | "resolved": "https://registry.npmjs.org/inherits/-/inherits-2.0.4.tgz", 117 | "integrity": "sha512-k/vGaX4/Yla3WzyMCvTQOXYeIHvqOKtnqBduzTHpzpQZzAskKMhZ2K+EnBiSM9zGSoIFeMpXKxa4dYeZIQqewQ==" 118 | }, 119 | "jasmine": { 120 | "version": "3.4.0", 121 | "resolved": "https://registry.npmjs.org/jasmine/-/jasmine-3.4.0.tgz", 122 | "integrity": "sha512-sR9b4n+fnBFDEd7VS2el2DeHgKcPiMVn44rtKFumq9q7P/t8WrxsVIZPob4UDdgcDNCwyDqwxCt4k9TDRmjPoQ==", 123 | "requires": { 124 | "glob": "^7.1.3", 125 | "jasmine-core": "~3.4.0" 126 | } 127 | }, 128 | "jasmine-core": { 129 | "version": "3.4.0", 130 | "resolved": "https://registry.npmjs.org/jasmine-core/-/jasmine-core-3.4.0.tgz", 131 | "integrity": "sha512-HU/YxV4i6GcmiH4duATwAbJQMlE0MsDIR5XmSVxURxKHn3aGAdbY1/ZJFmVRbKtnLwIxxMJD7gYaPsypcbYimg==" 132 | }, 133 | "json-schema-traverse": { 134 | "version": "0.4.1", 135 | "resolved": "https://registry.npmjs.org/json-schema-traverse/-/json-schema-traverse-0.4.1.tgz", 136 | "integrity": "sha512-xbbCH5dCYU5T8LcEhhuh7HJ88HXuW3qsI3Y0zOZFKfZEHcpWiHU/Jxzk629Brsab/mMiHQti9wMP+845RPe3Vg==" 137 | }, 138 | "magic-string": { 139 | "version": "0.25.3", 140 | "resolved": "https://registry.npmjs.org/magic-string/-/magic-string-0.25.3.tgz", 141 | "integrity": "sha512-6QK0OpF/phMz0Q2AxILkX2mFhi7m+WMwTRg0LQKq/WBB0cDP4rYH3Wp4/d3OTXlrPLVJT/RFqj8tFeAR4nk8AA==", 142 | "requires": { 143 | "sourcemap-codec": "^1.4.4" 144 | } 145 | }, 146 | "minimatch": { 147 | "version": "3.0.4", 148 | "resolved": "https://registry.npmjs.org/minimatch/-/minimatch-3.0.4.tgz", 149 | "integrity": "sha512-yJHVQEhyqPLUTgt9B83PXu6W3rx4MvvHvSUvToogpwoGDOUQ+yDrR0HRot+yOCdCO7u4hX3pWft6kWBBcqh0UA==", 150 | "requires": { 151 | "brace-expansion": "^1.1.7" 152 | } 153 | }, 154 | "once": { 155 | "version": "1.4.0", 156 | "resolved": "https://registry.npmjs.org/once/-/once-1.4.0.tgz", 157 | "integrity": "sha1-WDsap3WWHUsROsF9nFC6753Xa9E=", 158 | "requires": { 159 | "wrappy": "1" 160 | } 161 | }, 162 | "path-is-absolute": { 163 | "version": "1.0.1", 164 | "resolved": "https://registry.npmjs.org/path-is-absolute/-/path-is-absolute-1.0.1.tgz", 165 | "integrity": "sha1-F0uSaHNVNP+8es5r9TpanhtcX18=" 166 | }, 167 | "punycode": { 168 | "version": "2.1.1", 169 | "resolved": "https://registry.npmjs.org/punycode/-/punycode-2.1.1.tgz", 170 | "integrity": "sha512-XRsRjdf+j5ml+y/6GKHPZbrF/8p2Yga0JPtdqTIY2Xe5ohJPD9saDJJLPvp9+NSBprVvevdXZybnj2cv8OEd0A==" 171 | }, 172 | "rxjs": { 173 | "version": "6.4.0", 174 | "resolved": "https://registry.npmjs.org/rxjs/-/rxjs-6.4.0.tgz", 175 | "integrity": "sha512-Z9Yfa11F6B9Sg/BK9MnqnQ+aQYicPLtilXBp2yUtDt2JRCE0h26d33EnfO3ZxoNxG0T92OUucP3Ct7cpfkdFfw==", 176 | "requires": { 177 | "tslib": "^1.9.0" 178 | } 179 | }, 180 | "source-map": { 181 | "version": "0.7.3", 182 | "resolved": "https://registry.npmjs.org/source-map/-/source-map-0.7.3.tgz", 183 | "integrity": "sha512-CkCj6giN3S+n9qrYiBTX5gystlENnRW5jZeNLHpe6aue+SrHcG5VYwujhW9s4dY31mEGsxBDrHR6oI69fTXsaQ==" 184 | }, 185 | "sourcemap-codec": { 186 | "version": "1.4.4", 187 | "resolved": "https://registry.npmjs.org/sourcemap-codec/-/sourcemap-codec-1.4.4.tgz", 188 | "integrity": "sha512-CYAPYdBu34781kLHkaW3m6b/uUSyMOC2R61gcYMWooeuaGtjof86ZA/8T+qVPPt7np1085CR9hmMGrySwEc8Xg==" 189 | }, 190 | "tslib": { 191 | "version": "1.10.0", 192 | "resolved": "https://registry.npmjs.org/tslib/-/tslib-1.10.0.tgz", 193 | "integrity": "sha512-qOebF53frne81cf0S9B41ByenJ3/IuH8yJKngAX35CmiZySA0khhkovshKK+jGCaMnVomla7gVlIcc3EvKPbTQ==" 194 | }, 195 | "typescript": { 196 | "version": "3.4.5", 197 | "resolved": "https://registry.npmjs.org/typescript/-/typescript-3.4.5.tgz", 198 | "integrity": "sha512-YycBxUb49UUhdNMU5aJ7z5Ej2XGmaIBL0x34vZ82fn3hGvD+bgrMrVDpatgz2f7YxUMJxMkbWxJZeAvDxVe7Vw==" 199 | }, 200 | "uri-js": { 201 | "version": "4.2.2", 202 | "resolved": "https://registry.npmjs.org/uri-js/-/uri-js-4.2.2.tgz", 203 | "integrity": "sha512-KY9Frmirql91X2Qgjry0Wd4Y+YTdrdZheS8TFwvkbLWf/G5KNJDCh6pKL5OZctEW4+0Baa5idK2ZQuELRwPznQ==", 204 | "requires": { 205 | "punycode": "^2.1.0" 206 | } 207 | }, 208 | "wrappy": { 209 | "version": "1.0.2", 210 | "resolved": "https://registry.npmjs.org/wrappy/-/wrappy-1.0.2.tgz", 211 | "integrity": "sha1-tSQ9jz7BqjXxNkYFvA0QNuMKtp8=" 212 | } 213 | } 214 | } 215 | -------------------------------------------------------------------------------- /4_schematics_angular_cli_integration/hello_completed/package-lock.json: -------------------------------------------------------------------------------- 1 | { 2 | "name": "hello", 3 | "version": "0.0.0", 4 | "lockfileVersion": 1, 5 | "requires": true, 6 | "dependencies": { 7 | "@angular-devkit/core": { 8 | "version": "8.1.0", 9 | "resolved": "https://registry.npmjs.org/@angular-devkit/core/-/core-8.1.0.tgz", 10 | "integrity": "sha512-Xdtkrs62WMMR1BnSfpBvwjapRYalvArewAi7NXo0QxIFWPhQGbgSqT5PJMie4V3vHHNMbcC9cPzjKGjwwF8FHw==", 11 | "requires": { 12 | "ajv": "6.10.0", 13 | "fast-json-stable-stringify": "2.0.0", 14 | "magic-string": "0.25.3", 15 | "rxjs": "6.4.0", 16 | "source-map": "0.7.3" 17 | } 18 | }, 19 | "@angular-devkit/schematics": { 20 | "version": "8.1.0", 21 | "resolved": "https://registry.npmjs.org/@angular-devkit/schematics/-/schematics-8.1.0.tgz", 22 | "integrity": "sha512-9gatz7QEExtE3MvLcto8k5qNNyqtD+ouHWxIStdKi+L1T/Pys4ylMrUAF8JvHwK6UssVuSPzewe5DTVoNc2B0A==", 23 | "requires": { 24 | "@angular-devkit/core": "8.1.0", 25 | "rxjs": "6.4.0" 26 | } 27 | }, 28 | "@schematics/angular": { 29 | "version": "8.1.0", 30 | "resolved": "https://registry.npmjs.org/@schematics/angular/-/angular-8.1.0.tgz", 31 | "integrity": "sha512-zAZQF5RTzkUXrGzIQn5Be2cUmvRuC4miYnf7K63kbr4Ox4KIBYAcplbd7rINwVG2g/xm8wnZHdfJlGls2u0oYA==", 32 | "requires": { 33 | "@angular-devkit/core": "8.1.0", 34 | "@angular-devkit/schematics": "8.1.0" 35 | } 36 | }, 37 | "@types/jasmine": { 38 | "version": "3.3.13", 39 | "resolved": "https://registry.npmjs.org/@types/jasmine/-/jasmine-3.3.13.tgz", 40 | "integrity": "sha512-iczmLoIiVymaD1TIr2UctxjFkNEslVE/QtNAUmpDsD71cZfZBAsPCUv1Y+8AwsfA8bLx2ccr7d95T9w/UAirlQ==" 41 | }, 42 | "@types/node": { 43 | "version": "8.10.50", 44 | "resolved": "https://registry.npmjs.org/@types/node/-/node-8.10.50.tgz", 45 | "integrity": "sha512-+ZbcUwJdaBgOZpwXeT0v+gHC/jQbEfzoc9s4d0rN0JIKeQbuTrT+A2n1aQY6LpZjrLXJT7avVUqiCecCJeeZxA==" 46 | }, 47 | "ajv": { 48 | "version": "6.10.0", 49 | "resolved": "https://registry.npmjs.org/ajv/-/ajv-6.10.0.tgz", 50 | "integrity": "sha512-nffhOpkymDECQyR0mnsUtoCE8RlX38G0rYP+wgLWFyZuUyuuojSSvi/+euOiQBIn63whYwYVIIH1TvE3tu4OEg==", 51 | "requires": { 52 | "fast-deep-equal": "^2.0.1", 53 | "fast-json-stable-stringify": "^2.0.0", 54 | "json-schema-traverse": "^0.4.1", 55 | "uri-js": "^4.2.2" 56 | } 57 | }, 58 | "balanced-match": { 59 | "version": "1.0.0", 60 | "resolved": "https://registry.npmjs.org/balanced-match/-/balanced-match-1.0.0.tgz", 61 | "integrity": "sha1-ibTRmasr7kneFk6gK4nORi1xt2c=" 62 | }, 63 | "brace-expansion": { 64 | "version": "1.1.11", 65 | "resolved": "https://registry.npmjs.org/brace-expansion/-/brace-expansion-1.1.11.tgz", 66 | "integrity": "sha512-iCuPHDFgrHX7H2vEI/5xpz07zSHB00TpugqhmYtVmMO6518mCuRMoOYFldEBl0g187ufozdaHgWKcYFb61qGiA==", 67 | "requires": { 68 | "balanced-match": "^1.0.0", 69 | "concat-map": "0.0.1" 70 | } 71 | }, 72 | "concat-map": { 73 | "version": "0.0.1", 74 | "resolved": "https://registry.npmjs.org/concat-map/-/concat-map-0.0.1.tgz", 75 | "integrity": "sha1-2Klr13/Wjfd5OnMDajug1UBdR3s=" 76 | }, 77 | "fast-deep-equal": { 78 | "version": "2.0.1", 79 | "resolved": "https://registry.npmjs.org/fast-deep-equal/-/fast-deep-equal-2.0.1.tgz", 80 | "integrity": "sha1-ewUhjd+WZ79/Nwv3/bLLFf3Qqkk=" 81 | }, 82 | "fast-json-stable-stringify": { 83 | "version": "2.0.0", 84 | "resolved": "https://registry.npmjs.org/fast-json-stable-stringify/-/fast-json-stable-stringify-2.0.0.tgz", 85 | "integrity": "sha1-1RQsDK7msRifh9OnYREGT4bIu/I=" 86 | }, 87 | "fs.realpath": { 88 | "version": "1.0.0", 89 | "resolved": "https://registry.npmjs.org/fs.realpath/-/fs.realpath-1.0.0.tgz", 90 | "integrity": "sha1-FQStJSMVjKpA20onh8sBQRmU6k8=" 91 | }, 92 | "glob": { 93 | "version": "7.1.4", 94 | "resolved": "https://registry.npmjs.org/glob/-/glob-7.1.4.tgz", 95 | "integrity": "sha512-hkLPepehmnKk41pUGm3sYxoFs/umurYfYJCerbXEyFIWcAzvpipAgVkBqqT9RBKMGjnq6kMuyYwha6csxbiM1A==", 96 | "requires": { 97 | "fs.realpath": "^1.0.0", 98 | "inflight": "^1.0.4", 99 | "inherits": "2", 100 | "minimatch": "^3.0.4", 101 | "once": "^1.3.0", 102 | "path-is-absolute": "^1.0.0" 103 | } 104 | }, 105 | "inflight": { 106 | "version": "1.0.6", 107 | "resolved": "https://registry.npmjs.org/inflight/-/inflight-1.0.6.tgz", 108 | "integrity": "sha1-Sb1jMdfQLQwJvJEKEHW6gWW1bfk=", 109 | "requires": { 110 | "once": "^1.3.0", 111 | "wrappy": "1" 112 | } 113 | }, 114 | "inherits": { 115 | "version": "2.0.4", 116 | "resolved": "https://registry.npmjs.org/inherits/-/inherits-2.0.4.tgz", 117 | "integrity": "sha512-k/vGaX4/Yla3WzyMCvTQOXYeIHvqOKtnqBduzTHpzpQZzAskKMhZ2K+EnBiSM9zGSoIFeMpXKxa4dYeZIQqewQ==" 118 | }, 119 | "jasmine": { 120 | "version": "3.4.0", 121 | "resolved": "https://registry.npmjs.org/jasmine/-/jasmine-3.4.0.tgz", 122 | "integrity": "sha512-sR9b4n+fnBFDEd7VS2el2DeHgKcPiMVn44rtKFumq9q7P/t8WrxsVIZPob4UDdgcDNCwyDqwxCt4k9TDRmjPoQ==", 123 | "requires": { 124 | "glob": "^7.1.3", 125 | "jasmine-core": "~3.4.0" 126 | } 127 | }, 128 | "jasmine-core": { 129 | "version": "3.4.0", 130 | "resolved": "https://registry.npmjs.org/jasmine-core/-/jasmine-core-3.4.0.tgz", 131 | "integrity": "sha512-HU/YxV4i6GcmiH4duATwAbJQMlE0MsDIR5XmSVxURxKHn3aGAdbY1/ZJFmVRbKtnLwIxxMJD7gYaPsypcbYimg==" 132 | }, 133 | "json-schema-traverse": { 134 | "version": "0.4.1", 135 | "resolved": "https://registry.npmjs.org/json-schema-traverse/-/json-schema-traverse-0.4.1.tgz", 136 | "integrity": "sha512-xbbCH5dCYU5T8LcEhhuh7HJ88HXuW3qsI3Y0zOZFKfZEHcpWiHU/Jxzk629Brsab/mMiHQti9wMP+845RPe3Vg==" 137 | }, 138 | "magic-string": { 139 | "version": "0.25.3", 140 | "resolved": "https://registry.npmjs.org/magic-string/-/magic-string-0.25.3.tgz", 141 | "integrity": "sha512-6QK0OpF/phMz0Q2AxILkX2mFhi7m+WMwTRg0LQKq/WBB0cDP4rYH3Wp4/d3OTXlrPLVJT/RFqj8tFeAR4nk8AA==", 142 | "requires": { 143 | "sourcemap-codec": "^1.4.4" 144 | } 145 | }, 146 | "minimatch": { 147 | "version": "3.0.4", 148 | "resolved": "https://registry.npmjs.org/minimatch/-/minimatch-3.0.4.tgz", 149 | "integrity": "sha512-yJHVQEhyqPLUTgt9B83PXu6W3rx4MvvHvSUvToogpwoGDOUQ+yDrR0HRot+yOCdCO7u4hX3pWft6kWBBcqh0UA==", 150 | "requires": { 151 | "brace-expansion": "^1.1.7" 152 | } 153 | }, 154 | "once": { 155 | "version": "1.4.0", 156 | "resolved": "https://registry.npmjs.org/once/-/once-1.4.0.tgz", 157 | "integrity": "sha1-WDsap3WWHUsROsF9nFC6753Xa9E=", 158 | "requires": { 159 | "wrappy": "1" 160 | } 161 | }, 162 | "path-is-absolute": { 163 | "version": "1.0.1", 164 | "resolved": "https://registry.npmjs.org/path-is-absolute/-/path-is-absolute-1.0.1.tgz", 165 | "integrity": "sha1-F0uSaHNVNP+8es5r9TpanhtcX18=" 166 | }, 167 | "punycode": { 168 | "version": "2.1.1", 169 | "resolved": "https://registry.npmjs.org/punycode/-/punycode-2.1.1.tgz", 170 | "integrity": "sha512-XRsRjdf+j5ml+y/6GKHPZbrF/8p2Yga0JPtdqTIY2Xe5ohJPD9saDJJLPvp9+NSBprVvevdXZybnj2cv8OEd0A==" 171 | }, 172 | "rxjs": { 173 | "version": "6.4.0", 174 | "resolved": "https://registry.npmjs.org/rxjs/-/rxjs-6.4.0.tgz", 175 | "integrity": "sha512-Z9Yfa11F6B9Sg/BK9MnqnQ+aQYicPLtilXBp2yUtDt2JRCE0h26d33EnfO3ZxoNxG0T92OUucP3Ct7cpfkdFfw==", 176 | "requires": { 177 | "tslib": "^1.9.0" 178 | } 179 | }, 180 | "source-map": { 181 | "version": "0.7.3", 182 | "resolved": "https://registry.npmjs.org/source-map/-/source-map-0.7.3.tgz", 183 | "integrity": "sha512-CkCj6giN3S+n9qrYiBTX5gystlENnRW5jZeNLHpe6aue+SrHcG5VYwujhW9s4dY31mEGsxBDrHR6oI69fTXsaQ==" 184 | }, 185 | "sourcemap-codec": { 186 | "version": "1.4.4", 187 | "resolved": "https://registry.npmjs.org/sourcemap-codec/-/sourcemap-codec-1.4.4.tgz", 188 | "integrity": "sha512-CYAPYdBu34781kLHkaW3m6b/uUSyMOC2R61gcYMWooeuaGtjof86ZA/8T+qVPPt7np1085CR9hmMGrySwEc8Xg==" 189 | }, 190 | "tslib": { 191 | "version": "1.10.0", 192 | "resolved": "https://registry.npmjs.org/tslib/-/tslib-1.10.0.tgz", 193 | "integrity": "sha512-qOebF53frne81cf0S9B41ByenJ3/IuH8yJKngAX35CmiZySA0khhkovshKK+jGCaMnVomla7gVlIcc3EvKPbTQ==" 194 | }, 195 | "typescript": { 196 | "version": "3.4.5", 197 | "resolved": "https://registry.npmjs.org/typescript/-/typescript-3.4.5.tgz", 198 | "integrity": "sha512-YycBxUb49UUhdNMU5aJ7z5Ej2XGmaIBL0x34vZ82fn3hGvD+bgrMrVDpatgz2f7YxUMJxMkbWxJZeAvDxVe7Vw==" 199 | }, 200 | "uri-js": { 201 | "version": "4.2.2", 202 | "resolved": "https://registry.npmjs.org/uri-js/-/uri-js-4.2.2.tgz", 203 | "integrity": "sha512-KY9Frmirql91X2Qgjry0Wd4Y+YTdrdZheS8TFwvkbLWf/G5KNJDCh6pKL5OZctEW4+0Baa5idK2ZQuELRwPznQ==", 204 | "requires": { 205 | "punycode": "^2.1.0" 206 | } 207 | }, 208 | "wrappy": { 209 | "version": "1.0.2", 210 | "resolved": "https://registry.npmjs.org/wrappy/-/wrappy-1.0.2.tgz", 211 | "integrity": "sha1-tSQ9jz7BqjXxNkYFvA0QNuMKtp8=" 212 | } 213 | } 214 | } 215 | --------------------------------------------------------------------------------