CLI for creating PortPi apps.
PortPi is a Raspberry Pi project.
This package requires node >= 4
, but we recommend node >= 8
.
npm install -g create-portpi-app
create-portpi-app
Answer some basic prompts about your app, and then the CLI will perform the following steps:
- copy over the PortPi app template
- install dependencies via yarn or npm
- link packages together for local development
- initialize local git repo
At this point, your new app should be all setup for local development.
Local development is broken into two parts (ideally using two tabs).
First, run rollup to watch your src/
module and automatically recompile it into dist/
whenever you make changes.
npm start # runs rollup with watch flag
The second part will be running the example/
a PortPi dev server that's linked to the local version of your app.
# (in another tab)
cd example
npm start # runs PortPi dev server
Now, anytime you make a change to your app in src/
or to the example dev server's example/src
, PortPi dev server will live-reload your local dev server so you can iterate on your app in real-time.
For now only the following packages can be used in your app:
- react
- prop-types
- @material-ui/core
- @material-ui/icons
- MIT © Travis Fischer
- MIT © Vivo Xu
- MIT © PortPi