Skip to content

Commit

Permalink
Schematics CLI 6 (#10703)
Browse files Browse the repository at this point in the history
* Remove JS files that were accidentally comitted

* wip schematics 6.0 update

* chore: update utils

* chore: fix ngadd

* chore: updates

* chore: pr feedback

* chore: fixes

* chore: fix name

* chore: fix lint

* chore: remove unneeded var

* chore: fix path

* chore: test fixes

* chore: fix from path

* chore: fix test?

* chore: fix test?

* chore: fix test?

* chore: fix theme path

* chore: fix import
  • Loading branch information
amcdnl authored and tinayuangao committed Apr 12, 2018
1 parent c880faa commit 023e8f4
Show file tree
Hide file tree
Showing 63 changed files with 468 additions and 2,157 deletions.
32 changes: 0 additions & 32 deletions src/lib/schematics/dashboard/index.js

This file was deleted.

1 change: 0 additions & 1 deletion src/lib/schematics/dashboard/index.js.map

This file was deleted.

3 changes: 1 addition & 2 deletions src/lib/schematics/dashboard/index.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
import {chain, Rule, noop, Tree, SchematicContext} from '@angular-devkit/schematics';
import {Schema} from './schema';
import {addModuleImportToModule} from '../utils/ast';
import {findModuleFromOptions} from '../utils/devkit-utils/find-module';
import {addModuleImportToModule, findModuleFromOptions} from '../utils/ast';
import {buildComponent} from '../utils/devkit-utils/component';

/**
Expand Down
51 changes: 0 additions & 51 deletions src/lib/schematics/dashboard/index_spec.js

This file was deleted.

1 change: 0 additions & 1 deletion src/lib/schematics/dashboard/index_spec.js.map

This file was deleted.

31 changes: 14 additions & 17 deletions src/lib/schematics/dashboard/schema.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,56 +6,52 @@
"properties": {
"path": {
"type": "string",
"format": "path",
"description": "The path to create the component.",
"default": "app",
"visible": false
},
"sourceDir": {
"project": {
"type": "string",
"description": "The path of the source directory.",
"default": "src",
"alias": "sd",
"visible": false
},
"appRoot": {
"type": "string",
"description": "The root of the application.",
"description": "The name of the project.",
"visible": false
},
"name": {
"type": "string",
"description": "The name of the component."
"description": "The name of the component.",
"$default": {
"$source": "argv",
"index": 0
}
},
"inlineStyle": {
"description": "Specifies if the style will be in the ts file.",
"type": "boolean",
"default": false,
"alias": "is"
"alias": "s"
},
"inlineTemplate": {
"description": "Specifies if the template will be in the ts file.",
"type": "boolean",
"default": false,
"alias": "it"
"alias": "t"
},
"viewEncapsulation": {
"description": "Specifies the view encapsulation strategy.",
"enum": ["Emulated", "Native", "None"],
"type": "string",
"default": "Emulated",
"alias": "ve"
"alias": "v"
},
"changeDetection": {
"description": "Specifies the change detection strategy.",
"enum": ["Default", "OnPush"],
"type": "string",
"default": "Default",
"alias": "cd"
"alias": "c"
},
"prefix": {
"type": "string",
"format": "html-selector",
"description": "The prefix to apply to generated selectors.",
"default": "app",
"alias": "p"
},
"styleext": {
Expand All @@ -80,6 +76,7 @@
},
"selector": {
"type": "string",
"format": "html-selector",
"description": "The selector to use for the component."
},
"module": {
Expand Down
33 changes: 0 additions & 33 deletions src/lib/schematics/nav/index.js

This file was deleted.

1 change: 0 additions & 1 deletion src/lib/schematics/nav/index.js.map

This file was deleted.

3 changes: 1 addition & 2 deletions src/lib/schematics/nav/index.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
import {chain, Rule, noop, Tree, SchematicContext} from '@angular-devkit/schematics';
import {Schema} from './schema';
import {addModuleImportToModule} from '../utils/ast';
import {findModuleFromOptions} from '../utils/devkit-utils/find-module';
import {addModuleImportToModule, findModuleFromOptions} from '../utils/ast';
import {buildComponent} from '../utils/devkit-utils/component';

/**
Expand Down
53 changes: 0 additions & 53 deletions src/lib/schematics/nav/index_spec.js

This file was deleted.

1 change: 0 additions & 1 deletion src/lib/schematics/nav/index_spec.js.map

This file was deleted.

31 changes: 14 additions & 17 deletions src/lib/schematics/nav/schema.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,56 +6,52 @@
"properties": {
"path": {
"type": "string",
"format": "path",
"description": "The path to create the component.",
"default": "app",
"visible": false
},
"sourceDir": {
"project": {
"type": "string",
"description": "The path of the source directory.",
"default": "src",
"alias": "sd",
"visible": false
},
"appRoot": {
"type": "string",
"description": "The root of the application.",
"description": "The name of the project.",
"visible": false
},
"name": {
"type": "string",
"description": "The name of the component."
"description": "The name of the component.",
"$default": {
"$source": "argv",
"index": 0
}
},
"inlineStyle": {
"description": "Specifies if the style will be in the ts file.",
"type": "boolean",
"default": false,
"alias": "is"
"alias": "s"
},
"inlineTemplate": {
"description": "Specifies if the template will be in the ts file.",
"type": "boolean",
"default": false,
"alias": "it"
"alias": "t"
},
"viewEncapsulation": {
"description": "Specifies the view encapsulation strategy.",
"enum": ["Emulated", "Native", "None"],
"type": "string",
"default": "Emulated",
"alias": "ve"
"alias": "v"
},
"changeDetection": {
"description": "Specifies the change detection strategy.",
"enum": ["Default", "OnPush"],
"type": "string",
"default": "Default",
"alias": "cd"
"alias": "c"
},
"prefix": {
"type": "string",
"format": "html-selector",
"description": "The prefix to apply to generated selectors.",
"default": "app",
"alias": "p"
},
"styleext": {
Expand All @@ -80,6 +76,7 @@
},
"selector": {
"type": "string",
"format": "html-selector",
"description": "The selector to use for the component."
},
"module": {
Expand Down
Loading

0 comments on commit 023e8f4

Please sign in to comment.