Skip to content

moles-packer 是由携程框架团队研发的,与携程moles框架配套使用的React Native 打包和拆包工具,同时支持原生的 React Native 项目。

Notifications You must be signed in to change notification settings

museL/moles-packer

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

27 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Moles Packer

Join the chat at https://gitter.im/ctripcorp/moles-packer

Moles Packer is a light-weighted builder for React Native projects. You can create bundle(s), including a common (basic) bundle and one or more business bundles, from a standard React Native proejct. If pre-built common bundle supplied, you can also create business bundle from a stripped project (without ios, android, node_modules etc.).

Moles Packer is one of the key members in the Moles's tool chain. Together with growing React Native, Moles Packer is also under continuous development and improvement, see ChangeLog for more details.

Install

NPM

# install globally
npm install -g moles-packer

# command created
moles-pack -v
moles-pack-common -v

Run In CLI

# create an
react-native init rn26

# build the project by Moles Packer
moles-pack \
	--input ./rn26 \
	--entry index.ios.js \
	--output ./build \
	--bundle

Node.js API

var mp = require('moles-packer');
var options = {
    'input'         : './rn26',
    'entry'         : 'index.ios.js',
    'output'        : './build',
    'bundle'        : true,
    'common-bundle' : true
    };
mp.pack(options, function(err) {
    // !err means build success.
});

User Manual

About Us

Moles is developed and maintained by Framework R&D from ctrip.com.

Any questions, please send mail to [email protected].

Welcome to follow us in WeChat:
CtripMoles

About

moles-packer 是由携程框架团队研发的,与携程moles框架配套使用的React Native 打包和拆包工具,同时支持原生的 React Native 项目。

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • JavaScript 100.0%