Note: I'm not involved in Prepack in any way — please correct me if I say anything incorrect below!
What is Prepack?
So for example if you give it this code...
Running nightmare on Amazon Linux
You may have thought of running nightmare on AWS Lambda. But before we can run it on Lambda, we need first to make it run on Amazon Linux.
Provision instance which replicates Lambda environment
According to AWS Documentation on Lambda Execution Environment and available Libraries we would need this AMI image with this alias
amzn-ami-hvm-2016.03.3.x86_64-gp2. Keep in mind that AMI-image-id for this instance would be different in different regions (eg):
What forces layout / reflow
|var ChatAppDispatcher = require('../dispatcher/ChatAppDispatcher');|
|var ChatConstants = require('../constants/ChatConstants');|
|var ChatMessageUtils = require('../utils/ChatMessageUtils');|
|var EventEmitter = require('events').EventEmitter;|
|var ThreadStore = require('../stores/ThreadStore');|
|var merge = require('react/lib/merge');|
|var ActionTypes = ChatConstants.ActionTypes;|
|var CHANGE_EVENT = 'change';|
Installing V8 on a Mac
- Install Xcode (Avaliable on the Mac App Store)
- Install Xcode Command Line Tools (Preferences > Downloads)
- Install depot_tools
git clone https://chromium.googlesource.com/chromium/tools/depot_tools.git
sudo nano ~/.bash_profile
export PATH=/path/to/depot_tools:"$PATH"(it's important that depot_tools comes first here)
The introduction to Reactive Programming you've been missing
This tutorial as a series of videos
If you prefer to watch video tutorials with live-coding, then check out this series I recorded with the same contents as in this article: Egghead.io - Introduction to Reactive Programming.