TravisCI, develop
branch:
- NodeJS >= 7 (check with
node --version
) - NPM >= 5.3 (check with
npm --version
)
In readium-desktop project
npm install
(initialize localnode_modules
packages from dependencies declared inpackage.json
)
npm run start:dev
npm start
It's very important (required) to launch lint before pushing any code on github repository
npm run lint
In devlopment environment, the renderer process is hot loaded. So if you made changes in your code, electron will automatically reload your renderer view.
To package, create an installer for the application:
npm run package
npm update --global
(sync NPM global packages)
npm update
(sync local packages)npm install
You cannot update npm using npm install -g npm@latest
Run PowerShell as Administrator and type these commands:
Set-ExecutionPolicy Unrestricted -Scope CurrentUser -Force
npm install -g npm-windows-upgrade
npm-windows-upgrade
To compile native modules, like leveldown for production use, you have to install all the visual C++ toochain.
To do it, launch the powershell as an administrator and type:
npm install -g windows-build-tools
On OSX, webpack dev server has a high CPU usage. To prevent this install fsevents
npm install -g fsevents
NPM 5.4 on windows does not work as expected and generates some permission issues: npm/npm#18380
electron-userland/electron-builder#993
Install xorriso sudo apt-get install xorriso -y
and set env USE_SYSTEM_XORRISO=true
(10.13.1+)
cd /lib/x86_64-linux-gnu
sudo ln -s libreadline.so.7.0 libreadline.so.6
- typescript
- electron
- reactjs
- redux
- saga
- pouchdb
- i18next
We provide 2 adapaters for the database storage
Jsondown is designed for the development environment. It is useful if you want to use the application without installing any dev tools like Visual C++ Warning: Do not use it in production environment
Leveldown is fast and is shipped in the production environment.
http://www.feedbooks.com/books/top.atom?category=FBFIC019000