commit | 27919ad09e1a721c2e328c269b89def6b39dd90c | [log] [tgz] |
---|---|---|
author | carynbear <caryn.tran@berkeley.edu> | Wed Jun 15 13:15:14 2016 -0700 |
committer | Steve Gill <stevengill97@gmail.com> | Tue Jul 12 15:59:32 2016 -0700 |
tree | 1b26e72f0119cdc83f58ee87c1e5449654ec4544 | |
parent | 4413480de85942a008d2dd0a820e128656d58cf5 [diff] |
CB-11412 Update templates to designate template source dir This closes #16
diff --git a/index.js b/index.js index 7c97cea..fdc90b3 100644 --- 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 index 0000000..fd29596 --- /dev/null +++ b/template_src/.gitignore
@@ -0,0 +1,2 @@ +# OS X +.DS_Store
diff --git a/config.xml b/template_src/config.xml similarity index 96% rename from config.xml rename to template_src/config.xml index 02e616c..ad14b62 100644 --- a/config.xml +++ b/template_src/config.xml
@@ -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.
diff --git a/hooks/README.md b/template_src/hooks/README.md similarity index 100% rename from hooks/README.md rename to template_src/hooks/README.md
diff --git a/res/README.md b/template_src/res/README.md similarity index 100% rename from res/README.md rename to template_src/res/README.md
diff --git a/res/icon/android/icon-36-ldpi.png b/template_src/res/icon/android/icon-36-ldpi.png similarity index 100% rename from res/icon/android/icon-36-ldpi.png rename to template_src/res/icon/android/icon-36-ldpi.png Binary files differ
diff --git a/res/icon/android/icon-48-mdpi.png b/template_src/res/icon/android/icon-48-mdpi.png similarity index 100% rename from res/icon/android/icon-48-mdpi.png rename to template_src/res/icon/android/icon-48-mdpi.png Binary files differ
diff --git a/res/icon/android/icon-72-hdpi.png b/template_src/res/icon/android/icon-72-hdpi.png similarity index 100% rename from res/icon/android/icon-72-hdpi.png rename to template_src/res/icon/android/icon-72-hdpi.png Binary files differ
diff --git a/res/icon/android/icon-96-xhdpi.png b/template_src/res/icon/android/icon-96-xhdpi.png similarity index 100% rename from res/icon/android/icon-96-xhdpi.png rename to template_src/res/icon/android/icon-96-xhdpi.png Binary files differ
diff --git a/res/icon/bada-wac/icon-48-type5.png b/template_src/res/icon/bada-wac/icon-48-type5.png similarity index 100% rename from res/icon/bada-wac/icon-48-type5.png rename to template_src/res/icon/bada-wac/icon-48-type5.png Binary files differ
diff --git a/res/icon/bada-wac/icon-50-type3.png b/template_src/res/icon/bada-wac/icon-50-type3.png similarity index 100% rename from res/icon/bada-wac/icon-50-type3.png rename to template_src/res/icon/bada-wac/icon-50-type3.png Binary files differ
diff --git a/res/icon/bada-wac/icon-80-type4.png b/template_src/res/icon/bada-wac/icon-80-type4.png similarity index 100% rename from res/icon/bada-wac/icon-80-type4.png rename to template_src/res/icon/bada-wac/icon-80-type4.png Binary files differ
diff --git a/res/icon/bada/icon-128.png b/template_src/res/icon/bada/icon-128.png similarity index 100% rename from res/icon/bada/icon-128.png rename to template_src/res/icon/bada/icon-128.png Binary files differ
diff --git a/res/icon/blackberry/icon-80.png b/template_src/res/icon/blackberry/icon-80.png similarity index 100% rename from res/icon/blackberry/icon-80.png rename to template_src/res/icon/blackberry/icon-80.png Binary files differ
diff --git a/res/icon/blackberry10/icon-80.png b/template_src/res/icon/blackberry10/icon-80.png similarity index 100% rename from res/icon/blackberry10/icon-80.png rename to template_src/res/icon/blackberry10/icon-80.png Binary files differ
diff --git a/res/icon/ios/icon-57-2x.png b/template_src/res/icon/ios/icon-57-2x.png similarity index 100% rename from res/icon/ios/icon-57-2x.png rename to template_src/res/icon/ios/icon-57-2x.png Binary files differ
diff --git a/res/icon/ios/icon-57.png b/template_src/res/icon/ios/icon-57.png similarity index 100% rename from res/icon/ios/icon-57.png rename to template_src/res/icon/ios/icon-57.png Binary files differ
diff --git a/res/icon/ios/icon-72-2x.png b/template_src/res/icon/ios/icon-72-2x.png similarity index 100% rename from res/icon/ios/icon-72-2x.png rename to template_src/res/icon/ios/icon-72-2x.png Binary files differ
diff --git a/res/icon/ios/icon-72.png b/template_src/res/icon/ios/icon-72.png similarity index 100% rename from res/icon/ios/icon-72.png rename to template_src/res/icon/ios/icon-72.png Binary files differ
diff --git a/res/icon/tizen/icon-128.png b/template_src/res/icon/tizen/icon-128.png similarity index 100% rename from res/icon/tizen/icon-128.png rename to template_src/res/icon/tizen/icon-128.png Binary files differ
diff --git a/res/icon/webos/icon-64.png b/template_src/res/icon/webos/icon-64.png similarity index 100% rename from res/icon/webos/icon-64.png rename to template_src/res/icon/webos/icon-64.png Binary files differ
diff --git a/res/icon/windows-phone/icon-173-tile.png b/template_src/res/icon/windows-phone/icon-173-tile.png similarity index 100% rename from res/icon/windows-phone/icon-173-tile.png rename to template_src/res/icon/windows-phone/icon-173-tile.png Binary files differ
diff --git a/res/icon/windows-phone/icon-48.png b/template_src/res/icon/windows-phone/icon-48.png similarity index 100% rename from res/icon/windows-phone/icon-48.png rename to template_src/res/icon/windows-phone/icon-48.png Binary files differ
diff --git a/res/icon/windows-phone/icon-62-tile.png b/template_src/res/icon/windows-phone/icon-62-tile.png similarity index 100% rename from res/icon/windows-phone/icon-62-tile.png rename to template_src/res/icon/windows-phone/icon-62-tile.png Binary files differ
diff --git a/res/screen/android/screen-hdpi-landscape.png b/template_src/res/screen/android/screen-hdpi-landscape.png similarity index 100% rename from res/screen/android/screen-hdpi-landscape.png rename to template_src/res/screen/android/screen-hdpi-landscape.png Binary files differ
diff --git a/res/screen/android/screen-hdpi-portrait.png b/template_src/res/screen/android/screen-hdpi-portrait.png similarity index 100% rename from res/screen/android/screen-hdpi-portrait.png rename to template_src/res/screen/android/screen-hdpi-portrait.png Binary files differ
diff --git a/res/screen/android/screen-ldpi-landscape.png b/template_src/res/screen/android/screen-ldpi-landscape.png similarity index 100% rename from res/screen/android/screen-ldpi-landscape.png rename to template_src/res/screen/android/screen-ldpi-landscape.png Binary files differ
diff --git a/res/screen/android/screen-ldpi-portrait.png b/template_src/res/screen/android/screen-ldpi-portrait.png similarity index 100% rename from res/screen/android/screen-ldpi-portrait.png rename to template_src/res/screen/android/screen-ldpi-portrait.png Binary files differ
diff --git a/res/screen/android/screen-mdpi-landscape.png b/template_src/res/screen/android/screen-mdpi-landscape.png similarity index 100% rename from res/screen/android/screen-mdpi-landscape.png rename to template_src/res/screen/android/screen-mdpi-landscape.png Binary files differ
diff --git a/res/screen/android/screen-mdpi-portrait.png b/template_src/res/screen/android/screen-mdpi-portrait.png similarity index 100% rename from res/screen/android/screen-mdpi-portrait.png rename to template_src/res/screen/android/screen-mdpi-portrait.png Binary files differ
diff --git a/res/screen/android/screen-xhdpi-landscape.png b/template_src/res/screen/android/screen-xhdpi-landscape.png similarity index 100% rename from res/screen/android/screen-xhdpi-landscape.png rename to template_src/res/screen/android/screen-xhdpi-landscape.png Binary files differ
diff --git a/res/screen/android/screen-xhdpi-portrait.png b/template_src/res/screen/android/screen-xhdpi-portrait.png similarity index 100% rename from res/screen/android/screen-xhdpi-portrait.png rename to template_src/res/screen/android/screen-xhdpi-portrait.png Binary files differ
diff --git a/res/screen/bada-wac/screen-type3.png b/template_src/res/screen/bada-wac/screen-type3.png similarity index 100% rename from res/screen/bada-wac/screen-type3.png rename to template_src/res/screen/bada-wac/screen-type3.png Binary files differ
diff --git a/res/screen/bada-wac/screen-type4.png b/template_src/res/screen/bada-wac/screen-type4.png similarity index 100% rename from res/screen/bada-wac/screen-type4.png rename to template_src/res/screen/bada-wac/screen-type4.png Binary files differ
diff --git a/res/screen/bada-wac/screen-type5.png b/template_src/res/screen/bada-wac/screen-type5.png similarity index 100% rename from res/screen/bada-wac/screen-type5.png rename to template_src/res/screen/bada-wac/screen-type5.png Binary files differ
diff --git a/res/screen/bada/screen-portrait.png b/template_src/res/screen/bada/screen-portrait.png similarity index 100% rename from res/screen/bada/screen-portrait.png rename to template_src/res/screen/bada/screen-portrait.png Binary files differ
diff --git a/res/screen/blackberry/screen-225.png b/template_src/res/screen/blackberry/screen-225.png similarity index 100% rename from res/screen/blackberry/screen-225.png rename to template_src/res/screen/blackberry/screen-225.png Binary files differ
diff --git a/res/screen/blackberry10/splash-1280x768.png b/template_src/res/screen/blackberry10/splash-1280x768.png similarity index 100% rename from res/screen/blackberry10/splash-1280x768.png rename to template_src/res/screen/blackberry10/splash-1280x768.png Binary files differ
diff --git a/res/screen/blackberry10/splash-720x720.png b/template_src/res/screen/blackberry10/splash-720x720.png similarity index 100% rename from res/screen/blackberry10/splash-720x720.png rename to template_src/res/screen/blackberry10/splash-720x720.png Binary files differ
diff --git a/res/screen/blackberry10/splash-768x1280.png b/template_src/res/screen/blackberry10/splash-768x1280.png similarity index 100% rename from res/screen/blackberry10/splash-768x1280.png rename to template_src/res/screen/blackberry10/splash-768x1280.png Binary files differ
diff --git a/res/screen/ios/screen-ipad-landscape-2x.png b/template_src/res/screen/ios/screen-ipad-landscape-2x.png similarity index 100% rename from res/screen/ios/screen-ipad-landscape-2x.png rename to template_src/res/screen/ios/screen-ipad-landscape-2x.png Binary files differ
diff --git a/res/screen/ios/screen-ipad-landscape.png b/template_src/res/screen/ios/screen-ipad-landscape.png similarity index 100% rename from res/screen/ios/screen-ipad-landscape.png rename to template_src/res/screen/ios/screen-ipad-landscape.png Binary files differ
diff --git a/res/screen/ios/screen-ipad-portrait-2x.png b/template_src/res/screen/ios/screen-ipad-portrait-2x.png similarity index 100% rename from res/screen/ios/screen-ipad-portrait-2x.png rename to template_src/res/screen/ios/screen-ipad-portrait-2x.png Binary files differ
diff --git a/res/screen/ios/screen-ipad-portrait.png b/template_src/res/screen/ios/screen-ipad-portrait.png similarity index 100% rename from res/screen/ios/screen-ipad-portrait.png rename to template_src/res/screen/ios/screen-ipad-portrait.png Binary files differ
diff --git a/res/screen/ios/screen-iphone-landscape-2x.png b/template_src/res/screen/ios/screen-iphone-landscape-2x.png similarity index 100% rename from res/screen/ios/screen-iphone-landscape-2x.png rename to template_src/res/screen/ios/screen-iphone-landscape-2x.png Binary files differ
diff --git a/res/screen/ios/screen-iphone-landscape.png b/template_src/res/screen/ios/screen-iphone-landscape.png similarity index 100% rename from res/screen/ios/screen-iphone-landscape.png rename to template_src/res/screen/ios/screen-iphone-landscape.png Binary files differ
diff --git a/res/screen/ios/screen-iphone-portrait-2x.png b/template_src/res/screen/ios/screen-iphone-portrait-2x.png similarity index 100% rename from res/screen/ios/screen-iphone-portrait-2x.png rename to template_src/res/screen/ios/screen-iphone-portrait-2x.png Binary files differ
diff --git a/res/screen/ios/screen-iphone-portrait-568h-2x.png b/template_src/res/screen/ios/screen-iphone-portrait-568h-2x.png similarity index 100% rename from res/screen/ios/screen-iphone-portrait-568h-2x.png rename to template_src/res/screen/ios/screen-iphone-portrait-568h-2x.png Binary files differ
diff --git a/res/screen/ios/screen-iphone-portrait.png b/template_src/res/screen/ios/screen-iphone-portrait.png similarity index 100% rename from res/screen/ios/screen-iphone-portrait.png rename to template_src/res/screen/ios/screen-iphone-portrait.png Binary files differ
diff --git a/res/screen/tizen/README.md b/template_src/res/screen/tizen/README.md similarity index 100% rename from res/screen/tizen/README.md rename to template_src/res/screen/tizen/README.md
diff --git a/res/screen/webos/screen-64.png b/template_src/res/screen/webos/screen-64.png similarity index 100% rename from res/screen/webos/screen-64.png rename to template_src/res/screen/webos/screen-64.png Binary files differ
diff --git a/res/screen/windows-phone/screen-portrait.jpg b/template_src/res/screen/windows-phone/screen-portrait.jpg similarity index 100% rename from res/screen/windows-phone/screen-portrait.jpg rename to template_src/res/screen/windows-phone/screen-portrait.jpg Binary files differ
diff --git a/www/css/index.css b/template_src/www/css/index.css similarity index 100% rename from www/css/index.css rename to template_src/www/css/index.css
diff --git a/www/img/logo.png b/template_src/www/img/logo.png similarity index 100% rename from www/img/logo.png rename to template_src/www/img/logo.png Binary files differ
diff --git a/www/index.html b/template_src/www/index.html similarity index 100% rename from www/index.html rename to template_src/www/index.html
diff --git a/www/js/index.js b/template_src/www/js/index.js similarity index 100% rename from www/js/index.js rename to template_src/www/js/index.js