• Stars
    star
    721
  • Rank 62,814 (Top 2 %)
  • Language
    JavaScript
  • Created over 8 years ago
  • Updated almost 8 years ago

Reviews

There are no reviews yet. Be the first to send feedback to the community and the maintainers!

Repository Details

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

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.

React Native Versions Supported

  • 0.28.0-rc0
  • 0.28.0
  • 0.29.0
  • 0.30.0-rc0
  • 0.37.0 *

* means this version got limited support.

Install

NPM

# install globally
npm install -g moles-packer

# command created
moles-packer -v
moles-packer-common -v

Run In CLI

# create an
react-native init rn28 --version 0.28.0

# build the project by Moles Packer
moles-packer \
	--input ./rn28 \
	--entry index.ios.js \
	--output ./build \
	--bundle \
    --verbose

Node.js API

var mp = require('moles-packer');
var options = {
    'input'   : './rn28',
    'entry'   : 'index.ios.js',
    'output'  : './build',
    '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

More Repositories

1

C-OCR

C-OCR是携程自研的OCR项目,主要包括身份证、护照、火车票、签证等旅游相关证件、材料的识别。 项目包含4个部分,拒识、检测、识别、后处理。
Java
2,373
star
2

x-pipe

X-Pipe是由携程框架部门研发的Redis多数据中心复制管理系统。基于Redis的Master-Slave复制协议,实现低延时、高可用的Redis多数据中心、跨公网数据复制,并且提供一键机房切换,复制监控、异常报警等功能。开源版本和携程内部生产环境版本一致。
Java
2,001
star
3

CRN

CRN是Ctrip React Native简称,由携程无线平台研发团队基于React Native框架优化,定制成稳定性和性能更佳、也更适合业务场景的跨平台开发框架。
JavaScript
1,457
star
4

dal

Ctrip Database Access Layer
Java
1,246
star
5

flybirds

基于自然语言的,跨端跨框架 BDD UI 自动化测试方案,BDD testing, Python style, Present by Trip Flight
Python
844
star
6

wean

🍀 Super fast miniapp compiler.
JavaScript
390
star
7

tars

携程下一代发布系统
JavaScript
365
star
8

vi

帮助了解和控制应用
Java
269
star
9

SQLlin

A DSL ORM library for Kotlin Multiplatform.
C
218
star
10

tripdocs

TripDocsSDK是基于携程内部在线文档编辑器内核,提炼的一款通用的,现代的、稳定的、支持协同的、可用于生产环境的在线文档编辑器
TypeScript
159
star
11

dataworks-zeus

Ctrip Hadoop Job Scheduling System derived from https://github.com/alibaba/zeus
Java
153
star
12

nephele

Image Service
Go
145
star
13

mmkv-kotlin

A Kotlin Multiplatform porting for MMKV.
Kotlin
130
star
14

drc

Java
127
star
15

hermes

Message Queue Solution at Ctrip.com
Java
85
star
16

cat.net

.Net Client of CAT
C#
69
star
17

zeus

Soft Load Balancer at ctrip.com
JavaScript
55
star
18

kbear

Enterprise Kafka Solution
Java
51
star
19

artemis

artemis
Java
41
star
20

caravan

Caravan
Java
34
star
21

cat.js

Javascript client of CAT
JavaScript
29
star
22

ghost

A set of go tools with simple construction and powerful features.
Go
18
star
23

xredis-crdt

C
11
star
24

caravan.net

caravan.net
C#
9
star
25

crdt-module

C
8
star
26

chystrix.net

chystrix.net
C#
7
star
27

homer

Go
6
star
28

TripLink

TripLink
Java
5
star
29

artemis.net

artemis.net
C#
4
star
30

hermes.js

hermes client for javascript
4
star
31

kvrocks

kvrocks
2
star
32

venus

Dependency Injection Framework for .NET
1
star
33

ares-ceph

1
star
34

react-native-cba

react-native-cba
1
star