CB-11412 Update templates to designate template source dir
authorcarynbear <caryn.tran@berkeley.edu>
Wed, 15 Jun 2016 20:15:14 +0000 (13:15 -0700)
committerSteve Gill <stevengill97@gmail.com>
Tue, 12 Jul 2016 22:59:32 +0000 (15:59 -0700)
 This closes #16

56 files changed:
index.js
template_src/.gitignore [new file with mode: 0644]
template_src/config.xml [moved from config.xml with 96% similarity]
template_src/hooks/README.md [moved from hooks/README.md with 100% similarity]
template_src/res/README.md [moved from res/README.md with 100% similarity]
template_src/res/icon/android/icon-36-ldpi.png [moved from res/icon/android/icon-36-ldpi.png with 100% similarity]
template_src/res/icon/android/icon-48-mdpi.png [moved from res/icon/android/icon-48-mdpi.png with 100% similarity]
template_src/res/icon/android/icon-72-hdpi.png [moved from res/icon/android/icon-72-hdpi.png with 100% similarity]
template_src/res/icon/android/icon-96-xhdpi.png [moved from res/icon/android/icon-96-xhdpi.png with 100% similarity]
template_src/res/icon/bada-wac/icon-48-type5.png [moved from res/icon/bada-wac/icon-48-type5.png with 100% similarity]
template_src/res/icon/bada-wac/icon-50-type3.png [moved from res/icon/bada-wac/icon-50-type3.png with 100% similarity]
template_src/res/icon/bada-wac/icon-80-type4.png [moved from res/icon/bada-wac/icon-80-type4.png with 100% similarity]
template_src/res/icon/bada/icon-128.png [moved from res/icon/tizen/icon-128.png with 100% similarity]
template_src/res/icon/blackberry/icon-80.png [moved from res/icon/blackberry10/icon-80.png with 100% similarity]
template_src/res/icon/blackberry10/icon-80.png [moved from res/icon/blackberry/icon-80.png with 100% similarity]
template_src/res/icon/ios/icon-57-2x.png [moved from res/icon/ios/icon-57-2x.png with 100% similarity]
template_src/res/icon/ios/icon-57.png [moved from res/icon/ios/icon-57.png with 100% similarity]
template_src/res/icon/ios/icon-72-2x.png [moved from res/icon/ios/icon-72-2x.png with 100% similarity]
template_src/res/icon/ios/icon-72.png [moved from res/icon/ios/icon-72.png with 100% similarity]
template_src/res/icon/tizen/icon-128.png [moved from res/icon/bada/icon-128.png with 100% similarity]
template_src/res/icon/webos/icon-64.png [moved from res/icon/webos/icon-64.png with 100% similarity]
template_src/res/icon/windows-phone/icon-173-tile.png [moved from res/icon/windows-phone/icon-173-tile.png with 100% similarity]
template_src/res/icon/windows-phone/icon-48.png [moved from res/icon/windows-phone/icon-48.png with 100% similarity]
template_src/res/icon/windows-phone/icon-62-tile.png [moved from res/icon/windows-phone/icon-62-tile.png with 100% similarity]
template_src/res/screen/android/screen-hdpi-landscape.png [moved from res/screen/android/screen-hdpi-landscape.png with 100% similarity]
template_src/res/screen/android/screen-hdpi-portrait.png [moved from res/screen/android/screen-hdpi-portrait.png with 100% similarity]
template_src/res/screen/android/screen-ldpi-landscape.png [moved from res/screen/android/screen-ldpi-landscape.png with 100% similarity]
template_src/res/screen/android/screen-ldpi-portrait.png [moved from res/screen/android/screen-ldpi-portrait.png with 100% similarity]
template_src/res/screen/android/screen-mdpi-landscape.png [moved from res/screen/android/screen-mdpi-landscape.png with 100% similarity]
template_src/res/screen/android/screen-mdpi-portrait.png [moved from res/screen/android/screen-mdpi-portrait.png with 100% similarity]
template_src/res/screen/android/screen-xhdpi-landscape.png [moved from res/screen/android/screen-xhdpi-landscape.png with 100% similarity]
template_src/res/screen/android/screen-xhdpi-portrait.png [moved from res/screen/android/screen-xhdpi-portrait.png with 100% similarity]
template_src/res/screen/bada-wac/screen-type3.png [moved from res/screen/bada-wac/screen-type3.png with 100% similarity]
template_src/res/screen/bada-wac/screen-type4.png [moved from res/screen/bada-wac/screen-type4.png with 100% similarity]
template_src/res/screen/bada-wac/screen-type5.png [moved from res/screen/bada-wac/screen-type5.png with 100% similarity]
template_src/res/screen/bada/screen-portrait.png [moved from res/screen/bada/screen-portrait.png with 100% similarity]
template_src/res/screen/blackberry/screen-225.png [moved from res/screen/blackberry/screen-225.png with 100% similarity]
template_src/res/screen/blackberry10/splash-1280x768.png [moved from res/screen/blackberry10/splash-1280x768.png with 100% similarity]
template_src/res/screen/blackberry10/splash-720x720.png [moved from res/screen/blackberry10/splash-720x720.png with 100% similarity]
template_src/res/screen/blackberry10/splash-768x1280.png [moved from res/screen/blackberry10/splash-768x1280.png with 100% similarity]
template_src/res/screen/ios/screen-ipad-landscape-2x.png [moved from res/screen/ios/screen-ipad-landscape-2x.png with 100% similarity]
template_src/res/screen/ios/screen-ipad-landscape.png [moved from res/screen/ios/screen-ipad-landscape.png with 100% similarity]
template_src/res/screen/ios/screen-ipad-portrait-2x.png [moved from res/screen/ios/screen-ipad-portrait-2x.png with 100% similarity]
template_src/res/screen/ios/screen-ipad-portrait.png [moved from res/screen/ios/screen-ipad-portrait.png with 100% similarity]
template_src/res/screen/ios/screen-iphone-landscape-2x.png [moved from res/screen/ios/screen-iphone-landscape-2x.png with 100% similarity]
template_src/res/screen/ios/screen-iphone-landscape.png [moved from res/screen/ios/screen-iphone-landscape.png with 100% similarity]
template_src/res/screen/ios/screen-iphone-portrait-2x.png [moved from res/screen/ios/screen-iphone-portrait-2x.png with 100% similarity]
template_src/res/screen/ios/screen-iphone-portrait-568h-2x.png [moved from res/screen/ios/screen-iphone-portrait-568h-2x.png with 100% similarity]
template_src/res/screen/ios/screen-iphone-portrait.png [moved from res/screen/ios/screen-iphone-portrait.png with 100% similarity]
template_src/res/screen/tizen/README.md [moved from res/screen/tizen/README.md with 100% similarity]
template_src/res/screen/webos/screen-64.png [moved from res/screen/webos/screen-64.png with 100% similarity]
template_src/res/screen/windows-phone/screen-portrait.jpg [moved from res/screen/windows-phone/screen-portrait.jpg with 100% similarity]
template_src/www/css/index.css [moved from www/css/index.css with 100% similarity]
template_src/www/img/logo.png [moved from www/img/logo.png with 100% similarity]
template_src/www/index.html [moved from www/index.html with 100% similarity]
template_src/www/js/index.js [moved from www/js/index.js with 100% similarity]

index 7c97cea..fdc90b3 100644 (file)
--- a/index.js
+++ b/index.js
@@ -19,6 +19,9 @@
 
 // Entry point is needed so that the module could be required.
 // The module dir path will be need to copy resources from it.
-exports = module.exports = {
-    dirname: __dirname
-};
+
+var path = require('path');
+
+module.exports = module.exports = {
+    dirname: path.join(__dirname, 'template_src')
+};
\ No newline at end of file
diff --git a/template_src/.gitignore b/template_src/.gitignore
new file mode 100644 (file)
index 0000000..fd29596
--- /dev/null
@@ -0,0 +1,2 @@
+# OS X
+.DS_Store
similarity index 96%
rename from config.xml
rename to template_src/config.xml
index 02e616c..ad14b62 100644 (file)
@@ -17,7 +17,7 @@
  specific language governing permissions and limitations
  under the License.
 -->
-<widget id="io.cordova.hellocordova" version="0.0.1" xmlns="http://www.w3.org/ns/widgets" xmlns:cdv="http://cordova.apache.org/ns/1.0">
+<widget id="io.cordova.hellocordova" version="1.0.0" xmlns="http://www.w3.org/ns/widgets" xmlns:cdv="http://cordova.apache.org/ns/1.0">
     <name>HelloCordova</name>
     <description>
         A sample Apache Cordova application that responds to the deviceready event.
similarity index 100%
rename from hooks/README.md
rename to template_src/hooks/README.md
similarity index 100%
rename from res/README.md
rename to template_src/res/README.md
similarity index 100%
rename from www/index.html
rename to template_src/www/index.html
similarity index 100%
rename from www/js/index.js
rename to template_src/www/js/index.js