@@ -41,7 +41,7 @@ var class_name,
41
41
appsToCreate = [ ] ,
42
42
appsToInstallPluginIn = [ ] ,
43
43
demoTsSearchTerm = ".bindingContext =" ,
44
- demoAngularSearchTerm = 'templateUrl: "./ app.component.html"' ,
44
+ demoAngularSearchTerm = 'templateUrl: "app.component.html"' ,
45
45
demoVueSearchTerm = '<Page class="page">' ,
46
46
preDefinedInclude = [
47
47
"../src" ,
@@ -206,7 +206,7 @@ function askAngularDemo() {
206
206
function createDemoAppsFromTemplates ( ) {
207
207
if ( inputParams . include_typescript_demo && inputParams . include_typescript_demo . toLowerCase ( ) === "y" ) {
208
208
appsToCreate . push ( {
209
- command : "cd ../ && tns create " + tsAppName + " --ts && cd " + tsAppName + " && cd ../src/" ,
209
+ command : "cd ../ && tns create " + tsAppName + " --template tns-template-blank- ts && cd " + tsAppName + " && cd ../src/" ,
210
210
successMessage : "TypeScript-NativeScript application created at: /demo" ,
211
211
type : "TypeScript"
212
212
} ) ;
@@ -215,7 +215,7 @@ function createDemoAppsFromTemplates() {
215
215
216
216
if ( inputParams . include_angular_demo && inputParams . include_angular_demo . toLowerCase ( ) === "y" ) {
217
217
appsToCreate . push ( {
218
- command : "cd ../ && tns create " + angularAppName + " --ng && cd " + angularAppName + " && cd ../src/" ,
218
+ command : "cd ../ && tns create " + angularAppName + " --template tns-template-blank- ng && cd " + angularAppName + " && cd ../src/" ,
219
219
successMessage : "Angular-NativeScript application created at: /demo-angular" ,
220
220
type : "Angular"
221
221
} ) ;
@@ -293,7 +293,7 @@ function adjustScripts() {
293
293
files . push ( "platforms/android/include.gradle" ) ;
294
294
295
295
// add the demo files
296
- let demoAppPath = demo_folder + "/app/" ;
296
+ let demoAppPath = demo_folder + "/app/home/ " ;
297
297
if ( fs . existsSync ( demoAppPath ) ) {
298
298
files . push ( demo_folder + "/package.json" ) ;
299
299
var demoFiles = fs . readdirSync ( demoAppPath ) ;
0 commit comments