Skip to content
This repository was archived by the owner on Sep 21, 2022. It is now read-only.
Open
Show file tree
Hide file tree
Changes from 4 commits
Commits
Show all changes
22 commits
Select commit Hold shift + click to select a range
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions .eslintignore
Original file line number Diff line number Diff line change
@@ -1 +1,2 @@
/lib/browser/client-scripts/calibrate.min.js
/build
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
node_modules
build
*.log
/lib/browser/client-scripts/calibrate.min.js
27 changes: 0 additions & 27 deletions index.js

This file was deleted.

26 changes: 26 additions & 0 deletions index.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
export { default as BaseStats } from "./lib/base-stats";
export { default as SetsBuilder } from "./lib/sets-builder";

import options from "./lib/config/options";
export const config = { options };
Comment on lines +4 to +5

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Такая махинация нужна, чтобы сохранить API, но понял, что можно сделать лучше так:

  • добавить файл ./lib/config/index.ts с содержимым export * as options from "./options";
  • здесь оставить лишь export * as config from "./lib/config";


export { default as Calibrator } from "./lib/calibrator";
export * as BrowserPool from "./lib/browser-pool";
export { default as BrowserAgent } from "./lib/browser-agent";
export { default as Image } from "./lib/image";
export * as temp from "./lib/temp";
export * as errors from "./lib/errors";
export * as events from "./lib/events";
export * as promiseUtils from "./lib/promise-utils";
export * as clientBridge from "./lib/client-bridge";

import * as coverageLevel from "./lib/coverage/coverage-level";
export const coverage = { coverageLevel };

import Camera from "./lib/browser/camera";
export const browser = { Camera };
export { Camera };

export { default as ScreenShooter } from "./lib/screen-shooter";
export { default as Viewport } from "./lib/screen-shooter/viewport";
export { default as CoordValidator } from "./lib/screen-shooter/viewport/coord-validator";
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
Loading