Skip to content

Commit

Permalink
Merge pull request #16 from oivoodoo/master
Browse files Browse the repository at this point in the history
Use the last name folder as the name of the project.
  • Loading branch information
mikehenrty committed Feb 26, 2013
2 parents d678e97 + eb8dc63 commit 28734fc
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions src/init/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -83,12 +83,16 @@ var initProject = function(template, dest){
var manPath = path.join(newLocation, "manifest.json");
var man = JSON.parse(fs.readFileSync(manPath).toString());
man.appID = createUUID();
man.shortName = newLocation;
man.title = newLocation;

var project = path.basename(dest);
man.shortName = project;
man.title = project;

fs.writeFileSync(manPath, JSON.stringify(man, null, '\t'));

console.log('Created a new ' + template + ' project at ' + newLocation);

//now register the new project
register(newLocation);
};

0 comments on commit 28734fc

Please sign in to comment.