Skip to content

Commit

Permalink
chores: prepare for 0.2.1
Browse files Browse the repository at this point in the history
  • Loading branch information
littledivy committed Oct 24, 2020
1 parent 5f0623b commit a6e5944
Show file tree
Hide file tree
Showing 9 changed files with 28 additions and 29 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -5,3 +5,4 @@ examples/.deno_plugins
examples/.autopilot_plugins
screenshot.png
myscripts/
*.log
12 changes: 6 additions & 6 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -73,25 +73,25 @@ deno run --unstable -A file.ts
**NOTE**: Prebuilt binaries are automatically downloaded the first time you import Autopilot in your project and are cached.

```typescript
import AutoPilot from 'https://deno.land/x/autopilot/mod.ts';
import AutoPilot from 'https://deno.land/x/autopilot@0.2.1/mod.ts';

// create a new AutoPilot instance.
var pilot = new AutoPilot();

// type a string
pilot.type("Yay! This works");
await pilot.type("Yay! This works");

// alert something
pilot.alert("This is a alert");
await pilot.alert("This is a alert");

// get screen size
pilot.screenSize();
await pilot.screenSize();

// move mouse
pilot.moveMouse(200, 400);
await pilot.moveMouse(200, 400);

// take a full-screen screenshot
pilot.screenshot("screenshot.png");
await pilot.screenshot("screenshot.png");
```

### Env variables
Expand Down
27 changes: 12 additions & 15 deletions autopilot_deno/autopilot.ts
Original file line number Diff line number Diff line change
@@ -1,38 +1,35 @@
// Copyright 2020-present Divy Srivastava and friends. All rights reserved. MIT license.

import {
runType,
runAlert,
runScreenSize,
runMoveMouse,
runScreenShot,
runMouseClick,
runGetMonitors,
runGetWindow,
runKeyTap,
runMouseScroll,
runMouseClick,
runMousePosition,
runMouseScroll,
runMoveMouse,
runNotify,
runPixelColor,
runToggleKey,
runPointVisible,
runScreenScale,
runGetWindow,
runScreenShot,
runScreenSize,
runToggleKey,
runTransformByIndex,
runGetMonitors,
runNotify,
runType,
} from "../autopilot_plugin/index.ts";

// Import types
import {
AlertOptions,
ClickOptions,
NotificationParams,
ScrollOptions,
ToggleKeys,
NotificationParams,
} from "./types.ts";

import {
isAscii,
throwAsciiError,
} from "./utils/isAscii.ts";
import { isAscii, throwAsciiError } from "./utils/isAscii.ts";

import { logger } from "../deps.ts";

Expand Down
2 changes: 1 addition & 1 deletion autopilot_plugin/index.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
// Copyright 2020-present Divy Srivastava and friends. All rights reserved. MIT license.

import { prepare, logger } from "../deps.ts";
import { logger, prepare } from "../deps.ts";
import parseMonitorsMac from "../autopilot_deno/utils/SP_displays_data_type_parser.ts";
import parseMonitorsWin from "../autopilot_deno/utils/wmic_data_parser.ts";
import { getMonitors as getMonitorsFallback } from "../autopilot_deno/monitors.ts";
Expand Down
4 changes: 2 additions & 2 deletions benchmarks/collect.ts
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
// Copyright 2020-present Divy Srivastava and friends. All rights reserved. MIT license.

import {
prettyBenchmarkResult,
bench,
prettyBenchmarkProgress,
prettyBenchmarkResult,
runBenchmarks,
bench,
} from "./deps.ts";

import write from "./write.ts";
Expand Down
4 changes: 2 additions & 2 deletions benchmarks/deps.ts
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
// Benchmark exports
export {
runBenchmarks,
bench,
runBenchmarks,
} from "https://deno.land/std@0.56.0/testing/bench.ts";

export {
prettyBenchmarkResult,
prettyBenchmarkProgress,
prettyBenchmarkResult,
} from "https://deno.land/x/pretty_benching/mod.ts";
2 changes: 1 addition & 1 deletion deps.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
// Copyright 2020-present Divy Srivastava and friends. All rights reserved. MIT license.

import { Houston, ConsoleTransport } from "https://deno.land/x/houston/mod.ts";
import { ConsoleTransport, Houston } from "https://deno.land/x/houston/mod.ts";
export const logger = new Houston([new ConsoleTransport()]);

export { prepare } from "https://deno.land/x/plugin_prepare@v0.8.0/mod.ts";
3 changes: 2 additions & 1 deletion egg.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,8 @@ files:
- ./LICENSE
- ./mod.ts
- ./deps.ts
- ./types.ts
- ./plugin_config.ts
- ./examples/**/*
- ./version.ts
- ./autopilot_plugin/**/*
- ./autopilot_deno/**/*
Expand Down
2 changes: 1 addition & 1 deletion examples/notify.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,4 +3,4 @@ import AutoPilot from "../mod.ts";

const pilot = new AutoPilot();

await pilot.notify("Hello", "World!");
await pilot.notify("Hello", "World!");

0 comments on commit a6e5944

Please sign in to comment.