Skip to content

a template for building a alfred workflow in TypeScript.

License

Notifications You must be signed in to change notification settings

Nauxscript-dev/alfred-workflow-ts-template

Repository files navigation

alfred-workflow-ts-template

a Template for building a alfred workflow in TypeScript.

Features

  • 🦾 TypeScript, of course.
  • ⚙️ Unit Testing with Vitest.
  • rollup to build.
  • JXA Types, supported by @jxa/global-type.
  • Eslint.
  • pnpm.

Usage

  • 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 variable secrets.G_TOKEN
  • filled in the workflow info in src/update.sh
  • go and make a awesome workflow!

notes

  • in development, the path of script in script filter need to set with prefix dist/, like osascript -l JavaScript dist/scripts/index.js "$1" 2>&1, that path will be replaced with scripts/index.js when buiding it, so it will become to osascript -l JavaScript scripts/index.js "$1" 2>&1 evnetually.

Preview

License

MIT License © 2022 Nauxscript

About

a template for building a alfred workflow in TypeScript.

Topics

Resources

License

Stars

Watchers

Forks

Packages

No packages published