An Electron-based cross-platform desktop reader for free ebooks (EPUB) from Project Gutenberg and Unglue.it. The InfiniteLibrary team has grown out of two Codex Hackathons.
If you don't have yarn, see https://yarnpkg.com/en/docs/install.
$ cd [infinite-electron path]
$ yarn
Run these two commands simultaneously in different console tabs.
$ yarn run hot-server
$ yarn run start-hot
or run two servers with one command
$ yarn run dev
See electron-debug for more information.
This boilerplate is included following DevTools extensions:
You can find the tabs on Chrome DevTools.
If you want to update extensions version, please set UPGRADE_EXTENSIONS
env, just run:
$ UPGRADE_EXTENSIONS=1 yarn run dev
# For Windows
$ set UPGRADE_EXTENSIONS=1 && yarn run dev
To package apps for the local platform:
$ yarn run package
To package apps for all platforms:
First, refer to Multi Platform Build for dependencies.
Then,
$ yarn run package-all
To package apps with options:
$ yarn run package -- --[option]
To run the application without packaging run
$ yarn run build
$ yarn start
See electron-builder CLI Usage
This boilerplate uses a two package.json structure.
dependencies
in ./app/package.json
.import
ed by another module, include it in dependencies
in ./package.json
. See this ESLint rule.devDependencies
in ./package.json
.