haul
Haul is a new command line tools for React Native
Last updated 8 months ago by thymikee .
MIT · Repository · Bugs · Original npm · Tarball · package.json
$ cnpm install haul 
SYNC missed versions from official npm registry.

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

  • Replaces React Native packager to bundle your app
  • Access to full webpack ecosystem, using additional loaders and plugins is simple
  • Doesn't need watchman, symlinks work nicely
  • Helpful and easy to understand error messages
  • Hot Module Reloading

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):

yarn add --dev haul
# Traditionalist? No problem:
npm install --save-dev haul

To configure your project to use haul, run the following:

yarn haul init
# npm >= 5.2.0 :
npx haul init
# npm < 5.2.0 :
npm install -g npx
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:

yarn haul start -- --platform ios
# Or:
npx haul start --platform ios

Finally, reload your app to update the bundle or run your app just like you normally would:

react-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:

  • Delta Bundles (RN 0.52+)

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

  • Existing react-native commands

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

  • Haste module system: use something like babel-plugin-module-resolver instead
  • Transpile files under node_modules: transpile your modules before publishing, or configure webpack not to ignore them

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!

Current Tags

  • 1.0.0-rc.15                                ...           latest (8 months ago)
  • 1.0.0-rc.15                                ...           next (8 months ago)

31 Versions

  • 1.0.0-rc.15                                ...           8 months ago
  • 1.0.0-rc.14                                ...           9 months ago
  • 1.0.0-rc.13                                ...           9 months ago
  • 1.0.0-rc.12                                ...           9 months ago
  • 1.0.0-rc.11                                ...           10 months ago
  • 1.0.0-rc.10                                ...           a year ago
  • 1.0.0-rc.9                                ...           a year ago
  • 1.0.0-rc.8                                ...           a year ago
  • 1.0.0-rc.7                                ...           a year ago
  • 1.0.0-rc.6                                ...           a year ago
  • 1.0.0-rc.5                                ...           a year ago
  • 1.0.0-rc.4                                ...           a year ago
  • 1.0.0-rc.3                                ...           a year ago
  • 1.0.0-rc.2                                ...           a year ago
  • 1.0.0-rc.1                                ...           a year ago
  • 1.0.0-rc.0                                ...           2 years ago
  • 1.0.0-beta.14                                ...           2 years ago
  • 1.0.0-beta.13                                ...           2 years ago
  • 1.0.0-beta.12                                ...           2 years ago
  • 1.0.0-beta.11                                ...           2 years ago
  • 1.0.0-beta.10                                ...           2 years ago
  • 1.0.0-beta.9                                ...           2 years ago
  • 1.0.0-beta.7                                ...           2 years ago
  • 1.0.0-beta.6                                ...           2 years ago
  • 1.0.0-beta.5                                ...           2 years ago
  • 1.0.0-beta.4                                ...           2 years ago
  • 1.0.0-beta.3                                ...           2 years ago
  • 1.0.0-beta.2                                ...           2 years ago
  • 1.0.0-beta.1                                ...           2 years ago
  • 1.0.0-beta.0                                ...           2 years ago
  • 0.0.0                                ...           6 years ago
Downloads
Today 0
This Week 2
This Month 36
Last Day 1
Last Week 34
Last Month 89
Dev Dependencies (14)

Copyright 2014 - 2016 © taobao.org |