~sircmpwn/sr.ht-dev

add parcel example v1 NEEDS REVISION

Alex Sirota: 1
 add parcel example

 1 files changed, 26 insertions(+), 0 deletions(-)
Export patchset (mbox)
How do I use this?

Copy & paste the following snippet into your terminal to import this patchset into git:

curl -s https://lists.sr.ht/~sircmpwn/sr.ht-dev/patches/49374/mbox | git am -3
Learn more about email & git

[PATCH] add parcel example Export this patch

---
 parcel.yml | 26 ++++++++++++++++++++++++++
 1 file changed, 26 insertions(+)
 create mode 100644 parcel.yml

diff --git a/parcel.yml b/parcel.yml
new file mode 100644
index 0000000..5481bd9
--- /dev/null
+++ b/parcel.yml
@@ -0,0 +1,26 @@
# which container image to use for the build
image: alpine/latest
# packages to install on the container - these are all added with `apk add`
packages: 
- hut
- nodejs
- yarn
# builds.sr.ht automatically provisions an oauth token for us. these are the scopes it has.
oauth: pages.sr.ht/PAGES:RW
# env vars
environment:
  site: example.srht.site
# repos to clone
sources:
 - git@git.sr.ht:~alexjs/alex.sirota.org
# build steps
tasks:
- install: |
    cd $site
    yarn
- package: |
    cd $site 
    yarn build
    tar -C dist/ -cvz . > ../site.tar.gz
- upload:
    hut pages publish -d $site site.tar.gz
-- 
2.43.0
Oops, this belongs in ~sircmpwn/pages.sr.ht-examples. Should have added
that in my message.