Name: haul
Owner: Callstack
Description: Haul is a command line tool for developing React Native apps, powered by Webpack
Created: 2017-03-20 20:23:31.0
Updated: 2018-05-24 15:54:02.0
Pushed: 2018-05-23 17:49:36.0
Homepage: https://callstack.github.io/haul/
Size: 1640
Language: JavaScript
GitHub Committers
User | Most Recent Commit | # Commits |
---|
Other Committers
User | Most Recent Commit | # Commits |
---|
A command line tool for developing React Native apps
Haul is a drop-in replacement for react-native
CLI built on open tools like Webpack. It can act as a development server or bundle your React Native app for production.
Start by adding Haul as a dependency to your React Native project (use react-native init MyProject
to create one if you don't have a project):
add --dev haul
aditionalist? No problem:
install --save-dev haul
To configure your project to use haul, run the following:
haul init
m >= 5.2.0 :
haul init
m < 5.2.0 :
install -g npx
haul init
This will automatically add the configuration needed to make Haul work with your app, e.g. add webpack.haul.js
to your project, which you can customise to add more functionality.
Next, you're ready to start the development server:
haul start -- --platform ios
:
haul start --platform ios
Finally, reload your app to update the bundle or run your app just like you normally would:
t-native run-ios
Check out the docs to learn more about available commands and tips on customizing the webpack configuration.
Please refer to the Setup guide.
Haul uses a completely different architecture from React Native packager, which means there are some things which don't work quite the same.
We are actively working on adding support for the following:
Currently we don't support delta bundles (metro feature) (Android). To make Haul work with RN 0.52+
, you have to disable that feature - During development, bring up Dev Menu (cmd + m
), select Dev Settings
and uncheck Delta bundles
react-native
commandsThe following features are unlikely to be supported in the future:
node_modules
: transpile your modules before publishing, or configure webpack not to ignore themThanks goes to these wonderful people (emoji key):
|
Mike Grabowski
? ? ? ? ? ? ? |
Satyajit Sahoo
? ? ? ? ? |
Pawe? Trys?a
? ? ? ? ? ? |
Krzysztof Borowy
? ? ? ? |
Micha? Pierzcha?a
? ? ?? |
Steve Kellock
? |
Mathieu Dutour
? |
| :—: | :—: | :—: | :—: | :—: | :—: | :—: |
|
Orta
? |
Yann Pringault
? ? |
Drapich Piotr
? ? |
Júlio César
? ? |
LiJung Chi
? |
spypsy
? |
Juwan Wheatley
? |
|
Jeremi Stadler
? |
David Sheldrick
? |
Miguel Oller
? ? |
Krzysztof Karol
? |
Jakub Stasiak
? |
Ferran Negre
? ? |
CL123123
? |
|
Marty Penner
? |
Jim Cummins
? |
Gant Laborde
? |
Pawe? Burniak
? |
bsnelder
? |
aivæn
? |
Nemanja Stojanovic
? |
|
bogdanbolchis
? |
Joe Arasin
? ? |
Norbert de Langen
? |
Gustav Wengel
? |
Eric Wooley
? ? |
Matt Cubitt
? ? |
Jakub Bene?
? |
|
Tasveer Singh
? |
Luke Czyszczonik
? ? |
This project follows the all-contributors specification. Contributions of any kind welcome!