Skip to content

Commit

Permalink
Merge pull request #127 from nestdotland/dev
Browse files Browse the repository at this point in the history
0.3.8
  • Loading branch information
SteelAlloy authored Jun 13, 2021
2 parents a4f07a5 + c5bd1ab commit 3e79f4f
Show file tree
Hide file tree
Showing 7 changed files with 25 additions and 16 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/lint.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ jobs:
uses: denolib/setup-deno@v2

- name: Setup Drake
run: deno run -A Drakefile.ts setup-github-actions
run: deno run -A --unstable Drakefile.ts setup-github-actions

- name: Check formatting
run: drake check-format
Expand All @@ -36,7 +36,7 @@ jobs:
uses: denolib/setup-deno@v2

- name: Setup Drake
run: deno run -A Drakefile.ts setup-github-actions
run: deno run -A --unstable Drakefile.ts setup-github-actions

- name: Run linter
run: drake lint
2 changes: 1 addition & 1 deletion .github/workflows/ship.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ jobs:
uses: denolib/setup-deno@v2

- name: Setup Drake
run: deno run -A Drakefile.ts setup-github-actions
run: deno run -A --unstable Drakefile.ts setup-github-actions

- name: Get eggs version
run: drake get-version
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ jobs:
uses: denolib/setup-deno@v2

- name: Setup Drake
run: deno run -A Drakefile.ts setup-github-actions
run: deno run -A --unstable Drakefile.ts setup-github-actions

- name: Run tests
run: drake test
Expand Down Expand Up @@ -65,7 +65,7 @@ jobs:
deno-version: nightly

- name: Setup Drake
run: deno run -A Drakefile.ts setup-github-actions
run: deno run -A --unstable Drakefile.ts setup-github-actions

- name: Run tests
run: drake test
Expand Down
11 changes: 10 additions & 1 deletion Drakefile.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
import { desc, run, sh, task } from "https://x.nest.land/[email protected]/mod.ts";
import { version } from "./src/version.ts";
import { join } from "./deps.ts";

const encoder = new TextEncoder();

Expand Down Expand Up @@ -69,10 +70,18 @@ task("get-version", [], async function () {

task("setup-github-actions", [], async function () {
const process = Deno.run({
cmd: ["deno", "install", "-A", "-n", "drake", "Drakefile.ts"],
cmd: ["deno", "install", "-A", "--unstable", "-n", "drake", "Drakefile.ts"],
});
await process.status();
process.close();
// https://github.com/denoland/setup-deno/issues/5
const home = Deno.env.get("HOME") ?? // for linux / mac
Deno.env.get("USERPROFILE") ?? // for windows
"/";
const path = encoder.encode(join(home, ".deno", "bin"));
const GITHUB_PATH = Deno.env.get("GITHUB_PATH");
if (!GITHUB_PATH) throw new Error("Unable to get Github path");
await Deno.writeFile(GITHUB_PATH, path, { append: true });
});

desc("Development tools. Should ideally be run before each commit.");
Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@
**Note: You need to upgrade to Deno v1.6.0 or newer in order to use our CLI.**

```shell script
deno install -Afq --unstable https://x.nest.land/[email protected].6/eggs.ts
deno install -Afq --unstable https://x.nest.land/[email protected].8/eggs.ts
```

For more information, see the [documentation](https://docs.nest.land/).
Expand Down
16 changes: 8 additions & 8 deletions deps.ts
Original file line number Diff line number Diff line change
Expand Up @@ -46,22 +46,22 @@ export {
Command,
CompletionsCommand,
HelpCommand,
} from "https://x.nest.land/cliffy@0.18.2/command/mod.ts";
} from "https://x.nest.land/cliffy@0.19.1/command/mod.ts";

export { string as stringType } from "https://x.nest.land/cliffy@0.18.2/flags/types/string.ts";
export { string as stringType } from "https://x.nest.land/cliffy@0.19.1/flags/types/string.ts";

export {
Checkbox,
Confirm,
Input,
List,
Select,
} from "https://x.nest.land/cliffy@0.18.2/prompt/mod.ts";
} from "https://x.nest.land/cliffy@0.19.1/prompt/mod.ts";

export type { ITypeInfo } from "https://x.nest.land/cliffy@0.18.2/flags/types.ts";
export type { ITypeInfo } from "https://x.nest.land/cliffy@0.19.1/flags/types.ts";

/**************** semver ****************/
export * as semver from "https://deno.land/x/semver@v1.3.0/mod.ts";
export * as semver from "https://deno.land/x/semver@v1.4.0/mod.ts";

/**************** base64 ****************/
export * as base64 from "https://denopkg.com/chiefbiiko/[email protected]/mod.ts";
Expand All @@ -72,11 +72,11 @@ export {
NestLand,
parseURL,
UpdateNotifier,
} from "https://x.nest.land/[email protected].1/mod.ts";
} from "https://x.nest.land/[email protected].2/mod.ts";

export { isVersionUnstable } from "https://x.nest.land/[email protected].1/lib/utilities/utils.ts";
export { isVersionUnstable } from "https://x.nest.land/[email protected].2/lib/utilities/utils.ts";

export { install as installHatcher } from "https://x.nest.land/[email protected].1/lib/cli.ts";
export { install as installHatcher } from "https://x.nest.land/[email protected].2/lib/cli.ts";

/**************** analyzer ****************/
export type { DependencyTree } from "https://x.nest.land/[email protected]/deno/tree.ts";
Expand Down
2 changes: 1 addition & 1 deletion src/version.ts
Original file line number Diff line number Diff line change
@@ -1 +1 @@
export const version = "0.3.7";
export const version = "0.3.8";

0 comments on commit 3e79f4f

Please sign in to comment.