GithubHelp home page GithubHelp logo

wangcrystal / moles-packer Goto Github PK

View Code? Open in Web Editor NEW

This project forked from ctripcorp/moles-packer

0.0 2.0 0.0 353 KB

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

JavaScript 100.00%

moles-packer's Introduction

What is it?

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.

Install

# 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

moles-packer's People

Contributors

youngoat avatar everplus avatar ctrip-moles avatar

Watchers

James Cloos avatar  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.