mirror of https://github.com/status-im/metro.git
Move Terminal to metro-core
Reviewed By: rafeca Differential Revision: D6532920 fbshipit-source-id: d1463aa0759a6b6d5cc46b05157518a4ce3eb9bf
This commit is contained in:
parent
539ddc50f4
commit
a96e99fae5
|
@ -0,0 +1,5 @@
|
|||
# Metro
|
||||
|
||||
🚇 This package contains core files for [Metro](https://facebook.github.io/metro/).
|
||||
|
||||
(TODO)
|
|
@ -0,0 +1,14 @@
|
|||
{
|
||||
"version": "0.23.0",
|
||||
"name": "metro-core",
|
||||
"description": "🚇 Core files for Metro",
|
||||
"main": "src/index.js",
|
||||
"repository": {
|
||||
"type": "git",
|
||||
"url": "git@github.com:facebook/metro.git"
|
||||
},
|
||||
"scripts": {
|
||||
"prepare-release": "test -d build && rm -rf src.real && mv src src.real && mv build src",
|
||||
"cleanup-release": "test ! -e build && mv src build && mv src.real src"
|
||||
}
|
||||
}
|
|
@ -0,0 +1,17 @@
|
|||
/**
|
||||
* 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.
|
||||
*
|
||||
* @flow
|
||||
* @format
|
||||
*/
|
||||
|
||||
'use strict';
|
||||
|
||||
const Terminal = require('./Terminal');
|
||||
|
||||
module.exports = Terminal;
|
|
@ -0,0 +1,17 @@
|
|||
/**
|
||||
* 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.
|
||||
*
|
||||
* @flow
|
||||
* @format
|
||||
*/
|
||||
|
||||
'use strict';
|
||||
|
||||
const Terminal = require('./Terminal');
|
||||
|
||||
module.exports = {Terminal};
|
|
@ -17,7 +17,6 @@ const Http = require('http');
|
|||
const Https = require('https');
|
||||
const MetroBundler = require('./shared/output/bundle');
|
||||
const MetroServer = require('./Server');
|
||||
const Terminal = require('./lib/Terminal');
|
||||
const TerminalReporter = require('./lib/TerminalReporter');
|
||||
const TransformCaching = require('./lib/TransformCaching');
|
||||
|
||||
|
@ -25,6 +24,7 @@ const defaults = require('./defaults');
|
|||
|
||||
const {realpath} = require('fs');
|
||||
const {readFile} = require('fs-extra');
|
||||
const {Terminal} = require('metro-core');
|
||||
|
||||
import type {ConfigT} from './Config';
|
||||
import type {RequestOptions, OutputOptions} from './shared/types.flow.js';
|
||||
|
|
|
@ -23,8 +23,8 @@ const {
|
|||
} = require('../node-haste/DependencyGraph/ResolutionRequest');
|
||||
|
||||
import type {BundleOptions} from '../shared/types.flow';
|
||||
import type Terminal from './Terminal';
|
||||
import type {ReportableEvent, GlobalCacheDisabledReason} from './reporting';
|
||||
import type {Terminal} from 'metro-core';
|
||||
|
||||
const DEP_GRAPH_MESSAGE = 'Loading dependency graph';
|
||||
const GLOBAL_CACHE_DISABLED_MESSAGE_FORMAT =
|
||||
|
|
|
@ -15,8 +15,9 @@
|
|||
const chalk = require('chalk');
|
||||
const util = require('util');
|
||||
|
||||
const {Terminal} = require('metro-core');
|
||||
|
||||
import type {BundleOptions} from '../shared/types.flow';
|
||||
import type Terminal from './Terminal';
|
||||
|
||||
export type GlobalCacheDisabledReason = 'too_many_errors' | 'too_many_misses';
|
||||
|
||||
|
|
|
@ -2355,9 +2355,9 @@ flat-cache@^1.2.1:
|
|||
graceful-fs "^4.1.2"
|
||||
write "^0.2.1"
|
||||
|
||||
flow-bin@0.59.0:
|
||||
version "0.59.0"
|
||||
resolved "https://registry.yarnpkg.com/flow-bin/-/flow-bin-0.59.0.tgz#8c151ee7f09f1deed9bf0b9d1f2e8ab9d470f1bb"
|
||||
flow-bin@^0.60.1:
|
||||
version "0.60.1"
|
||||
resolved "https://registry.yarnpkg.com/flow-bin/-/flow-bin-0.60.1.tgz#0f4fa7b49be2a916f18cd946fc4a51e32ffe4b48"
|
||||
|
||||
for-in@^1.0.1:
|
||||
version "1.0.2"
|
||||
|
|
Loading…
Reference in New Issue