From 82256158ccc3391fa86bbbea5425d333b52141e0 Mon Sep 17 00:00:00 2001 From: Josh Phillips Date: Mon, 6 Nov 2023 14:50:28 -0700 Subject: [PATCH] +snaplet.dev/cli (#3973) * initial commit * fix a couple errors * remove platform restriction; update node versions; better test --------- Co-authored-by: Jacob Heider --- projects/snaplet.dev/cli/package.yml | 30 ++++++++++++++++++++++++++++ 1 file changed, 30 insertions(+) create mode 100644 projects/snaplet.dev/cli/package.yml diff --git a/projects/snaplet.dev/cli/package.yml b/projects/snaplet.dev/cli/package.yml new file mode 100644 index 00000000..77aa13a9 --- /dev/null +++ b/projects/snaplet.dev/cli/package.yml @@ -0,0 +1,30 @@ +distributable: + url: https://registry.npmjs.org/snaplet/-/snaplet-{{version}}.tgz + strip-components: 1 + +versions: + url: https://www.npmjs.com/package/snaplet?activeTab=versions + match: /v\/\d+\.\d+\.\d+/ + strip: + - /^v\// + +dependencies: + nodejs.org: ^10.13.0 || ^12 || ^14 || ^16 || ^18 || ^19 + +build: + dependencies: + npmjs.com: "*" + script: + - chmod +x bin/snaplet.js + - npm install . + --global + --prefix="{{prefix}}" + --install-links + +provides: + - bin/snaplet + +test: + script: + - snaplet -v | grep {{version}} + - snaplet config list