mirror of https://github.com/status-im/metro.git
Added metro-core && fixed code
Summary:
Terminal moved to metro-core according to [commit](a96e99fae5
) "Move Terminal to metro-core"
Closes https://github.com/facebook/metro/pull/115
Differential Revision: D6772184
Pulled By: jeanlauliac
fbshipit-source-id: cbf03940b64af9415d335bd1a6bb80e1ae4e90db
This commit is contained in:
parent
59515d058c
commit
d6e13bece2
|
@ -6,13 +6,13 @@ title: Getting Started
|
|||
Install Metro using `npm`:
|
||||
|
||||
```
|
||||
npm install --save-dev metro
|
||||
npm install --save-dev metro metro-core
|
||||
```
|
||||
|
||||
Or via [`yarn`](https://yarnpkg.com/en/package/jest):
|
||||
|
||||
```
|
||||
yarn add --dev metro
|
||||
yarn add --dev metro metro-core
|
||||
```
|
||||
|
||||
## Running `metro`
|
||||
|
@ -36,7 +36,7 @@ Given a set of options (same ones as the `build` method), a `metro-server` will
|
|||
const http = require('http');
|
||||
const metroBundler = require('metro');
|
||||
const TerminalReporter = require('metro/src/lib/TerminalReporter');
|
||||
const Terminal = require('metro/src/lib/Terminal');
|
||||
const Terminal = require('metro-core/src/Terminal');
|
||||
|
||||
const metroBundlerServer = metroBundler.createServer({
|
||||
assetRegistryPath: __dirname,
|
||||
|
|
Loading…
Reference in New Issue