callstack/haul

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

UserMost Recent Commit# Commits

Other Committers

UserEmailMost Recent Commit# Commits

README

Haul

A command line tool for developing React Native apps


Build Status Version MIT License

All Contributors PRs Welcome Code of Conduct

Chat tweet

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.

Features
Getting started

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

Documentation

Check out the docs to learn more about available commands and tips on customizing the webpack configuration.

  1. CLI Commands
  2. Configuration
  3. Recipes
Hot Module Replacement

Please refer to the Setup guide.

Limitations

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

The following features are unlikely to be supported in the future:

Contributors

Thanks 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!


This work is supported by the National Institutes of Health's National Center for Advancing Translational Sciences, Grant Number U24TR002306. This work is solely the responsibility of the creators and does not necessarily represent the official views of the National Institutes of Health.