mirror of
https://github.com/NativeScript/NativeScript.git
synced 2025-11-05 13:26:48 +08:00
chore: cleanup reexports
This commit is contained in:
@@ -1,5 +1,5 @@
|
||||
import { ModuleNameResolver as ModuleNameResolverDefinition, ModuleListProvider } from "./";
|
||||
import { screen, device } from "../platform/platform";
|
||||
import { ModuleNameResolver as ModuleNameResolverDefinition } from "./";
|
||||
import { screen, device } from "../platform";
|
||||
import * as appCommonModule from "../application/application-common";
|
||||
import { PlatformContext, findMatch, stripQualifiers } from "./qualifier-matcher";
|
||||
import { registerModulesFromFileSystem } from "./non-bundle-workflow-compat";
|
||||
@@ -7,6 +7,8 @@ import {
|
||||
Trace
|
||||
} from "../trace";
|
||||
|
||||
export type ModuleListProvider = () => string[];
|
||||
|
||||
export class ModuleNameResolver implements ModuleNameResolverDefinition {
|
||||
private _cache = {};
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
import * as fs from "../file-system/file-system";
|
||||
import * as fs from "../file-system";
|
||||
import * as appCommonModule from "../application/application-common";
|
||||
import {
|
||||
Trace
|
||||
|
||||
@@ -1,5 +0,0 @@
|
||||
{
|
||||
"name": "module-name-resolver",
|
||||
"main": "module-name-resolver",
|
||||
"types": "module-name-resolver.d.ts"
|
||||
}
|
||||
@@ -1,9 +1,15 @@
|
||||
import { PlatformContext } from "./";
|
||||
const MIN_WH: string = "minWH";
|
||||
const MIN_W: string = "minW";
|
||||
const MIN_H: string = "minH";
|
||||
const PRIORITY_STEP = 10000;
|
||||
|
||||
export interface PlatformContext {
|
||||
width: number;
|
||||
height: number;
|
||||
os: string;
|
||||
deviceType: string;
|
||||
}
|
||||
|
||||
interface QualifierSpec {
|
||||
isMatch(path: string): boolean;
|
||||
getMatchOccurences(path: string): Array<string>;
|
||||
@@ -1,5 +0,0 @@
|
||||
{
|
||||
"name": "qualifier-matcher",
|
||||
"main": "qualifier-matcher",
|
||||
"types": "qualifier-matcher.d.ts"
|
||||
}
|
||||
Reference in New Issue
Block a user