Skip to content
This repository has been archived by the owner. It is now read-only.
Permalink
Browse files
create needs to copy+rename the defaults.xml file for projects create…
…d outside the cordova-cli
  • Loading branch information
purplecabbage committed Aug 14, 2014
1 parent 88ebdd6 commit 0f502163077af7992c031c995764b21d5646c258
Showing 1 changed file with 5 additions and 4 deletions.
@@ -179,8 +179,11 @@ function create(path, namespace, name) {
// copy the version file
fso.CopyFile(repoRoot +'\\VERSION',path + "\\" );

fso.CopyFile(platformRoot +'\\bin\\check_reqs.bat',path + "\\cordova\\" );
fso.CopyFile(platformRoot +'\\bin\\check_reqs.js',path + "\\cordova\\" );
fso.CopyFile(platformRoot +'\\bin\\check_reqs.bat',path + "\\cordova\\" );
fso.CopyFile(platformRoot +'\\bin\\check_reqs.js',path + "\\cordova\\" );

// copy the defaults.xml into config.xml so this project can be built when create is called minus the cordova-cli
fso.CopyFile(path + "\\cordova\\defaults.xml", path + "\\config.xml");

// remove template cruft
deleteFileIfExists(path + "\\__PreviewImage.jpg");
@@ -227,8 +230,6 @@ function create(path, namespace, name) {

Log("CREATE SUCCESS : " + path);

// TODO:
// index.html title set to project name?
}

// MAIN

0 comments on commit 0f50216

Please sign in to comment.