Skip to content

Commit dac3cf6

Browse files
Merge pull request #1708 from NativeScript/vladimirov/add-message-on-postinstall
Project creation improvements
2 parents 34bb493 + a5805cc commit dac3cf6

File tree

5 files changed

+10
-4
lines changed

5 files changed

+10
-4
lines changed

LICENSE

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -186,7 +186,7 @@ Apache License
186186
same "printed page" as the copyright notice for easier
187187
identification within third-party archives.
188188

189-
Copyright (c) 2015 Telerik AD
189+
Copyright (c) 2015-2016 Telerik AD
190190

191191
Licensed under the Apache License, Version 2.0 (the "License");
192192
you may not use this file except in compliance with the License.

lib/config.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,7 @@ export class StaticConfig extends StaticConfigBase implements IStaticConfig {
3232
public ERROR_REPORT_SETTING_NAME = "TrackExceptions";
3333
public ANALYTICS_INSTALLATION_ID_SETTING_NAME = "AnalyticsInstallationID";
3434
public START_PACKAGE_ACTIVITY_NAME = "com.tns.NativeScriptActivity";
35+
public INSTALLATION_SUCCESS_MESSAGE = "Installation successful. You are good to go. Connect with us on `http://twitter.com/NativeScript`.";
3536

3637
constructor($injector: IInjector) {
3738
super($injector);

lib/services/project-data-service.ts

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,12 @@ export class ProjectDataService implements IProjectDataService {
6161
assert.ok(this.projectFilePath, "Initialize method of projectDataService is not called.");
6262

6363
if(!this.$fs.exists(this.projectFilePath).wait()) {
64-
this.$fs.writeFile(this.projectFilePath, null).wait();
64+
this.$fs.writeJson(this.projectFilePath, {
65+
"description": "NativeScript Application",
66+
"license": "SEE LICENSE IN <your-license-filename>",
67+
"readme": "NativeScript Application",
68+
"repository": "<fill-your-repository-here>"
69+
}).wait();
6570
}
6671

6772
this.projectData = this.$fs.readJson(this.projectFilePath).wait() || Object.create(null);

lib/services/project-service.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -83,7 +83,7 @@ export class ProjectService implements IProjectService {
8383
this.$fs.deleteDirectory(projectDir).wait();
8484
throw err;
8585
}
86-
this.$logger.out("Project %s was successfully created", projectName);
86+
this.$logger.printMarkdown("Project `%s` was successfully created.", projectName);
8787

8888
}).future<void>()();
8989
}

0 commit comments

Comments
 (0)