0.3.0 β€’ Published 6 years ago

react-qml-cli v0.3.0

Weekly downloads
6
License
MIT
Repository
github
Last release
6 years ago

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 additonal 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

If you're on a React Native version >= 0.43, add the following in android/app/build.gradle somewhere before the apply from: "../../node_modules/react-native/react.gradle" statement:

project.ext.react = [
    cliPath: "node_modules/haul/bin/cli.js"
]

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

yarn 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

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:

  • 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Ε‘πŸ’»

This project follows the all-contributors specification. Contributions of any kind welcome!

babel-corebabel-loaderbabel-plugin-async-to-promisesbabel-plugin-check-es2015-constantsbabel-plugin-syntax-async-functionsbabel-plugin-syntax-class-propertiesbabel-plugin-syntax-trailing-function-commasbabel-plugin-transform-class-propertiesbabel-plugin-transform-es2015-arrow-functionsbabel-plugin-transform-es2015-block-scopingbabel-plugin-transform-es2015-classesbabel-plugin-transform-es2015-computed-propertiesbabel-plugin-transform-es2015-destructuringbabel-plugin-transform-es2015-for-ofbabel-plugin-transform-es2015-function-namebabel-plugin-transform-es2015-literalsbabel-plugin-transform-es2015-modules-commonjsbabel-plugin-transform-es2015-parametersbabel-plugin-transform-es2015-shorthand-propertiesbabel-plugin-transform-es2015-spreadbabel-plugin-transform-es2015-template-literalsbabel-plugin-transform-flow-strip-typesbabel-plugin-transform-object-assignbabel-plugin-transform-object-rest-spreadbabel-plugin-transform-react-display-namebabel-plugin-transform-react-jsxbabel-plugin-transform-react-jsx-sourcebabel-preset-envbabel-registercamelcase-keyscase-sensitive-paths-webpack-pluginchalkclearcliuiclonedecamelizededentdlvescape-string-regexpexpressfetch-ie8file-loadergenerate-asset-webpack-pluginhashahoist-non-react-staticsimage-sizeinquirerloader-utilsminimistmorganmulti-progressopen-in-editoropnorapromise-polyfillreact-deep-force-updatereact-devtools-corereact-hot-loaderresolveresolve-fromrxjssource-mapstring-replace-webpack-pluginstrip-ansithread-loaderwebpackwebpack-dev-middlewarewebpack-hot-middlewarews
0.3.0

6 years ago

0.2.13

6 years ago

0.2.12

6 years ago

0.2.11

6 years ago

0.2.10

7 years ago

0.2.9

7 years ago

0.2.8

7 years ago

0.2.7

7 years ago

0.2.6

7 years ago

0.2.5

7 years ago

0.2.4

7 years ago

0.2.3

7 years ago

0.2.2

7 years ago