Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,7 @@ All notable changes to this project will be documented in this file. Take a look
* Fixed turning pages of an EPUB reflowable resource with an odd number of columns. A virtual blank trailing column is appended to the resource when displayed as two columns.
* EPUB: Fallback on `reflowable` if the `presentation.layout` hint is missing from a manifest.
* EPUB: Offset of the current selection's `rect` to take into account the vertical padding.
* Improve backward compatibility of JavaScript files using Babel.


## [2.1.1]
Expand Down
1 change: 1 addition & 0 deletions readium/navigator/src/main/assets/_scripts/.eslintrc.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
},
"globals": {
"Android": "readonly",
"global": "writable",
"readium": "writable"
},
"extends": "eslint:recommended",
Expand Down
3 changes: 3 additions & 0 deletions readium/navigator/src/main/assets/_scripts/babel.config.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
{
"presets": ["@babel/preset-env"]
}
8 changes: 6 additions & 2 deletions readium/navigator/src/main/assets/_scripts/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
{
"name": "readium-js",
"author": "Readium Foundation",
"version": "0.1.0",
"license": "BSD-3-Clause",
"description": "A set of scripts for the EPUB navigator",
"private": true,
"scripts": {
Expand All @@ -9,9 +11,11 @@
"checkformat": "prettier --check '**/*.js'",
"format": "prettier --list-different --write '**/*.js'"
},
"author": "Readium Foundation",
"license": "BSD-3-Clause",
"browserslist": [ "Android >= 4" ],
"devDependencies": {
"@babel/core": "^7.16.0",
"@babel/preset-env": "^7.16.0",
"babel-loader": "^8.2.3",
"eslint": "^7.29.0",
"prettier": "2.3.1",
"webpack": "^5.40.0",
Expand Down
14 changes: 14 additions & 0 deletions readium/navigator/src/main/assets/_scripts/webpack.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -11,4 +11,18 @@ module.exports = {
filename: "readium-[name].js",
path: path.resolve(__dirname, "../readium/scripts"),
},
module: {
rules: [
{
test: /\.m?js$/,
exclude: /node_modules/,
use: {
loader: "babel-loader",
options: {
presets: ["@babel/preset-env"],
},
},
},
],
},
};
1,157 changes: 1,151 additions & 6 deletions readium/navigator/src/main/assets/_scripts/yarn.lock

Large diffs are not rendered by default.

Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
*.map

Large diffs are not rendered by default.

Large diffs are not rendered by default.