rn-packager
Based on Facebook Packager v0.42.3, support Core & Business JS Separate.
Last updated 2 years ago by swainet .
MIT · Repository · Bugs · Original npm · Tarball · package.json
$ cnpm install rn-packager 
SYNC missed versions from official npm registry.

ReactNative Packager


Standalone ReactNative Packager without framework code.

node.js react-native react

Do What?

  1. bundle-split, solution from https://github.com/facebook/react-native/pull/10804
  2. use module name as before (ps: core.bundle and app.bundle are different bundle session, so module ids may conflict)

Dependencies

"devDependencies": {
  "rn-packager": "~0.12.0",
  "react-native": "0.42.3",
  "react": "~15.4.1"
}

Bundle

Now u can use manifest.json file to generate core modules.

  1. Bundle ur core bundle and output manifest.json
  2. Bundle ur app bundle with manifest.json that Step 1 generated.

Bundle core

$ rnpackager bundle --entry-file node_modules/react-native/Libraries/react-native/react-native.js --bundle-output core.ios.bundle --platform ios --manifest-output core.ios.manifest.json

Bundle app

rnpackager bundle --entry-file foo.js --bundle-output foo.ios.bundle --platform ios --manifest-file core.ios.manifest.json

Server

$ rnpackager start

Demo

$ cd tests
$ npm i
$ rnpackager start

visit:

Current Tags

  • 0.2.0                                ...           beta (4 years ago)
  • 0.12.1                                ...           latest (2 years ago)

65 Versions

  • 0.12.1                                ...           2 years ago
  • 0.12.0                                ...           2 years ago
  • 0.3.18                                ...           3 years ago
  • 0.11.1                                ...           3 years ago
  • 0.11.0                                ...           3 years ago
  • 0.3.17                                ...           3 years ago
  • 0.10.1                                ...           3 years ago
  • 0.10.0                                ...           3 years ago
  • 0.9.9                                ...           3 years ago
  • 0.9.8                                ...           3 years ago
  • 0.9.7                                ...           3 years ago
  • 0.9.6                                ...           3 years ago
  • 0.9.5                                ...           3 years ago
  • 0.9.4                                ...           3 years ago
  • 0.9.3                                ...           3 years ago
  • 0.3.16                                ...           3 years ago
  • 0.9.2                                ...           3 years ago
  • 0.9.1                                ...           3 years ago
  • 0.9.0                                ...           3 years ago
  • 0.8.1                                ...           3 years ago
  • 0.8.0                                ...           3 years ago
  • 0.3.15                                ...           3 years ago
  • 0.7.2                                ...           3 years ago
  • 0.7.1                                ...           3 years ago
  • 0.7.0                                ...           3 years ago
  • 0.6.0                                ...           3 years ago
  • 0.5.5                                ...           3 years ago
  • 0.5.4                                ...           3 years ago
  • 0.5.3                                ...           3 years ago
  • 0.5.2                                ...           3 years ago
  • 0.5.1                                ...           3 years ago
  • 0.5.0                                ...           3 years ago
  • 0.3.14                                ...           3 years ago
  • 0.3.13                                ...           3 years ago
  • 0.3.12                                ...           4 years ago
  • 0.3.11                                ...           4 years ago
  • 0.3.10                                ...           4 years ago
  • 0.3.9                                ...           4 years ago
  • 0.3.8                                ...           4 years ago
  • 0.3.7                                ...           4 years ago
  • 0.3.6                                ...           4 years ago
  • 0.4.3                                ...           4 years ago
  • 0.4.2                                ...           4 years ago
  • 0.4.1                                ...           4 years ago
  • 0.4.0                                ...           4 years ago
  • 0.3.5                                ...           4 years ago
  • 0.3.4                                ...           4 years ago
  • 0.3.3                                ...           4 years ago
  • 0.3.2                                ...           4 years ago
  • 0.2.5                                ...           4 years ago
  • 0.3.1                                ...           4 years ago
  • 0.3.0                                ...           4 years ago
  • 0.2.4                                ...           4 years ago
  • 0.2.3                                ...           4 years ago
  • 0.2.2                                ...           4 years ago
  • 0.2.1                                ...           4 years ago
  • 0.2.0                                ...           4 years ago
  • 0.1.5                                ...           4 years ago
  • 0.1.4                                ...           4 years ago
  • 0.1.3                                ...           4 years ago
  • 0.1.2                                ...           4 years ago
  • 0.1.1                                ...           4 years ago
  • 0.1.0                                ...           4 years ago
  • 0.0.2                                ...           4 years ago
  • 0.0.1                                ...           4 years ago
Maintainers (2)
Downloads
Today 15
This Week 18
This Month 51
Last Day 3
Last Week 33
Last Month 342
Dependencies (75)
Dev Dependencies (15)
Dependents (1)

Copyright 2014 - 2016 © taobao.org |