Skip to content

Commit

Permalink
+dev
Browse files Browse the repository at this point in the history
  • Loading branch information
mxcl committed Jan 7, 2025
1 parent 4c7b74f commit 517d16d
Showing 1 changed file with 31 additions and 0 deletions.
31 changes: 31 additions & 0 deletions projects/pkgx.sh/dev/package.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
distributable:
url: https://github.com/pkgxdev/dev/archive/refs/tags/v{{version}}.tar.gz
strip-components: 1

display-name: dev

versions:
github: pkgxdev/dev

dependencies:
pkgx.sh: ^1,^2

build:
- mkdir -p {{prefix}}/bin {{prefix}}/share/pkgx/dev
- cp -r ./app.ts src deno.json deno.lock {{prefix}}/share/pkgx/dev
- run:
- cp $PROP {{prefix}}/bin/dev
- chmod +x {{prefix}}/bin/dev
prop: |
#/bin/sh
d="$(cd "$(dirname $0)"/.. && pwd)"
exec "$d/share/pkgx/dev/app.ts" "$@"
provides:
- bin/dev

test:
- which deno && exit 1
- eval "$(dev --shellcode)"
- echo '{}' > deno.json
- dev
- deno --version

0 comments on commit 517d16d

Please sign in to comment.