@@ -74,10 +74,8 @@ export class ProjectService implements IProjectService {
74
74
try {
75
75
//TODO: plamen5kov: move copy of template and npm uninstall in prepareTemplate logic
76
76
this . createProjectCore ( projectDir , appPath , projectId ) . wait ( ) ;
77
- //update dependencies and devDependencies of newly created project with data from template
78
77
this . mergeProjectAndTemplateProperties ( projectDir , appPath ) . wait ( ) ; //merging dependencies from template (dev && prod)
79
- this . updateAppResourcesDir ( projectAppDirectory , appPath ) . wait ( ) ;
80
- this . $npm . install ( projectAppDirectory , projectAppDirectory , { "ignore-scripts" : this . $options . ignoreScripts } ) . wait ( ) ;
78
+ this . $npm . install ( projectDir , projectDir , { "ignore-scripts" : this . $options . ignoreScripts } ) . wait ( ) ;
81
79
selectedTemplate = selectedTemplate || "" ;
82
80
let templateName = ( constants . RESERVED_TEMPLATE_NAMES [ selectedTemplate . toLowerCase ( ) ] || selectedTemplate /*user template*/ ) || constants . RESERVED_TEMPLATE_NAMES [ "default" ] ;
83
81
this . $npm . uninstall ( templateName , { save : true } , projectDir ) . wait ( ) ;
@@ -114,15 +112,6 @@ export class ProjectService implements IProjectService {
114
112
} ) . future < void > ( ) ( ) ;
115
113
}
116
114
117
- private updateAppResourcesDir ( projectAppDirectory : string , appPath : string ) : IFuture < void > {
118
- return ( ( ) => {
119
- let defaultAppResourcesDir = path . join ( appPath , constants . APP_RESOURCES_FOLDER_NAME ) ;
120
- let targetAppResourcesDir = path . join ( projectAppDirectory , constants . APP_RESOURCES_FOLDER_NAME ) ;
121
- this . $logger . trace ( `Updating AppResources values from ${ defaultAppResourcesDir } to ${ targetAppResourcesDir } ` ) ;
122
- shelljs . cp ( "-R" , path . join ( defaultAppResourcesDir , "*" ) , targetAppResourcesDir ) ;
123
- } ) . future < void > ( ) ( ) ;
124
- }
125
-
126
115
private mergeDependencies ( projectDependencies : IStringDictionary , templateDependencies : IStringDictionary ) : IStringDictionary {
127
116
// Cast to any when logging as logger thinks it can print only string.
128
117
// Cannot use toString() because we want to print the whole objects, not [Object object]
0 commit comments