npm install babel-loader imports-loader webpack --save
- Create
webpack.config.js
- Move
index.ios.js
tosrc/index.ios.jsx
webpack --watch
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import startsWith from 'lodash/string/startsWith'; | |
import React from 'react'; | |
import Context from 'react-famous/core/Context'; | |
import Surface from 'react-famous/core/Surface'; | |
import Scrollview from 'react-famous/views/Scrollview'; | |
const SURFACE_REF_PREFIX = 'surface_'; | |
class Component extends React.Component { | |
componentDidMount() { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var path = require('path'); | |
var async = require('async'); | |
var mathjs = require('mathjs'); | |
var ReactPackager = require('react-native/packager/react-packager'); | |
var blacklist = require('react-native/packager/blacklist'); | |
var reactNativePackage = require('react-native/package'); | |
var NUM_TESTS = 100; | |
function test() { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/** | |
* Copyright (c) 2015-present, Facebook, Inc. | |
* All rights reserved. | |
* | |
* This source code is licensed under the BSD-style license found in the | |
* LICENSE file in the root directory of this source tree. An additional grant | |
* of patent rights can be found in the PATENTS file in the same directory. | |
*/ | |
'use strict'; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// | |
// Tests if regular expression matches all valid ES6 import syntaxes. | |
// | |
// ES6 Language Specification Reference: | |
// https://people.mozilla.org/~jorendorff/es6-draft.html#sec-imports | |
// | |
const ES6_IMPORT_REGEX = /\bimport\s+(?:.+\s+from\s+)?[\'"]([^"\']+)["\']/g; | |
const VALID_ES6_IMPORT_SYNTAXES = [ |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var path = require('path'); | |
function ReactNativeResolverPlugin(reactNativeRoot) { | |
if (!reactNativeRoot) { | |
reactNativeRoot = path.resolve(__dirname, 'node_modules/react-native'); | |
} | |
this.reactNativeRoot = reactNativeRoot; | |
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Run FPM in docker container. | |
docker run -it --rm dockerfile/fpm | |
# Install dependencies. | |
apt-get install -y libssl-dev | |
# Download & Build Haproxy. | |
cd /tmp | |
wget http://haproxy.1wt.eu/download/1.5/src/devel/haproxy-1.5-dev25.tar.gz | |
tar xvzf haproxy-1.5-dev25.tar.gz |