diff --git a/projects/pkgx.sh/dev/package.yml b/projects/pkgx.sh/dev/package.yml new file mode 100644 index 0000000000..ec4f176c6b --- /dev/null +++ b/projects/pkgx.sh/dev/package.yml @@ -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