Skip to content

Commit 3ce2e49

Browse files
author
VladimirAmiorkov
committed
chore
1 parent 6ab4462 commit 3ce2e49

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

Diff for: src/scripts/postclone.js

+4-4
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ var class_name,
4141
appsToCreate = [],
4242
appsToInstallPluginIn = [],
4343
demoTsSearchTerm = ".bindingContext =",
44-
demoAngularSearchTerm = 'templateUrl: "./app.component.html"',
44+
demoAngularSearchTerm = 'templateUrl: "app.component.html"',
4545
demoVueSearchTerm = '<Page class="page">',
4646
preDefinedInclude = [
4747
"../src",
@@ -206,7 +206,7 @@ function askAngularDemo() {
206206
function createDemoAppsFromTemplates() {
207207
if (inputParams.include_typescript_demo && inputParams.include_typescript_demo.toLowerCase() === "y") {
208208
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/",
210210
successMessage: "TypeScript-NativeScript application created at: /demo",
211211
type: "TypeScript"
212212
});
@@ -215,7 +215,7 @@ function createDemoAppsFromTemplates() {
215215

216216
if (inputParams.include_angular_demo && inputParams.include_angular_demo.toLowerCase() === "y") {
217217
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/",
219219
successMessage: "Angular-NativeScript application created at: /demo-angular",
220220
type: "Angular"
221221
});
@@ -293,7 +293,7 @@ function adjustScripts() {
293293
files.push("platforms/android/include.gradle");
294294

295295
// add the demo files
296-
let demoAppPath = demo_folder + "/app/";
296+
let demoAppPath = demo_folder + "/app/home/";
297297
if (fs.existsSync(demoAppPath)) {
298298
files.push(demo_folder + "/package.json");
299299
var demoFiles = fs.readdirSync(demoAppPath);

0 commit comments

Comments
 (0)