Skip to content

Commit

Permalink
Generated source maps, moved demo -> reader, reader_src
Browse files Browse the repository at this point in the history
  • Loading branch information
fchasen committed Apr 1, 2014
1 parent b441cf8 commit a37b358
Show file tree
Hide file tree
Showing 241 changed files with 9,744 additions and 114 deletions.
34 changes: 13 additions & 21 deletions Gruntfile.js
Original file line number Diff line number Diff line change
Expand Up @@ -10,11 +10,8 @@ module.exports = function(grunt) {
concat_sourcemap : {
'build/epub_no_underscore.js': ['<banner>', 'libs/rsvp/rsvp.js', 'src/*.js'],
'build/epub.js': ['<banner>', 'libs/underscore/underscore-min.js', 'libs/rsvp/rsvp.js', 'src/*.js'],
'build/reader.js': ['<banner>', 'reader/reader.js', 'reader/controllers/*.js'],
'build/reader.js': ['<banner>', 'reader_src/reader.js', 'reader_src/controllers/*.js'],
'build/hooks.js': ['<banner>', 'hooks/default/*.js']
// 'demo/js/libs/fileStorage.min.js': 'libs/fileStorage/fileStorage.min.js',
// 'demo/js/libs/loader_filesystem.min.js': 'libs/fileStorage/workers/loader_filesystem.min.js',
// 'demo/js/libs/inflate.js': 'libs/zip/inflate.js',
},
uglify: {
my_target: {
Expand All @@ -23,34 +20,29 @@ module.exports = function(grunt) {
sourceMap: true
},
files: {
// 'demo/js/epub.min.js': ['build/epub.js'],
'build/epub.min.js': ['build/epub.js'],
'build/reader.min.js': ['build/reader.js'],
// 'demo/js/hooks.min.js': ['build/hooks.js'],
'build/hooks.min.js': ['build/hooks.js'],
// 'demo/js/libs/zip.min.js': ['libs/zip/zip.js', 'libs/zip/zip-fs.js', 'libs/zip/zip-ext.js', 'libs/zip/mime-types.js'],
// 'demo/js/libs/inflate.min.js': ['libs/zip/inflate.js'],
'build/libs/zip.min.js': ['libs/zip/zip.js', 'libs/zip/zip-fs.js', 'libs/zip/zip-ext.js', 'libs/zip/mime-types.js'],
'build/libs/inflate.js': ['libs/zip/inflate.js']
// 'build/libs/screenfull.min.js': ['libs/screenfull.min.js']
}
}
},
copy: {
main: {
files: [
{src: 'build/epub.js', dest: 'demo/js/epub.min.js'},
{src: 'build/hooks.min.js', dest: 'demo/js/hooks.min.js'},
{src: 'build/reader.min.js', dest: 'demo/js/reader.min.js'},
{src: 'build/epub.min.map', dest: 'demo/js/epub.js.map'},
{src: 'build/hooks.min.map', dest: 'demo/js/hooks.js.map'},
{src: 'build/reader.js.map', dest: 'demo/js/hooks.js.map'},
{src: 'build/zip/*', dest: 'demo/js/libs/', filter: 'isFile'},
{src: 'libs/jquery/jquery-2.1.0.min.js', dest:'demo/js/libs/jquery-2.1.0.min.js'},
{src: 'libs/screenfull.min.js', dest: 'demo/js/libs/screenfull.min.js'},
{src: 'reader/plugins/search.js', dest: 'demo/js/plugins/search.js'},
{src: 'reader/plugins/hypothesis.js', dest: 'demo/js/plugins/hypothesis.js'},
{src: 'hooks/extensions/highlight.js', dest: 'demo/js/hooks/extensions/highlight.js'}
{src: 'build/epub.js', dest: 'reader/js/epub.min.js'},
{src: 'build/hooks.min.js', dest: 'reader/js/hooks.min.js'},
{src: 'build/reader.min.js', dest: 'reader/js/reader.min.js'},
{src: 'build/epub.min.map', dest: 'reader/js/epub.js.map'},
{src: 'build/hooks.min.map', dest: 'reader/js/hooks.js.map'},
{src: 'build/reader.js.map', dest: 'reader/js/hooks.js.map'},
{src: 'build/zip/*', dest: 'reader/js/libs/', filter: 'isFile'},
{src: 'libs/jquery/jquery-2.1.0.min.js', dest:'reader/js/libs/jquery-2.1.0.min.js'},
{src: 'libs/screenfull.min.js', dest: 'reader/js/libs/screenfull.min.js'},
{src: 'reader_src/plugins/search.js', dest: 'reader/js/plugins/search.js'},
{src: 'reader_src/plugins/hypothesis.js', dest: 'reader/js/plugins/hypothesis.js'},
{src: 'hooks/extensions/highlight.js', dest: 'reader/js/hooks/extensions/highlight.js'}

]
},
Expand Down
24 changes: 24 additions & 0 deletions build/epub.js.map

Large diffs are not rendered by default.

1 change: 1 addition & 0 deletions build/epub.min.map

Large diffs are not rendered by default.

23 changes: 23 additions & 0 deletions build/epub_no_underscore.js.map

Large diffs are not rendered by default.

12 changes: 12 additions & 0 deletions build/hooks.js.map

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions build/hooks.min.map

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions build/libs/inflate.map

Large diffs are not rendered by default.

1 change: 1 addition & 0 deletions build/libs/zip.min.map

Large diffs are not rendered by default.

17 changes: 17 additions & 0 deletions build/reader.js.map

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

File renamed without changes.
1 change: 1 addition & 0 deletions build/reader.min.map

Large diffs are not rendered by default.

6 changes: 3 additions & 3 deletions examples/android-patch.html
Original file line number Diff line number Diff line change
Expand Up @@ -43,8 +43,8 @@

<script>

EPUBJS.filePath = "../demo/js/libs/";
EPUBJS.cssPath = "../demo/css/";
EPUBJS.filePath = "../reader/js/libs/";
EPUBJS.cssPath = "../reader/css/";

</script>

Expand Down Expand Up @@ -111,7 +111,7 @@
<script>
"use strict";

var Book = ePub("../demo/moby-dick/", {restore: true, reload: true });
var Book = ePub("../reader/moby-dick/", {restore: true, reload: true });

</script>
</head>
Expand Down
4 changes: 2 additions & 2 deletions examples/annotator.html
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@
<script>
"use strict";

var Book = ePub("../demo/moby-dick/", { restore: true });
var Book = ePub("../reader_src/moby-dick/", { restore: true });


</script>
Expand All @@ -54,7 +54,7 @@
<div id="prev" onclick="Book.prevPage();" class="arrow"></div>
<div id="area"></div>
<div id="next" onclick="Book.nextPage();"class="arrow"></div>
<div id="loader"><img src="../demo/img/loader.gif"></div>
<div id="loader"><img src="../reader/img/loader.gif"></div>
<select id="toc"></select>
</div>

Expand Down
4 changes: 2 additions & 2 deletions examples/backbone.html
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@
<script>
"use strict";

var Book = ePub("/demo/moby-dick/", { restore: true });
var Book = ePub("/reader/moby-dick/", { restore: true });


</script>
Expand All @@ -29,7 +29,7 @@
<div id="prev" onclick="Book.prevPage();" class="arrow"></div>
<div id="area"></div>
<div id="next" onclick="Book.nextPage();"class="arrow"></div>
<div id="loader"><img src="../demo/img/loader.gif"></div>
<div id="loader"><img src="../reader/img/loader.gif"></div>
<select id="toc"></select>
</div>

Expand Down
6 changes: 3 additions & 3 deletions examples/basic-dev.html
Original file line number Diff line number Diff line change
Expand Up @@ -43,8 +43,8 @@

<script>

EPUBJS.filePath = "../demo/js/libs/";
EPUBJS.cssPath = "../demo/css/";
EPUBJS.filePath = "../reader/js/libs/";
EPUBJS.cssPath = "../reader/css/";

</script>

Expand Down Expand Up @@ -107,7 +107,7 @@
<script>
"use strict";

var Book = ePub("../demo/moby-dick/", {restore: true, reload: true });
var Book = ePub("../reader/moby-dick/", {restore: true, reload: true });

</script>
</head>
Expand Down
2 changes: 1 addition & 1 deletion examples/basic.html
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@
<script>
"use strict";

var Book = ePub("../demo/moby-dick/");
var Book = ePub("../reader/moby-dick/");

</script>
</head>
Expand Down
8 changes: 4 additions & 4 deletions examples/contained.html
Original file line number Diff line number Diff line change
Expand Up @@ -13,19 +13,19 @@
<script src="../build/epub.min.js"></script>

<!-- Zip JS -->
<script src="/demo/js/libs/zip.min.js"></script>
<script src="/reader/js/libs/zip.min.js"></script>

<script>

EPUBJS.filePath = "../demo/js/libs/";
EPUBJS.cssPath = "../demo/css/";
EPUBJS.filePath = "../reader/js/libs/";
EPUBJS.cssPath = "../reader/css/";

</script>

<script>
"use strict";

var Book = ePub("../demo/moby-dick.epub");
var Book = ePub("../reader/moby-dick.epub");

</script>
</head>
Expand Down
Loading

0 comments on commit a37b358

Please sign in to comment.