a Template for building a alfred workflow in TypeScript.
- 🦾 TypeScript, of course.
- ⚙️ Unit Testing with Vitest.
- rollup to build.
- JXA Types, supported by @jxa/global-type.
- Eslint.
- pnpm.
- Add a new blank workflow
- Use this template to create a new repo in your github
- Open the blank workflow path in terminal then run
git init
git remote origin add [your new repo path]
git pull origin main
- update your workflow infomation in the
package.json
- change the
artifacts
value in.github/workflows/release.yml
and setup the environment variablesecrets.G_TOKEN
- filled in the workflow info in
src/update.sh
- go and make a awesome workflow!
- in development, the path of script in
script filter
need to set with prefixdist/
, likeosascript -l JavaScript dist/scripts/index.js "$1" 2>&1
, that path will be replaced withscripts/index.js
when buiding it, so it will become toosascript -l JavaScript scripts/index.js "$1" 2>&1
evnetually.
MIT License © 2022 Nauxscript