-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
9b52fe5
commit df5202c
Showing
7 changed files
with
53 additions
and
9 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,10 @@ | ||
name: ci | ||
|
||
on: [push, pull_request] | ||
on: | ||
push: | ||
branches: [main] | ||
pull_request: | ||
branches: [main] | ||
|
||
jobs: | ||
build: | ||
|
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,10 +1,10 @@ | ||
{ | ||
"tasks": { | ||
"install": "deno install -Af --reload --config ./deno.jsonc -n pyro ./cli.ts" | ||
"install": "deno run -Ar install.ts ." | ||
}, | ||
"imports": { | ||
"preact": "https://esm.sh/preact@10.11.0", | ||
"preact/": "https://esm.sh/preact@10.11.0/", | ||
"preact": "https://esm.sh/preact@10.13.1", | ||
"preact/": "https://esm.sh/preact@10.13.1/", | ||
"preact-render-to-string": "https://esm.sh/*[email protected]", | ||
"std/": "https://deno.land/[email protected]/", | ||
"gfm": "https://deno.land/x/[email protected]/mod.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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,36 @@ | ||
// I'm preemptively sorry about this install script. | ||
// Deno has a bug where you can't --config from a remote | ||
// location which makes it impossible afaik to do this | ||
// another way. If you have a better idea, open a PR! | ||
|
||
let config_file = "./384y89xnd.jsonc"; | ||
const install_from = Deno.args[0] ?? "https://deno.land/x/pyro"; | ||
|
||
if (install_from === ".") { | ||
config_file = "./deno.jsonc"; | ||
} else { | ||
Deno.writeFileSync( | ||
config_file, | ||
new Uint8Array( | ||
await (await fetch(install_from + "/deno.jsonc")).arrayBuffer(), | ||
), | ||
); | ||
} | ||
|
||
const command = new Deno.Command(Deno.execPath(), { | ||
args: [ | ||
"install", | ||
"-Afr", | ||
"--config", | ||
config_file, | ||
"-n", | ||
"pyro", | ||
install_from + "/cli.ts", | ||
], | ||
}); | ||
|
||
command.outputSync(); | ||
|
||
if (install_from !== ".") { | ||
Deno.removeSync(config_file); | ||
} |
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