Skip to content
This repository has been archived by the owner on Jun 19, 2020. It is now read-only.

Commit

Permalink
Build script added. JavaScript source code moved to srcjs folder.
Browse files Browse the repository at this point in the history
The build script only minifies the source code of the template but
does not compile the Joshfire framework. The resulting code is
stored in app/js.

The app/srcjs folder has been added to the list of folders to ignore
when the template is imported.

For debug/development purpose, index files need to be adjusted to
link to "srcjs" instead of "js" in <script data-main="js"> tag.
  • Loading branch information
tidoust committed Feb 27, 2012
1 parent d03d7d6 commit cb52ed5
Show file tree
Hide file tree
Showing 23 changed files with 1,673 additions and 1,639 deletions.
3 changes: 3 additions & 0 deletions .gitattributes
@@ -1 +1,4 @@
test export-ignore
app/srcjs export-ignore
app/boot.js export-ignore
build.sh export-ignore
File renamed without changes.
2 changes: 1 addition & 1 deletion app/index.html
Expand Up @@ -13,7 +13,7 @@

<body>
<script data-main="js/" src="js/joshfire/lib/adapters/browser/bootstrap.js"></script>
<script data-joshfire-bootstrap src="js/boot.js"></script>
<script data-joshfire-bootstrap src="boot.js"></script>
<script>
Joshfire.basePath = 'joshfire/lib/';
Joshfire.require(['app.browser'], function (App) {
Expand Down
2 changes: 1 addition & 1 deletion app/index.tablet.html
Expand Up @@ -13,7 +13,7 @@

<body>
<script data-main="js/" src="js/joshfire/lib/adapters/ios/bootstrap.js"></script>
<script data-joshfire-bootstrap src="js/boot.js"></script>
<script data-joshfire-bootstrap src="boot.js"></script>
<script>
Joshfire.basePath = 'joshfire/lib/';
Joshfire.require(['app.ipad'], function (App) {
Expand Down
2 changes: 1 addition & 1 deletion app/index.tv.html
Expand Up @@ -13,7 +13,7 @@

<body>
<script data-main="js/" src="js/joshfire/lib/adapters/browser/bootstrap.js"></script>
<script data-joshfire-bootstrap src="js/boot.js"></script>
<script data-joshfire-bootstrap src="boot.js"></script>
<script>
Joshfire.basePath = 'joshfire/lib/';
Joshfire.require(['app.browser'], function (App) {
Expand Down

0 comments on commit cb52ed5

Please sign in to comment.