Universal Relay Boilerplate and Rebar NPM Tasks
The tasks listed here are both for Mac and Windows. Windows specific tasks are included in the unit urb-tools-windows.
Setup
Task |
Details |
setup-local |
Sets up the URB for use on local dev machine. |
setup-local-w |
Sets up the URB for use on local dev machine, for Windows. |
setup-database |
Sets up tables for all the persisters. The exact functionality is subject to the persister implementation. |
Configuration
Task |
Details |
update-default-persister |
Updates the default persister to the specified value, for instance yarn update-default-persister memory . |
update-ip |
Updates the IP the application is hosted from. Useful for mobile development on physical devices. Using yarn update-ip will attempt to determine the IP address of the current machine, and yarn update-ip -- vvv.xxx.yyy.zzz will set the specified address explicitly. yarn update-ip -- localhost is also possible. |
Build
Task |
Details |
build-babel |
Builds the server application using babel in '/build' directory for production use. |
build-bump-version |
Increases the build number, last number in the version, with one. |
build-bundle-ios |
Builds the react native bundle for iOS for production. |
build-bundle-ios-dev |
Builds the react native bundle for iOS for development. |
build-lint |
Runs lint on the project. |
build-schema |
Rebuilds GraphQL schema from the JavaScript definition. |
build-deployment |
Builds schema, webpack and babel. |
build-webpack |
Runs a webpack build in order to run in production mode. Created and populates public/assets/{Version} `. |
Run
Task |
Details |
dev-reset |
Resets common caches and temporary files which can cause issues while developing. |
dev-prod |
Run the server in production mode. This script uses babel to run the server, but sets NODE_ENV=production . |
dev-server |
Starts the application server in development mode. |
dev-server-w |
Starts the application server in development mode, for Windows. |
dev-webpack |
Starts the webpack development server, responsible for asset compilation and hot reload. |
dev-webpack-w |
Starts the webpack development server, responsible for asset compilation and hot reload. For Windows. |
dev |
Starts the task at the same time: start-webpack , dev-server and start . |
dev-w |
Starts the task at the same time: start-webpack-w , dev-server-w and start . For Windows. |
start |
Run the react native development server. |