callstack-io / haul
- суббота, 1 апреля 2017 г. в 03:12:23
JavaScript
Haul is a command line tool for developing React Native apps
A command line tool for developing React Native apps
Open: Haul is a drop-in replacement for react-native
CLI built on open tools like Webpack.
Hackable: Provides a familiar environment by leveraging the Webpack ecosystem.
Just works: Built on top of battle tested open source projects, so you never hit annoying issues like symlink support.
Helpful: Designed from the ground up with helpful error messages to increase your productivity.
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-cli
To configure your project to use haul, run the following:
yarn run 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 run 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
Check out the docs to learn more about available commands and tips on customizing the webpack configuration.
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:
react-native
commandsThe following features are unlikely to be supported in the future:
webpack.haul.js
config insteadnode_modules
: transpile your modules before publishing, or configure webpack not to ignore them