GithubHelp home page GithubHelp logo

mxy1228 / rn-packager Goto Github PK

View Code? Open in Web Editor NEW

This project forked from react-component/rn-packager

0.0 2.0 0.0 1.65 MB

Standalone ReactNative Packager

License: MIT License

JavaScript 69.31% Java 10.49% Makefile 0.31% HTML 8.29% Batchfile 0.69% Shell 4.75% Python 1.67% Objective-C 4.47%

rn-packager's Introduction

ReactNative Packager


Standalone ReactNative Packager without framework code.

node.js react-native react

Do What?

  1. bundle-split, solution from facebook/react-native#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.10.0",
  "react-native": "0.39.2",
  "react": "~15.4.0-rc.4"
}

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 ~/Dowloads/core.ios.bundle --platform ios --manifest-output core.ios.manifest.json

Bundle app

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

Server

$ rnpackager start

Demo

$ cd tests
$ npm i
$ rnpackager start

visit:

rn-packager's People

Contributors

swainet avatar yiminghe avatar

Watchers

James Cloos avatar MarkXu avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.