Project of existing app - hybrid version of react + redux + cordova
- Install dependencies:
npm ioryarn install - Install global tools:
npm install -g cordova - Add your cordova platform by running
cordova platform add %PLATFORM%(android and more)
npm run lint[:report]- runs linting against src folder and fix some of the issues,reportoption to generate html report to./report.html.npm run start[:prod]- starts a server, with react model replacement and devtools onlocalhost:8080,prodoption to minify the build (same build eventually integrated with the cordova app).npm run build[:prod][:watch]- builds the project (single html file and single js file) as it does for development.npm run test[:watch][:coverage]- runs Mocha testing, outputs result to console,watchoptions to watch files and test again after file modification,coverageoption to generate coverage reports to./coveragefolder (index.htmlis a usuful one!).