-
Notifications
You must be signed in to change notification settings - Fork 5
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #106 from nestdotland/dev
0.3.2
- Loading branch information
Showing
8 changed files
with
45 additions
and
45 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,8 @@ | ||
import { desc, run, sh, task } from "https://x.nest.land/[email protected]/mod.ts"; | ||
import { version } from "./src/version.ts"; | ||
|
||
const encoder = new TextEncoder(); | ||
|
||
desc("Run tests."); | ||
task("test", [], async function () { | ||
await sh( | ||
|
@@ -57,9 +59,12 @@ task("dry-ship", ["link", "dry-publish"]); | |
desc("Ship eggs to nest.land."); | ||
task("ship", ["link", "publish"]); | ||
|
||
task("get-version", [], function () { | ||
task("get-version", [], async function () { | ||
console.log(`Eggs version: ${version}`); | ||
console.log(`::set-env name=EGGS_VERSION::${version}`); | ||
const env = encoder.encode(`\nEGGS_VERSION=${version}\n`); | ||
const GITHUB_ENV = Deno.env.get("GITHUB_ENV"); | ||
if (!GITHUB_ENV) throw new Error("Unable to get Github env"); | ||
await Deno.writeFile(GITHUB_ENV, env, { append: true }); | ||
}); | ||
|
||
task("setup-github-actions", [], async function () { | ||
|
@@ -68,21 +73,6 @@ task("setup-github-actions", [], async function () { | |
}); | ||
await process.status(); | ||
process.close(); | ||
|
||
switch (Deno.build.os) { | ||
case "windows": | ||
console.log("::add-path::C:\\Users\\runneradmin\\.deno\\bin"); | ||
break; | ||
case "linux": | ||
console.log("::add-path::/home/runner/.deno/bin"); | ||
console.log("::set-env name=SHELL::/bin/bash"); | ||
break; | ||
case "darwin": | ||
console.log("::add-path::/Users/runner/.deno/bin"); | ||
break; | ||
default: | ||
break; | ||
} | ||
}); | ||
|
||
desc("Development tools. Should ideally be run before each commit."); | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -9,37 +9,37 @@ export { | |
join, | ||
relative, | ||
resolve, | ||
} from "https://x.nest.land/std@0.74.0/path/mod.ts"; | ||
} from "https://x.nest.land/std@0.75.0/path/mod.ts"; | ||
|
||
export { | ||
exists, | ||
existsSync, | ||
expandGlob, | ||
expandGlobSync, | ||
walkSync, | ||
} from "https://x.nest.land/std@0.74.0/fs/mod.ts"; | ||
} from "https://x.nest.land/std@0.75.0/fs/mod.ts"; | ||
|
||
export * as log from "https://x.nest.land/std@0.74.0/log/mod.ts"; | ||
export * as log from "https://x.nest.land/std@0.75.0/log/mod.ts"; | ||
|
||
export { LogRecord } from "https://x.nest.land/std@0.74.0/log/logger.ts"; | ||
export { LogRecord } from "https://x.nest.land/std@0.75.0/log/logger.ts"; | ||
|
||
export type { LevelName } from "https://x.nest.land/std@0.74.0/log/levels.ts"; | ||
export { LogLevels } from "https://x.nest.land/std@0.74.0/log/levels.ts"; | ||
export type { LevelName } from "https://x.nest.land/std@0.75.0/log/levels.ts"; | ||
export { LogLevels } from "https://x.nest.land/std@0.75.0/log/levels.ts"; | ||
|
||
export { BaseHandler } from "https://x.nest.land/std@0.74.0/log/handlers.ts"; | ||
export { BaseHandler } from "https://x.nest.land/std@0.75.0/log/handlers.ts"; | ||
|
||
export * from "https://x.nest.land/std@0.74.0/fmt/colors.ts"; | ||
export * from "https://x.nest.land/std@0.75.0/fmt/colors.ts"; | ||
|
||
export { | ||
assert, | ||
assertEquals, | ||
assertMatch, | ||
} from "https://x.nest.land/std@0.74.0/testing/asserts.ts"; | ||
} from "https://x.nest.land/std@0.75.0/testing/asserts.ts"; | ||
|
||
export { | ||
parse as parseYaml, | ||
stringify as stringifyYaml, | ||
} from "https://x.nest.land/std@0.74.0/encoding/yaml.ts"; | ||
} from "https://x.nest.land/std@0.75.0/encoding/yaml.ts"; | ||
|
||
/**************** cliffy ****************/ | ||
export { | ||
|
@@ -68,13 +68,15 @@ export * as base64 from "https://denopkg.com/chiefbiiko/[email protected]/mod.ts"; | |
|
||
/**************** hatcher ****************/ | ||
export { | ||
getLatestVersion, | ||
latestVersion, | ||
NestLand, | ||
parseURL, | ||
UpdateNotifier, | ||
} from "https://x.nest.land/hatcher@0.9.2/mod.ts"; | ||
} from "https://x.nest.land/hatcher@0.10.1/mod.ts"; | ||
|
||
export { install as installHatcher } from "https://x.nest.land/[email protected]/lib/cli.ts"; | ||
export { isVersionUnstable } from "https://x.nest.land/[email protected]/lib/utilities/utils.ts"; | ||
|
||
export { install as installHatcher } from "https://x.nest.land/[email protected]/lib/cli.ts"; | ||
|
||
/**************** analyzer ****************/ | ||
export type { DependencyTree } from "https://x.nest.land/[email protected]/deno/tree.ts"; | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1 @@ | ||
export const version = "0.3.1"; | ||
export const version = "0.3.2"; |