diff --git a/index.js b/index.js new file mode 100644 index 0000000..956d222 --- /dev/null +++ b/index.js @@ -0,0 +1,5 @@ +var path = require('path'); + +module.exports = { + dirname: path.join(__dirname, 'template_src') +}; \ No newline at end of file diff --git a/package.json b/package.json index 2736cb8..0d86226 100644 --- a/package.json +++ b/package.json @@ -2,6 +2,7 @@ "name": "phonegap-template-hello-world", "version": "4.0.2", "description": "> A Hello World template built with PhoneGap", + "main" : "index.js", "repository": { "type": "git", "url": "https://github.com/phonegap/phonegap-app-hello-world.git" diff --git a/template_src/.bithoundrc b/template_src/.bithoundrc new file mode 100644 index 0000000..496a8d7 --- /dev/null +++ b/template_src/.bithoundrc @@ -0,0 +1,54 @@ +{ + "ignore": [ + "www/spec/lib/**", + "**/deps/**", + "**/node_modules/**", + "**/thirdparty/**", + "**/third_party/**", + "**/vendor/**", + "**/**-min-**", + "**/**-min.**", + "**/**.min.**", + "**/**jquery.?(ui|effects)-*.*.?(*).?(cs|j)s", + "**/**jquery-*.*.?(*).?(cs|j)s", + "**/prototype?(*).js", + "**/**?(*).ts", + "**/mootools*.*.*.js", + "**/dojo.js", + "**/MochiKit.js", + "**/yahoo-*.js", + "**/yui*.js", + "**/ckeditor*.js", + "**/tiny_mce*.js", + "**/tiny_mce/?(langs|plugins|themes|utils)/**", + "**/MathJax/**", + "**/shBrush*.js", + "**/shCore.js", + "**/shLegacy.js", + "**/modernizr.custom.?(*).js", + "**/knockout-*.*.*.debug.js", + "**/extjs/*.js", + "**/extjs/*.xml", + "**/extjs/*.txt", + "**/extjs/*.html", + "**/extjs/*.properties", + "**/extjs/.sencha", + "**/extjs/docs/**", + "**/extjs/builds/**", + "**/extjs/cmd/**", + "**/extjs/examples/**", + "**/extjs/locale/**", + "**/extjs/packages/**", + "**/extjs/plugins/**", + "**/extjs/resources/**", + "**/extjs/src/**", + "**/extjs/welcome/**", + "bower_components/**" + ], + "test": [ + "**/test/**", + "**/tests/**", + "**/spec/**", + "**/specs/**" + ] +} diff --git a/template_src/.gitignore b/template_src/.gitignore new file mode 100644 index 0000000..0d90025 --- /dev/null +++ b/template_src/.gitignore @@ -0,0 +1,2 @@ +# Mac +.DS_Store diff --git a/template_src/package.json b/template_src/package.json new file mode 100644 index 0000000..70a4f90 --- /dev/null +++ b/template_src/package.json @@ -0,0 +1,7 @@ +{ + "name": "MyApp", + "version": "1.0.0", + "scripts": { + "test": "echo \"Error: no test specified\" && exit 1" + } +} \ No newline at end of file diff --git a/www/config.xml b/template_src/www/config.xml similarity index 100% rename from www/config.xml rename to template_src/www/config.xml 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/icon.png b/template_src/www/icon.png similarity index 100% rename from www/icon.png rename to template_src/www/icon.png 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 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 diff --git a/www/res/.pgbomit b/template_src/www/res/.pgbomit similarity index 100% rename from www/res/.pgbomit rename to template_src/www/res/.pgbomit diff --git a/www/res/icon/android/drawable-hdpi-icon.png b/template_src/www/res/icon/android/drawable-hdpi-icon.png similarity index 100% rename from www/res/icon/android/drawable-hdpi-icon.png rename to template_src/www/res/icon/android/drawable-hdpi-icon.png diff --git a/www/res/icon/android/drawable-ldpi-icon.png b/template_src/www/res/icon/android/drawable-ldpi-icon.png similarity index 100% rename from www/res/icon/android/drawable-ldpi-icon.png rename to template_src/www/res/icon/android/drawable-ldpi-icon.png diff --git a/www/res/icon/android/drawable-mdpi-icon.png b/template_src/www/res/icon/android/drawable-mdpi-icon.png similarity index 100% rename from www/res/icon/android/drawable-mdpi-icon.png rename to template_src/www/res/icon/android/drawable-mdpi-icon.png diff --git a/www/res/icon/android/drawable-xhdpi-icon.png b/template_src/www/res/icon/android/drawable-xhdpi-icon.png similarity index 100% rename from www/res/icon/android/drawable-xhdpi-icon.png rename to template_src/www/res/icon/android/drawable-xhdpi-icon.png diff --git a/www/res/icon/android/drawable-xxhdpi-icon.png b/template_src/www/res/icon/android/drawable-xxhdpi-icon.png similarity index 100% rename from www/res/icon/android/drawable-xxhdpi-icon.png rename to template_src/www/res/icon/android/drawable-xxhdpi-icon.png diff --git a/www/res/icon/android/drawable-xxxhdpi-icon.png b/template_src/www/res/icon/android/drawable-xxxhdpi-icon.png similarity index 100% rename from www/res/icon/android/drawable-xxxhdpi-icon.png rename to template_src/www/res/icon/android/drawable-xxxhdpi-icon.png diff --git a/www/res/icon/ios/icon-40.png b/template_src/www/res/icon/ios/icon-40.png similarity index 100% rename from www/res/icon/ios/icon-40.png rename to template_src/www/res/icon/ios/icon-40.png diff --git a/www/res/icon/ios/icon-40@2x.png b/template_src/www/res/icon/ios/icon-40@2x.png similarity index 100% rename from www/res/icon/ios/icon-40@2x.png rename to template_src/www/res/icon/ios/icon-40@2x.png diff --git a/www/res/icon/ios/icon-50.png b/template_src/www/res/icon/ios/icon-50.png similarity index 100% rename from www/res/icon/ios/icon-50.png rename to template_src/www/res/icon/ios/icon-50.png diff --git a/www/res/icon/ios/icon-50@2x.png b/template_src/www/res/icon/ios/icon-50@2x.png similarity index 100% rename from www/res/icon/ios/icon-50@2x.png rename to template_src/www/res/icon/ios/icon-50@2x.png diff --git a/www/res/icon/ios/icon-60.png b/template_src/www/res/icon/ios/icon-60.png similarity index 100% rename from www/res/icon/ios/icon-60.png rename to template_src/www/res/icon/ios/icon-60.png diff --git a/www/res/icon/ios/icon-60@2x.png b/template_src/www/res/icon/ios/icon-60@2x.png similarity index 100% rename from www/res/icon/ios/icon-60@2x.png rename to template_src/www/res/icon/ios/icon-60@2x.png diff --git a/www/res/icon/ios/icon-60@3x.png b/template_src/www/res/icon/ios/icon-60@3x.png similarity index 100% rename from www/res/icon/ios/icon-60@3x.png rename to template_src/www/res/icon/ios/icon-60@3x.png diff --git a/www/res/icon/ios/icon-72.png b/template_src/www/res/icon/ios/icon-72.png similarity index 100% rename from www/res/icon/ios/icon-72.png rename to template_src/www/res/icon/ios/icon-72.png diff --git a/www/res/icon/ios/icon-72@2x.png b/template_src/www/res/icon/ios/icon-72@2x.png similarity index 100% rename from www/res/icon/ios/icon-72@2x.png rename to template_src/www/res/icon/ios/icon-72@2x.png diff --git a/www/res/icon/ios/icon-76.png b/template_src/www/res/icon/ios/icon-76.png similarity index 100% rename from www/res/icon/ios/icon-76.png rename to template_src/www/res/icon/ios/icon-76.png diff --git a/www/res/icon/ios/icon-76@2x.png b/template_src/www/res/icon/ios/icon-76@2x.png similarity index 100% rename from www/res/icon/ios/icon-76@2x.png rename to template_src/www/res/icon/ios/icon-76@2x.png diff --git a/www/res/icon/ios/icon-small.png b/template_src/www/res/icon/ios/icon-small.png similarity index 100% rename from www/res/icon/ios/icon-small.png rename to template_src/www/res/icon/ios/icon-small.png diff --git a/www/res/icon/ios/icon-small@2x.png b/template_src/www/res/icon/ios/icon-small@2x.png similarity index 100% rename from www/res/icon/ios/icon-small@2x.png rename to template_src/www/res/icon/ios/icon-small@2x.png diff --git a/www/res/icon/ios/icon-small@3x.png b/template_src/www/res/icon/ios/icon-small@3x.png similarity index 100% rename from www/res/icon/ios/icon-small@3x.png rename to template_src/www/res/icon/ios/icon-small@3x.png diff --git a/www/res/icon/ios/icon.png b/template_src/www/res/icon/ios/icon.png similarity index 100% rename from www/res/icon/ios/icon.png rename to template_src/www/res/icon/ios/icon.png diff --git a/www/res/icon/ios/icon@2x.png b/template_src/www/res/icon/ios/icon@2x.png similarity index 100% rename from www/res/icon/ios/icon@2x.png rename to template_src/www/res/icon/ios/icon@2x.png diff --git a/www/res/icon/windows/Square150x150Logo.scale-100.png b/template_src/www/res/icon/windows/Square150x150Logo.scale-100.png similarity index 100% rename from www/res/icon/windows/Square150x150Logo.scale-100.png rename to template_src/www/res/icon/windows/Square150x150Logo.scale-100.png diff --git a/www/res/icon/windows/Square150x150Logo.scale-240.png b/template_src/www/res/icon/windows/Square150x150Logo.scale-240.png similarity index 100% rename from www/res/icon/windows/Square150x150Logo.scale-240.png rename to template_src/www/res/icon/windows/Square150x150Logo.scale-240.png diff --git a/www/res/icon/windows/Square30x30Logo.scale-100.png b/template_src/www/res/icon/windows/Square30x30Logo.scale-100.png similarity index 100% rename from www/res/icon/windows/Square30x30Logo.scale-100.png rename to template_src/www/res/icon/windows/Square30x30Logo.scale-100.png diff --git a/www/res/icon/windows/Square310x310Logo.scale-100.png b/template_src/www/res/icon/windows/Square310x310Logo.scale-100.png similarity index 100% rename from www/res/icon/windows/Square310x310Logo.scale-100.png rename to template_src/www/res/icon/windows/Square310x310Logo.scale-100.png diff --git a/www/res/icon/windows/Square44x44Logo.scale-100.png b/template_src/www/res/icon/windows/Square44x44Logo.scale-100.png similarity index 100% rename from www/res/icon/windows/Square44x44Logo.scale-100.png rename to template_src/www/res/icon/windows/Square44x44Logo.scale-100.png diff --git a/www/res/icon/windows/Square44x44Logo.scale-240.png b/template_src/www/res/icon/windows/Square44x44Logo.scale-240.png similarity index 100% rename from www/res/icon/windows/Square44x44Logo.scale-240.png rename to template_src/www/res/icon/windows/Square44x44Logo.scale-240.png diff --git a/www/res/icon/windows/Square70x70Logo.scale-100.png b/template_src/www/res/icon/windows/Square70x70Logo.scale-100.png similarity index 100% rename from www/res/icon/windows/Square70x70Logo.scale-100.png rename to template_src/www/res/icon/windows/Square70x70Logo.scale-100.png diff --git a/www/res/icon/windows/Square71x71Logo.scale-100.png b/template_src/www/res/icon/windows/Square71x71Logo.scale-100.png similarity index 100% rename from www/res/icon/windows/Square71x71Logo.scale-100.png rename to template_src/www/res/icon/windows/Square71x71Logo.scale-100.png diff --git a/www/res/icon/windows/Square71x71Logo.scale-240.png b/template_src/www/res/icon/windows/Square71x71Logo.scale-240.png similarity index 100% rename from www/res/icon/windows/Square71x71Logo.scale-240.png rename to template_src/www/res/icon/windows/Square71x71Logo.scale-240.png diff --git a/www/res/icon/windows/StoreLogo.scale-100.png b/template_src/www/res/icon/windows/StoreLogo.scale-100.png similarity index 100% rename from www/res/icon/windows/StoreLogo.scale-100.png rename to template_src/www/res/icon/windows/StoreLogo.scale-100.png diff --git a/www/res/icon/windows/StoreLogo.scale-240.png b/template_src/www/res/icon/windows/StoreLogo.scale-240.png similarity index 100% rename from www/res/icon/windows/StoreLogo.scale-240.png rename to template_src/www/res/icon/windows/StoreLogo.scale-240.png diff --git a/www/res/icon/windows/Wide310x150Logo.scale-100.png b/template_src/www/res/icon/windows/Wide310x150Logo.scale-100.png similarity index 100% rename from www/res/icon/windows/Wide310x150Logo.scale-100.png rename to template_src/www/res/icon/windows/Wide310x150Logo.scale-100.png diff --git a/www/res/icon/windows/Wide310x150Logo.scale-240.png b/template_src/www/res/icon/windows/Wide310x150Logo.scale-240.png similarity index 100% rename from www/res/icon/windows/Wide310x150Logo.scale-240.png rename to template_src/www/res/icon/windows/Wide310x150Logo.scale-240.png diff --git a/www/res/icon/wp8/ApplicationIcon.png b/template_src/www/res/icon/wp8/ApplicationIcon.png similarity index 100% rename from www/res/icon/wp8/ApplicationIcon.png rename to template_src/www/res/icon/wp8/ApplicationIcon.png diff --git a/www/res/icon/wp8/Background.png b/template_src/www/res/icon/wp8/Background.png similarity index 100% rename from www/res/icon/wp8/Background.png rename to template_src/www/res/icon/wp8/Background.png diff --git a/www/res/screen/android/drawable-land-hdpi-screen.png b/template_src/www/res/screen/android/drawable-land-hdpi-screen.png similarity index 100% rename from www/res/screen/android/drawable-land-hdpi-screen.png rename to template_src/www/res/screen/android/drawable-land-hdpi-screen.png diff --git a/www/res/screen/android/drawable-land-ldpi-screen.png b/template_src/www/res/screen/android/drawable-land-ldpi-screen.png similarity index 100% rename from www/res/screen/android/drawable-land-ldpi-screen.png rename to template_src/www/res/screen/android/drawable-land-ldpi-screen.png diff --git a/www/res/screen/android/drawable-land-mdpi-screen.png b/template_src/www/res/screen/android/drawable-land-mdpi-screen.png similarity index 100% rename from www/res/screen/android/drawable-land-mdpi-screen.png rename to template_src/www/res/screen/android/drawable-land-mdpi-screen.png diff --git a/www/res/screen/android/drawable-land-xhdpi-screen.png b/template_src/www/res/screen/android/drawable-land-xhdpi-screen.png similarity index 100% rename from www/res/screen/android/drawable-land-xhdpi-screen.png rename to template_src/www/res/screen/android/drawable-land-xhdpi-screen.png diff --git a/www/res/screen/android/drawable-land-xxhdpi-screen.png b/template_src/www/res/screen/android/drawable-land-xxhdpi-screen.png similarity index 100% rename from www/res/screen/android/drawable-land-xxhdpi-screen.png rename to template_src/www/res/screen/android/drawable-land-xxhdpi-screen.png diff --git a/www/res/screen/android/drawable-land-xxxhdpi-screen.png b/template_src/www/res/screen/android/drawable-land-xxxhdpi-screen.png similarity index 100% rename from www/res/screen/android/drawable-land-xxxhdpi-screen.png rename to template_src/www/res/screen/android/drawable-land-xxxhdpi-screen.png diff --git a/www/res/screen/android/drawable-port-hdpi-screen.png b/template_src/www/res/screen/android/drawable-port-hdpi-screen.png similarity index 100% rename from www/res/screen/android/drawable-port-hdpi-screen.png rename to template_src/www/res/screen/android/drawable-port-hdpi-screen.png diff --git a/www/res/screen/android/drawable-port-ldpi-screen.png b/template_src/www/res/screen/android/drawable-port-ldpi-screen.png similarity index 100% rename from www/res/screen/android/drawable-port-ldpi-screen.png rename to template_src/www/res/screen/android/drawable-port-ldpi-screen.png diff --git a/www/res/screen/android/drawable-port-mdpi-screen.png b/template_src/www/res/screen/android/drawable-port-mdpi-screen.png similarity index 100% rename from www/res/screen/android/drawable-port-mdpi-screen.png rename to template_src/www/res/screen/android/drawable-port-mdpi-screen.png diff --git a/www/res/screen/android/drawable-port-xhdpi-screen.png b/template_src/www/res/screen/android/drawable-port-xhdpi-screen.png similarity index 100% rename from www/res/screen/android/drawable-port-xhdpi-screen.png rename to template_src/www/res/screen/android/drawable-port-xhdpi-screen.png diff --git a/www/res/screen/android/drawable-port-xxhdpi-screen.png b/template_src/www/res/screen/android/drawable-port-xxhdpi-screen.png similarity index 100% rename from www/res/screen/android/drawable-port-xxhdpi-screen.png rename to template_src/www/res/screen/android/drawable-port-xxhdpi-screen.png diff --git a/www/res/screen/android/drawable-port-xxxhdpi-screen.png b/template_src/www/res/screen/android/drawable-port-xxxhdpi-screen.png similarity index 100% rename from www/res/screen/android/drawable-port-xxxhdpi-screen.png rename to template_src/www/res/screen/android/drawable-port-xxxhdpi-screen.png diff --git a/www/res/screen/ios/Default-568h@2x~iphone.png b/template_src/www/res/screen/ios/Default-568h@2x~iphone.png similarity index 100% rename from www/res/screen/ios/Default-568h@2x~iphone.png rename to template_src/www/res/screen/ios/Default-568h@2x~iphone.png diff --git a/www/res/screen/ios/Default-667h.png b/template_src/www/res/screen/ios/Default-667h.png similarity index 100% rename from www/res/screen/ios/Default-667h.png rename to template_src/www/res/screen/ios/Default-667h.png diff --git a/www/res/screen/ios/Default-736h.png b/template_src/www/res/screen/ios/Default-736h.png similarity index 100% rename from www/res/screen/ios/Default-736h.png rename to template_src/www/res/screen/ios/Default-736h.png diff --git a/www/res/screen/ios/Default-Landscape-736h.png b/template_src/www/res/screen/ios/Default-Landscape-736h.png similarity index 100% rename from www/res/screen/ios/Default-Landscape-736h.png rename to template_src/www/res/screen/ios/Default-Landscape-736h.png diff --git a/www/res/screen/ios/Default-Landscape@2x~ipad.png b/template_src/www/res/screen/ios/Default-Landscape@2x~ipad.png similarity index 100% rename from www/res/screen/ios/Default-Landscape@2x~ipad.png rename to template_src/www/res/screen/ios/Default-Landscape@2x~ipad.png diff --git a/www/res/screen/ios/Default-Landscape~ipad.png b/template_src/www/res/screen/ios/Default-Landscape~ipad.png similarity index 100% rename from www/res/screen/ios/Default-Landscape~ipad.png rename to template_src/www/res/screen/ios/Default-Landscape~ipad.png diff --git a/www/res/screen/ios/Default-Portrait@2x~ipad.png b/template_src/www/res/screen/ios/Default-Portrait@2x~ipad.png similarity index 100% rename from www/res/screen/ios/Default-Portrait@2x~ipad.png rename to template_src/www/res/screen/ios/Default-Portrait@2x~ipad.png diff --git a/www/res/screen/ios/Default-Portrait~ipad.png b/template_src/www/res/screen/ios/Default-Portrait~ipad.png similarity index 100% rename from www/res/screen/ios/Default-Portrait~ipad.png rename to template_src/www/res/screen/ios/Default-Portrait~ipad.png diff --git a/www/res/screen/ios/Default@2x~iphone.png b/template_src/www/res/screen/ios/Default@2x~iphone.png similarity index 100% rename from www/res/screen/ios/Default@2x~iphone.png rename to template_src/www/res/screen/ios/Default@2x~iphone.png diff --git a/www/res/screen/ios/Default~iphone.png b/template_src/www/res/screen/ios/Default~iphone.png similarity index 100% rename from www/res/screen/ios/Default~iphone.png rename to template_src/www/res/screen/ios/Default~iphone.png diff --git a/www/res/screen/windows/SplashScreen.scale-100.png b/template_src/www/res/screen/windows/SplashScreen.scale-100.png similarity index 100% rename from www/res/screen/windows/SplashScreen.scale-100.png rename to template_src/www/res/screen/windows/SplashScreen.scale-100.png diff --git a/www/res/screen/windows/SplashScreenPhone.scale-240.png b/template_src/www/res/screen/windows/SplashScreenPhone.scale-240.png similarity index 100% rename from www/res/screen/windows/SplashScreenPhone.scale-240.png rename to template_src/www/res/screen/windows/SplashScreenPhone.scale-240.png diff --git a/www/res/screen/wp8/screen-portrait.jpg b/template_src/www/res/screen/wp8/screen-portrait.jpg similarity index 100% rename from www/res/screen/wp8/screen-portrait.jpg rename to template_src/www/res/screen/wp8/screen-portrait.jpg diff --git a/www/spec.html b/template_src/www/spec.html similarity index 100% rename from www/spec.html rename to template_src/www/spec.html diff --git a/www/spec/helper.js b/template_src/www/spec/helper.js similarity index 100% rename from www/spec/helper.js rename to template_src/www/spec/helper.js diff --git a/www/spec/index.js b/template_src/www/spec/index.js similarity index 100% rename from www/spec/index.js rename to template_src/www/spec/index.js diff --git a/www/spec/lib/jasmine-1.2.0/MIT.LICENSE b/template_src/www/spec/lib/jasmine-1.2.0/MIT.LICENSE similarity index 100% rename from www/spec/lib/jasmine-1.2.0/MIT.LICENSE rename to template_src/www/spec/lib/jasmine-1.2.0/MIT.LICENSE diff --git a/www/spec/lib/jasmine-1.2.0/jasmine-html.js b/template_src/www/spec/lib/jasmine-1.2.0/jasmine-html.js similarity index 100% rename from www/spec/lib/jasmine-1.2.0/jasmine-html.js rename to template_src/www/spec/lib/jasmine-1.2.0/jasmine-html.js diff --git a/www/spec/lib/jasmine-1.2.0/jasmine.css b/template_src/www/spec/lib/jasmine-1.2.0/jasmine.css similarity index 100% rename from www/spec/lib/jasmine-1.2.0/jasmine.css rename to template_src/www/spec/lib/jasmine-1.2.0/jasmine.css diff --git a/www/spec/lib/jasmine-1.2.0/jasmine.js b/template_src/www/spec/lib/jasmine-1.2.0/jasmine.js similarity index 100% rename from www/spec/lib/jasmine-1.2.0/jasmine.js rename to template_src/www/spec/lib/jasmine-1.2.0/jasmine.js