Skip to content
This repository has been archived by the owner on Jan 18, 2024. It is now read-only.

Commit

Permalink
refactor: add @expo/dev-server (#1845)
Browse files Browse the repository at this point in the history
Co-authored-by: Evan Bacon <baconbrix@gmail.com>
  • Loading branch information
fson and EvanBacon committed Apr 29, 2020
1 parent 4609a36 commit 0cb5979
Show file tree
Hide file tree
Showing 22 changed files with 1,480 additions and 62 deletions.
5 changes: 3 additions & 2 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ jobs:
- uses: actions/cache@v1
id: cache-build
with:
path: '.'
path: "."
key: ${{ github.sha }}
test:
runs-on: ubuntu-latest
Expand All @@ -29,6 +29,7 @@ jobs:
[
babel-preset-cli,
config,
dev-server,
expo-cli,
expo-codemod,
json-file,
Expand All @@ -46,7 +47,7 @@ jobs:
- uses: actions/cache@v1
id: restore-build
with:
path: '.'
path: "."
key: ${{ github.sha }}
- name: Coverage ${{ matrix.package }}
run: cd packages/${{ matrix.package }} && yarn test --coverage
Expand Down
23 changes: 11 additions & 12 deletions packages/babel-preset-cli/ts-declarations/metro-config/index.d.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,16 @@
declare module 'metro-config' {
import { IncomingMessage, ServerResponse } from 'http';
import { JsTransformerConfig, Reporter } from 'metro';
import {
DeltaResult,
Graph,
Module,
SerializerOptions,
JsTransformerConfig,
Reporter,
TransformResult,
Server,
TransformVariants,
} from 'metro';

// TODO: import { CacheStore } from 'metro-cache';
type CacheStore = unknown;
Expand All @@ -9,17 +19,6 @@ declare module 'metro-config' {
// TODO: import { BasicSourceMap, MixedSourceMap } from 'metro-source-map';
type BasicSourceMap = unknown;
type MixedSourceMap = unknown;
// TODO: import { DeltaResult, Graph, Module, SerializerOptions } from 'metro/src/DeltaBundler/types';
type DeltaResult = unknown;
type Graph = unknown;
type Module = unknown;
type SerializerOptions = unknown;
// TODO: import { TransformResult } from 'metro/src/DeltaBundler';
type TransformResult = unknown;
// TODO: import { TransformVariants } from 'metro/src/ModuleGraph/types';
type TransformVariants = unknown;
// TODO: import Server from 'metro/src/Server';
type Server = unknown;

//#region metro/packages/metro-config/src/configTypes.flow.js

Expand Down
Loading

0 comments on commit 0cb5979

Please sign in to comment.