How to use packages that depend on Node.js core modules in React Native.
See the [node-libs-react-native][node-libs-react-native] library as a convenience for implementing this method.
import 'rxjs'; | |
import { Observable } from 'rxjs'; | |
Observable.prototype.debug = function(_message) { | |
const message = `EpicDebug: ${_message}`; | |
return this.do( | |
function(next) { | |
if (__DEV__) { |
This is a step-by-step tutorial for hosting your website under your domain on IPFS, from zero, on a DigitalOcean Ubuntu 16.04.3 x64 Droplet (i am using the $10 variant with 2GB RAM).
Log in as root.
First, make sure the system is up to date, and install tar
and wget
:
"scripts": { | |
"dev": "node .dev/webpack.dev.server.js", | |
"dev-prod": "node .dev/webpack.dev.server.js --production", | |
"build": "rimraf ./dist && webpack --config .dev/webpack.config.production.js --colors", | |
}, | |
"devDependencies": { | |
"@babel/core": "7.0.0-beta.38", | |
"@babel/plugin-proposal-class-properties": "7.0.0-beta.38", | |
"@babel/plugin-proposal-decorators": "7.0.0-beta.38", | |
"@babel/plugin-transform-classes": "7.0.0-beta.38", |
// ./postinstall.js | |
'use strict'; | |
const fs = require('fs'); | |
const RN_TSD = __dirname + '/node_modules/@types/react-native/index.d.ts'; | |
const raw = fs.readFileSync(RN_TSD); | |
// Fix @types/node conflict | |
// @see https://github.com/DefinitelyTyped/DefinitelyTyped/issues/15960 |
This content moved here: https://exploringjs.com/impatient-js/ch_arrays.html#quickref-arrays
This guide will teach you how to run more than one Rocket Pool node on the same computer using Docker. The nodes will share an existing EL-CL client combination (unless you're using it to run a Testnet node on the same computer), so this solution is very lightweight and allows running many nodes at once. But before we start, let me tell you when: