-
Notifications
You must be signed in to change notification settings - Fork 240
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Refactor :compress task in Rakefile.
This task is now run *before* other tasks. So we first compress the contents of template/ dir into template-min/ and from then on use the template-min/ dir as our template. To perform sencha build, I added build-js.html file that is like template.html but contains only bare minumum of JavaScript links that we need to build into one file. The purpose of all this is to run the :compress before building gem for release version of JSDuck. For this reason we also don't concatenate data.js with app.js, as the jsduck gem wants to generate its own data.js. The default value for --template option is now "template-min/", only in development related tasks :sdk and :touch do we replace it with "template/".
- Loading branch information
Showing
6 changed files
with
95 additions
and
66 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -2,4 +2,5 @@ | |
template/extjs | ||
template/resources/css | ||
template/resources/sass/.sass-cache | ||
template-min/ | ||
sdk-vars.rb |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
<!DOCTYPE html> | ||
<html> | ||
<head> | ||
<!-- | ||
This file loads only the mandatory JavaScript. | ||
It is feeded into `sencha create jsb` command to create a | ||
concatenated+compressed version of the Docs app JavaScript. | ||
--> | ||
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> | ||
|
||
<script type="text/javascript">Docs = {localStorageDb: "docs"};</script> | ||
<script type="text/javascript" src="extjs/ext.js"></script> | ||
<!-- BEGIN JS --> | ||
<script type="text/javascript" src="resources/codemirror/codemirror.js"></script> | ||
<script type="text/javascript" src="resources/codemirror/javascript.js"></script> | ||
<script type="text/javascript" src="resources/prettify/prettify.js"></script> | ||
<script type="text/javascript" src="app.js"></script> | ||
<!-- END JS --> | ||
<script type="text/javascript" src="data.js"></script> | ||
|
||
</head> | ||
<body> | ||
|
||
</body> | ||
</html> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters