
Security News
vlt Launches "reproduce": A New Tool Challenging the Limits of Package Provenance
vlt's new "reproduce" tool verifies npm packages against their source code, outperforming traditional provenance adoption in the JavaScript ecosystem.
phonegap-template-react-hot-loader
Advanced tools
PhoneGap Template using React, ES2015, Webpack, and hot module reloading
React.js Cordova / PhoneGap Template with Babel, Webpack and Hot Reloading
To use this template, you'll need Node.js v4 or newer.
To use this as a template, use Cordova 6.0.0+ and create a new project:
cordova create MyAppName --template=phonegap-template-react-hot-loader
or
phonegap create MyAppName --template react-hot-loader
then
cd MyAppName
npm install
Run this to start the development webpack server:
npm start
You can then open the app in your browser by visiting localhost:8080
Open it in the iOS Simulator by running (in another terminal):
cordova platform add ios
npm run ios
Or in the Android emulator with:
cordova platform add android
npm run android
(both of which are just calling cordova run ios
and cordova run android
)
In this mode, the app will live-reload changes to React components using react-hot-loader and CSS changes using the Webpack CSS loader.
To build the app without the development hot module reloading server:
npm run build [ -- ios || android]
i.e.:
npm run prepare -- ios
npm run prepare -- android
This will switch your config.xml
file to production mode, build the app bundle to /www
using Webpack, and run cordova build
for you.
After that, the normal Cordova / PhoneGap commands can be used such as phonegap serve
, or cordova run ios
, etc.
MIT. Copyright (c) 2016 Jed Watson.
FAQs
PhoneGap Template using React, ES2015, Webpack, and hot module reloading
The npm package phonegap-template-react-hot-loader receives a total of 1 weekly downloads. As such, phonegap-template-react-hot-loader popularity was classified as not popular.
We found that phonegap-template-react-hot-loader demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
vlt's new "reproduce" tool verifies npm packages against their source code, outperforming traditional provenance adoption in the JavaScript ecosystem.
Research
Security News
Socket researchers uncovered a malicious PyPI package exploiting Deezer’s API to enable coordinated music piracy through API abuse and C2 server control.
Research
The Socket Research Team discovered a malicious npm package, '@ton-wallet/create', stealing cryptocurrency wallet keys from developers and users in the TON ecosystem.