Skip to content

Commit

Permalink
version bump to 0.25.0
Browse files Browse the repository at this point in the history
  • Loading branch information
danielweck committed Feb 2, 2017
2 parents b5aa626 + 85cb909 commit bd05fe1
Show file tree
Hide file tree
Showing 63 changed files with 992 additions and 229 deletions.
4 changes: 2 additions & 2 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ branches:
- develop
language: node_js
node_js:
- '4.2'
- '6'
before_install:
- git submodule update --init --recursive
#
Expand Down Expand Up @@ -99,7 +99,7 @@ env:
- SAUCE_USERNAME=readium
- SAUCE_ACCESS_KEY=a36ebc10-e514-4da6-924c-307aec513550
- USE_SAUCE=true
- secure: onYFok5CBcV1116+kOEZJsyDB1kRHF+8deU1cll3vhxBEM/woSRvpso32oxjuza+or2uXuBT1SiZn0oTmuKD/TRaKw1e8wTtX6kQzCUhyeGoAyJH8SeGIwkt8+x232rFUe2bNLr6e0JAGZMtTjk1Q1zqfONNWAQzsUWDeUqvwt8=
- secure: nwpNZad60c5GglOpnesV6sggzsbCIbLg1ORHB2s347g3tIu3a7evbbToaDD/tsnnZsLHdR71hypCECRFMDORcmkx144lWRlquiGtvIcNb86jAR//QQtzLekFly9UAN6ublG0g5lvdjvBwxlPF1Jig+OMNR95BsnUxbmA8b5guIM=
matrix:
- MODE=chromeApp
- MODE=firefox
Expand Down
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -19,8 +19,8 @@ See [license.txt](./license.txt).

## Prerequisites

* A decent terminal. On Windows, GitShell works great ( http://git-scm.com ), GitBash works too ( https://msysgit.github.io ), and Cygwin adds useful commands ( https://www.cygwin.com ).
* NodeJS ( https://nodejs.org ) **v4** (but not v5, because the installer ships with NPM v3 which seems to [have bugs](https://github.com/readium/readium-js-viewer/issues/453) related to the new flat module dependencies)
* A decent terminal. On Windows, GitBash works great ( https://msysgit.github.io or https://git-for-windows.github.io or https://git-scm.com/download/win ), and optionally Cygwin adds useful commands ( https://www.cygwin.com ).
* NodeJS ( https://nodejs.org ) **v4+** (Note that NodeJS v6+ and NPM v3+ are now supported)


## Development
Expand Down
46 changes: 33 additions & 13 deletions build-config/deployCrx.js
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,6 @@ if (versionJson.readiumJsViewer.branch !== "develop") {
return;
}


if (!process.env.GITHUB_TOKEN)//process.env.MODE == 'chromeApp')
{
console.log("process.env.GITHUB_TOKEN not defined => skipping upload CRX, etc. to GitHub release.");
Expand All @@ -21,7 +20,10 @@ var repo = 'readium-js-viewer';

console.log('deploying crx to github');

// https://mikedeboer.github.io/node-github
// https://developer.github.com/v3/git/
var GitHubApi = require("github");

var https = require('https');

var github = new GitHubApi({
Expand All @@ -37,7 +39,7 @@ var version = packageObj.version;
var oauthToken = process.env.GITHUB_TOKEN;
github.authenticate({
type: "oauth",
token: oauthToken//process.env.GITHUB_TOKEN
token: oauthToken
});

var deleteOldRelease = function(error, response){
Expand All @@ -46,15 +48,15 @@ var deleteOldRelease = function(error, response){
return;
}

github.repos.getReleases({user: owner, repo: repo}, function(error, releases){
github.repos.getReleases({owner: owner, repo: repo}, function(error, releases){
for (var i = 0; i < releases.length; i++){
if (releases[i].tag_name == version){
break;
}
}
if (i < releases.length){
console.log('found existing release, deleting');
github.repos.deleteRelease({user: owner, repo: repo, id: releases[i].id}, function(error, response){
github.repos.deleteRelease({owner: owner, repo: repo, id: releases[i].id}, function(error, response){
if (error){
console.error(JSON.stringify(error));
return;
Expand Down Expand Up @@ -131,7 +133,7 @@ var createRelease = function(){
var releaseData = {
tag_name: version,
//target_commitish: process.env.TRAVIS_COMMIT,
user: owner,
owner: owner,
repo: repo,
name: releaseTitle,
body: releaseDescription,
Expand Down Expand Up @@ -168,22 +170,40 @@ var createRelease = function(){
};

var tagRef = {
user: owner,
owner: owner,
repo: repo,
ref: 'tags/' + version
};

github.gitdata.getReference(tagRef, function(error, result){
github.gitdata.getReference(tagRef, function(error, result) {

var func;
tagRef.sha = process.env.TRAVIS_COMMIT;
if (error){
console.log(version + ' tag does not exist, creating.');

if (error) {
//console.error(JSON.stringify(error));

tagRef.ref = 'refs/' + tagRef.ref;

console.log(version + ' tag does not exist, creating.');
github.gitdata.createReference(tagRef, deleteOldRelease);
}
else{
console.log('updating previous "' + version + '" release tag');
github.gitdata.updateReference(tagRef, deleteOldRelease);
else {
//console.log(JSON.stringify(result));

//console.log('updating previous "' + version + '" release tag');
//github.gitdata.updateReference(tagRef, deleteOldRelease);

console.log('deleting previous "' + version + '" release tag');
github.gitdata.deleteReference(tagRef, function(error, response) {
if (error){
console.error(JSON.stringify(error));
return;
}

tagRef.ref = 'refs/' + tagRef.ref;

console.log(version + ' tag re-creating.');
github.gitdata.createReference(tagRef, deleteOldRelease);
});
}
});
7 changes: 7 additions & 0 deletions dev/RequireJS_config.js
Original file line number Diff line number Diff line change
Expand Up @@ -60,6 +60,11 @@ var getURLQueryParams = function() {

var urlParams = getURLQueryParams();

var fontsArray = [];
if (typeof getFontFaces != "undefined") { // defined externally
fontsArray = getFontFaces(HTTPServerRootFolder + "/src/fonts/");
}

// MUST BE *SINGLE* CALL TO require.config() FOR ALMOND (SINGLE BUNDLE) TO WORK CORRECTLY!!!
require.config({
/* http://requirejs.org/docs/api.html#config-waitSeconds */
Expand All @@ -71,6 +76,8 @@ require.config({

'mathJaxUrl': HTTPServerRootFolder + '/node_modules/mathjax-single-file/dist/MMLSVG/MathJax.js',

'fonts': fontsArray,

'annotationCSSUrl': HTTPServerRootFolder + '/src/css/annotations.css',

'jsLibRoot': HTTPServerRootFolder + '/readium-js/node_modules/zip-js/WebContent/',
Expand Down
2 changes: 2 additions & 0 deletions dev/index_RequireJS_multiple-bundles.html
Original file line number Diff line number Diff line change
Expand Up @@ -86,6 +86,8 @@



<script type="text/javascript" src="../src/fonts/fonts.js"> </script>

<script type="text/javascript" src="./RequireJS_config.js"> </script>

<script type="text/javascript">
Expand Down
2 changes: 2 additions & 0 deletions dev/index_RequireJS_multiple-bundles_LITE.html
Original file line number Diff line number Diff line change
Expand Up @@ -75,6 +75,8 @@



<script type="text/javascript" src="../src/fonts/fonts.js"> </script>

<script type="text/javascript" src="./RequireJS_config.js"> </script>

<script type="text/javascript">
Expand Down
3 changes: 3 additions & 0 deletions dev/index_RequireJS_no-optimize.html
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,9 @@

<script type="text/javascript" src="../readium-js/readium-shared-js/build-config/RequireJS_config_plugins.js"> </script>


<script type="text/javascript" src="../src/fonts/fonts.js"> </script>

<script type="text/javascript" src="./RequireJS_config.js"> </script>


Expand Down
5 changes: 4 additions & 1 deletion dev/index_RequireJS_no-optimize_LITE.html
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,10 @@

<script type="text/javascript" src="../readium-js/readium-shared-js/build-config/RequireJS_config_plugins.js"> </script>

<script type="text/javascript" src="./RequireJS_config.js"> </script>

<script type="text/javascript" src="../src/fonts/fonts.js"> </script>

<script type="text/javascript" src="./RequireJS_config.js"> </script>


<script type="text/javascript">
Expand Down
2 changes: 2 additions & 0 deletions dev/index_RequireJS_single-bundle.html
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,8 @@

<script type="text/javascript" src="../build-output/_single-bundle/readium-js-viewer_all.js"> </script>

<script type="text/javascript" src="../src/fonts/fonts.js"> </script>

<script type="text/javascript" src="./RequireJS_config.js"> </script>

</head>
Expand Down
3 changes: 3 additions & 0 deletions dev/index_RequireJS_single-bundle_LITE.html
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,9 @@

<script type="text/javascript" src="../build-output/_single-bundle/readium-js-viewer_all_LITE.js"> </script>


<script type="text/javascript" src="../src/fonts/fonts.js"> </script>

<script type="text/javascript" src="./RequireJS_config.js"> </script>

</head>
Expand Down
14 changes: 7 additions & 7 deletions epub_content/epub_edu.opds
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
<feed xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:odl="http://opds-spec.org/odl" xml:lang="en" xmlns:dcterms="http://purl.org/dc/terms/" xmlns="http://www.w3.org/2005/Atom" xmlns:app="http://www.w3.org/2007/app" xmlns:opensearch="http://a9.com/-/spec/opensearch/1.1/" xmlns:thr="http://purl.org/syndication/thread/1.0" xmlns:opds="http://opds-spec.org/2010/catalog">
<updated>2016-03-09T07:37:21.491Z</updated>
<updated>2016-11-25T10:46:31.044Z</updated>
<id>READIUM_OPDS_https___github.com_IDPF_education_tree_master_samples</id>
<title>Readium CloudReader OPDS feed for [ https://github.com/IDPF/education/tree/master/samples ]</title>
<link rel="self" href="epub_content/epub_edu.opds" type="application/atom+xml;profile=opds-catalog;kind=navigation"/>
Expand All @@ -12,7 +12,7 @@
</author>
<link type="application/epub" href="https://cdn.rawgit.com/IDPF/education/master/samples/English-Language-GCSE-for-AQA" rel="http://opds-spec.org/acquisition"/>
<link type="image/jpg" href="https://cdn.rawgit.com/IDPF/education/master/samples/English-Language-GCSE-for-AQA/EPUB/content.opf/../Images/9781107453005frcvr.jpg" rel="http://opds-spec.org/image/thumbnail"/>
<updated>2016-03-09T07:37:21.491Z</updated>
<updated>2016-11-25T10:46:31.044Z</updated>
<id>READIUM_OPDS_https___cdn.rawgit.com_IDPF_education_master_samples_English-Language-GCSE-for-AQA</id>
</entry>
<entry>
Expand All @@ -22,7 +22,7 @@
</author>
<link type="application/epub" href="https://cdn.rawgit.com/IDPF/education/master/samples/English-Literature-GCSE-for-AQA" rel="http://opds-spec.org/acquisition"/>
<link type="image/jpg" href="https://cdn.rawgit.com/IDPF/education/master/samples/English-Literature-GCSE-for-AQA/EPUB/content.opf/../Images/9781107454729frcvr.jpg" rel="http://opds-spec.org/image/thumbnail"/>
<updated>2016-03-09T07:37:21.491Z</updated>
<updated>2016-11-25T10:46:31.044Z</updated>
<id>READIUM_OPDS_https___cdn.rawgit.com_IDPF_education_master_samples_English-Literature-GCSE-for-AQA</id>
</entry>
<entry>
Expand All @@ -31,7 +31,7 @@
<name>IDPF/education (master) - samples/WCAG-ch1</name>
</author>
<link type="application/epub" href="https://cdn.rawgit.com/IDPF/education/master/samples/WCAG-ch1" rel="http://opds-spec.org/acquisition"/>
<updated>2016-03-09T07:37:21.491Z</updated>
<updated>2016-11-25T10:46:31.044Z</updated>
<id>READIUM_OPDS_https___cdn.rawgit.com_IDPF_education_master_samples_WCAG-ch1</id>
</entry>
<entry>
Expand All @@ -40,7 +40,7 @@
<name>IDPF/education (master) - samples/linear-algebra</name>
</author>
<link type="application/epub" href="https://cdn.rawgit.com/IDPF/education/master/samples/linear-algebra" rel="http://opds-spec.org/acquisition"/>
<updated>2016-03-09T07:37:21.491Z</updated>
<updated>2016-11-25T10:46:31.044Z</updated>
<id>READIUM_OPDS_https___cdn.rawgit.com_IDPF_education_master_samples_linear-algebra</id>
</entry>
<entry>
Expand All @@ -50,7 +50,7 @@
</author>
<link type="application/epub" href="https://cdn.rawgit.com/IDPF/education/master/samples/structure-sample-01" rel="http://opds-spec.org/acquisition"/>
<link type="image/jpg" href="https://cdn.rawgit.com/IDPF/education/master/samples/structure-sample-01/EPUB/package.opf/../images/cover.jpg" rel="http://opds-spec.org/image/thumbnail"/>
<updated>2016-03-09T07:37:21.491Z</updated>
<updated>2016-11-25T10:46:31.044Z</updated>
<id>READIUM_OPDS_https___cdn.rawgit.com_IDPF_education_master_samples_structure-sample-01</id>
</entry>
<entry>
Expand All @@ -59,7 +59,7 @@
<name>snaekobbi/braille-rendition-epub (samples) - edupub/samples/WCAG-ch1</name>
</author>
<link type="application/epub" href="https://cdn.rawgit.com/snaekobbi/braille-rendition-epub/samples/edupub/samples/WCAG-ch1" rel="http://opds-spec.org/acquisition"/>
<updated>2016-03-09T07:37:28.202Z</updated>
<updated>2016-11-25T10:46:34.433Z</updated>
<id>READIUM_OPDS_https___cdn.rawgit.com_snaekobbi_braille-rendition-epub_samples_edupub_samples_WCAG-ch1</id>
</entry>
</feed>
Loading

0 comments on commit bd05fe1

Please sign in to comment.