@@ -21,7 +21,7 @@ var projects = [];
2121 * by the ci for generating projects.
2222 * @param name
2323 */
24- function generateProject ( name ) {
24+ function generateProject ( name ) {
2525 if ( listProjects ( ) . indexOf ( name ) >= 0 ) {
2626 var generator = require ( './generator' ) ;
2727 var project = generator . createProject ( name ) ;
@@ -59,6 +59,9 @@ function projectsPath(suffix) {
5959 * @param override template context
6060 */
6161function createAngularityGlobalConfig ( override ) {
62+ console . log ( '\nWelcome to Angularity, \ndefault settings are being written to a global configuration.\n' ) ;
63+ console . log ( '\nTo change your defaults edit your ' + ideTemplate . util . HOME ( ) + '/.angularity file' ) ;
64+
6265 var configTemplate = fs . readFileSync ( templatesPath ( '.angularity' ) , 'utf8' ) ;
6366 var defaultContext = configDefaults . globalConfig ;
6467
@@ -70,11 +73,10 @@ function createAngularityGlobalConfig(override) {
7073 try {
7174 configFileContent = template ( configTemplate , defaultContext )
7275 } catch ( error ) {
73- // @implaler - what is to be achieved here?
74- console . error ( 'createAngularityGlobalConfig()' ) ;
76+ console . error ( 'createAngularityGlobalConfig() the config template for the global angularity file is invalid.' ) ;
7577 throw error ;
7678 }
77- fs . writeFileSync ( path . join ( ideTemplate . HOME ( ) , '.angularity' ) , configFileContent , 'utf8' ) ;
79+ fs . writeFileSync ( path . join ( ideTemplate . util . HOME ( ) , '.angularity' ) , configFileContent , 'utf8' ) ;
7880}
7981
8082/**
@@ -95,7 +97,7 @@ function createAngularityProjectConfig(destination, override) {
9597 try {
9698 configFileContent = template ( configTemplate , defaultContext )
9799 } catch ( error ) {
98- console . error ( 'createAngularityProjectConfig() ' ) ;
100+ console . error ( 'createAngularityGlobalConfig() the config template for the angularity project file is invalid. ' ) ;
99101 throw error ;
100102 }
101103
0 commit comments