File tree Expand file tree Collapse file tree 13 files changed +163
-39
lines changed Expand file tree Collapse file tree 13 files changed +163
-39
lines changed Original file line number Diff line number Diff line change 11import { getAppFromConfig } from '../../utilities/app-utils' ;
2- import { dynamicPathParser } from '../../utilities/dynamic-path-parser' ;
2+ import { dynamicPathParser , DynamicPathOptions } from '../../utilities/dynamic-path-parser' ;
33import { CliConfig } from '../../models/config' ;
44
55const stringUtils = require ( 'ember-cli-string-utils' ) ;
@@ -27,7 +27,14 @@ export default Blueprint.extend({
2727
2828 normalizeEntityName : function ( entityName : string ) {
2929 const appConfig = getAppFromConfig ( this . options . app ) ;
30- const parsedPath = dynamicPathParser ( this . project , entityName . split ( '.' ) [ 0 ] , appConfig ) ;
30+ const dynamicPathOptions : DynamicPathOptions = {
31+ project : this . project ,
32+ entityName : entityName . split ( '.' ) [ 0 ] ,
33+ appConfig,
34+ dryRun : this . options . dryRun
35+ } ;
36+
37+ const parsedPath = dynamicPathParser ( dynamicPathOptions ) ;
3138
3239 this . dynamicPath = parsedPath ;
3340 return parsedPath . name ;
Original file line number Diff line number Diff line change @@ -5,7 +5,7 @@ import { oneLine } from 'common-tags';
55import { NodeHost } from '../../lib/ast-tools' ;
66import { CliConfig } from '../../models/config' ;
77import { getAppFromConfig } from '../../utilities/app-utils' ;
8- import { dynamicPathParser } from '../../utilities/dynamic-path-parser' ;
8+ import { dynamicPathParser , DynamicPathOptions } from '../../utilities/dynamic-path-parser' ;
99import { resolveModulePath } from '../../utilities/resolve-module-file' ;
1010
1111const Blueprint = require ( '../../ember-cli/lib/models/blueprint' ) ;
@@ -125,7 +125,13 @@ export default Blueprint.extend({
125125
126126 normalizeEntityName : function ( entityName : string ) {
127127 const appConfig = getAppFromConfig ( this . options . app ) ;
128- const parsedPath = dynamicPathParser ( this . project , entityName , appConfig ) ;
128+ const dynamicPathOptions : DynamicPathOptions = {
129+ project : this . project ,
130+ entityName,
131+ appConfig,
132+ dryRun : this . options . dryRun
133+ } ;
134+ const parsedPath = dynamicPathParser ( dynamicPathOptions ) ;
129135
130136 this . dynamicPath = parsedPath ;
131137
Original file line number Diff line number Diff line change @@ -5,7 +5,7 @@ import { NodeHost } from '../../lib/ast-tools';
55import { CliConfig } from '../../models/config' ;
66import { getAppFromConfig } from '../../utilities/app-utils' ;
77import { resolveModulePath } from '../../utilities/resolve-module-file' ;
8- import { dynamicPathParser } from '../../utilities/dynamic-path-parser' ;
8+ import { dynamicPathParser , DynamicPathOptions } from '../../utilities/dynamic-path-parser' ;
99
1010const stringUtils = require ( 'ember-cli-string-utils' ) ;
1111const astUtils = require ( '../../utilities/ast-utils' ) ;
@@ -78,7 +78,13 @@ export default Blueprint.extend({
7878
7979 normalizeEntityName : function ( entityName : string ) {
8080 const appConfig = getAppFromConfig ( this . options . app ) ;
81- const parsedPath = dynamicPathParser ( this . project , entityName , appConfig ) ;
81+ const dynamicPathOptions : DynamicPathOptions = {
82+ project : this . project ,
83+ entityName,
84+ appConfig,
85+ dryRun : this . options . dryRun
86+ } ;
87+ const parsedPath = dynamicPathParser ( dynamicPathOptions ) ;
8288
8389 this . dynamicPath = parsedPath ;
8490
Original file line number Diff line number Diff line change 11import { getAppFromConfig } from '../../utilities/app-utils' ;
2- import { dynamicPathParser } from '../../utilities/dynamic-path-parser' ;
2+ import { dynamicPathParser , DynamicPathOptions } from '../../utilities/dynamic-path-parser' ;
33
44const stringUtils = require ( 'ember-cli-string-utils' ) ;
55const Blueprint = require ( '../../ember-cli/lib/models/blueprint' ) ;
@@ -20,7 +20,13 @@ export default Blueprint.extend({
2020
2121 normalizeEntityName : function ( entityName : string ) {
2222 const appConfig = getAppFromConfig ( this . options . app ) ;
23- const parsedPath = dynamicPathParser ( this . project , entityName , appConfig ) ;
23+ const dynamicPathOptions : DynamicPathOptions = {
24+ project : this . project ,
25+ entityName,
26+ appConfig,
27+ dryRun : this . options . dryRun
28+ } ;
29+ const parsedPath = dynamicPathParser ( dynamicPathOptions ) ;
2430
2531 this . dynamicPath = parsedPath ;
2632 return parsedPath . name ;
Original file line number Diff line number Diff line change @@ -3,7 +3,7 @@ import * as path from 'path';
33import { oneLine } from 'common-tags' ;
44import { NodeHost } from '../../lib/ast-tools' ;
55import { CliConfig } from '../../models/config' ;
6- import { dynamicPathParser } from '../../utilities/dynamic-path-parser' ;
6+ import { dynamicPathParser , DynamicPathOptions } from '../../utilities/dynamic-path-parser' ;
77import { getAppFromConfig } from '../../utilities/app-utils' ;
88import { resolveModulePath } from '../../utilities/resolve-module-file' ;
99
@@ -46,7 +46,13 @@ export default Blueprint.extend({
4646
4747 normalizeEntityName : function ( entityName : string ) {
4848 const appConfig = getAppFromConfig ( this . options . app ) ;
49- const parsedPath = dynamicPathParser ( this . project , entityName , appConfig ) ;
49+ const dynamicPathOptions : DynamicPathOptions = {
50+ project : this . project ,
51+ entityName,
52+ appConfig,
53+ dryRun : this . options . dryRun
54+ } ;
55+ const parsedPath = dynamicPathParser ( dynamicPathOptions ) ;
5056
5157 this . dynamicPath = parsedPath ;
5258 return parsedPath . name ;
Original file line number Diff line number Diff line change 11import { CliConfig } from '../../models/config' ;
22import { getAppFromConfig } from '../../utilities/app-utils' ;
3- import { dynamicPathParser } from '../../utilities/dynamic-path-parser' ;
3+ import { dynamicPathParser , DynamicPathOptions } from '../../utilities/dynamic-path-parser' ;
44
55const stringUtils = require ( 'ember-cli-string-utils' ) ;
66const Blueprint = require ( '../../ember-cli/lib/models/blueprint' ) ;
@@ -25,7 +25,13 @@ export default Blueprint.extend({
2525
2626 normalizeEntityName : function ( entityName : string ) {
2727 const appConfig = getAppFromConfig ( this . options . app ) ;
28- const parsedPath = dynamicPathParser ( this . project , entityName , appConfig ) ;
28+ const dynamicPathOptions : DynamicPathOptions = {
29+ project : this . project ,
30+ entityName,
31+ appConfig,
32+ dryRun : this . options . dryRun
33+ } ;
34+ const parsedPath = dynamicPathParser ( dynamicPathOptions ) ;
2935
3036 this . dynamicPath = parsedPath ;
3137 return parsedPath . name ;
Original file line number Diff line number Diff line change @@ -5,7 +5,7 @@ import { NodeHost } from '../../lib/ast-tools';
55import { CliConfig } from '../../models/config' ;
66import { getAppFromConfig } from '../../utilities/app-utils' ;
77import { resolveModulePath } from '../../utilities/resolve-module-file' ;
8- import { dynamicPathParser } from '../../utilities/dynamic-path-parser' ;
8+ import { dynamicPathParser , DynamicPathOptions } from '../../utilities/dynamic-path-parser' ;
99
1010const stringUtils = require ( 'ember-cli-string-utils' ) ;
1111const Blueprint = require ( '../../ember-cli/lib/models/blueprint' ) ;
@@ -58,7 +58,13 @@ export default Blueprint.extend({
5858 normalizeEntityName : function ( entityName : string ) {
5959 this . entityName = entityName ;
6060 const appConfig = getAppFromConfig ( this . options . app ) ;
61- const parsedPath = dynamicPathParser ( this . project , entityName , appConfig ) ;
61+ const dynamicPathOptions : DynamicPathOptions = {
62+ project : this . project ,
63+ entityName,
64+ appConfig,
65+ dryRun : this . options . dryRun
66+ } ;
67+ const parsedPath = dynamicPathParser ( dynamicPathOptions ) ;
6268
6369 this . dynamicPath = parsedPath ;
6470 return parsedPath . name ;
Original file line number Diff line number Diff line change @@ -2,7 +2,7 @@ import * as chalk from 'chalk';
22import * as path from 'path' ;
33import { NodeHost } from '../../lib/ast-tools' ;
44import { CliConfig } from '../../models/config' ;
5- import { dynamicPathParser } from '../../utilities/dynamic-path-parser' ;
5+ import { dynamicPathParser , DynamicPathOptions } from '../../utilities/dynamic-path-parser' ;
66import { getAppFromConfig } from '../../utilities/app-utils' ;
77import { resolveModulePath } from '../../utilities/resolve-module-file' ;
88
@@ -72,7 +72,13 @@ export default Blueprint.extend({
7272
7373 normalizeEntityName : function ( entityName : string ) {
7474 const appConfig = getAppFromConfig ( this . options . app ) ;
75- const parsedPath = dynamicPathParser ( this . project , entityName , appConfig ) ;
75+ const dynamicPathOptions : DynamicPathOptions = {
76+ project : this . project ,
77+ entityName,
78+ appConfig,
79+ dryRun : this . options . dryRun
80+ } ;
81+ const parsedPath = dynamicPathParser ( dynamicPathOptions ) ;
7682
7783 this . dynamicPath = parsedPath ;
7884 return parsedPath . name ;
Original file line number Diff line number Diff line change @@ -3,7 +3,7 @@ import * as path from 'path';
33import { oneLine } from 'common-tags' ;
44import { NodeHost } from '../../lib/ast-tools' ;
55import { CliConfig } from '../../models/config' ;
6- import { dynamicPathParser } from '../../utilities/dynamic-path-parser' ;
6+ import { dynamicPathParser , DynamicPathOptions } from '../../utilities/dynamic-path-parser' ;
77import { getAppFromConfig } from '../../utilities/app-utils' ;
88import { resolveModulePath } from '../../utilities/resolve-module-file' ;
99
@@ -51,7 +51,13 @@ export default Blueprint.extend({
5151
5252 normalizeEntityName : function ( entityName : string ) {
5353 const appConfig = getAppFromConfig ( this . options . app ) ;
54- const parsedPath = dynamicPathParser ( this . project , entityName , appConfig ) ;
54+ const dynamicPathOptions : DynamicPathOptions = {
55+ project : this . project ,
56+ entityName,
57+ appConfig,
58+ dryRun : this . options . dryRun
59+ } ;
60+ const parsedPath = dynamicPathParser ( dynamicPathOptions ) ;
5561
5662 this . dynamicPath = parsedPath ;
5763 return parsedPath . name ;
Original file line number Diff line number Diff line change @@ -517,7 +517,7 @@ Blueprint.prototype.install = function(options) {
517517 ui . writeLine ( chalk . yellow ( 'You specified the dry-run flag, so no' +
518518 ' changes will be written.' ) ) ;
519519 }
520-
520+
521521 this . _normalizeEntityName ( options . entity ) ;
522522 this . _checkForPod ( options . verbose ) ;
523523 this . _checkInRepoAddonExists ( options . inRepoAddon ) ;
You can’t perform that action at this time.
0 commit comments