Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/Nauxscript-dev/alfred-workflow-ts-template
a template for building a alfred workflow in TypeScript.
https://github.com/Nauxscript-dev/alfred-workflow-ts-template
alfred alfred-workflow jxa
Last synced: about 2 months ago
JSON representation
a template for building a alfred workflow in TypeScript.
- Host: GitHub
- URL: https://github.com/Nauxscript-dev/alfred-workflow-ts-template
- Owner: Nauxscript-dev
- License: mit
- Created: 2022-12-08T01:19:10.000Z (over 1 year ago)
- Default Branch: main
- Last Pushed: 2023-06-02T10:13:46.000Z (about 1 year ago)
- Last Synced: 2024-02-13T21:46:29.897Z (5 months ago)
- Topics: alfred, alfred-workflow, jxa
- Language: Shell
- Homepage:
- Size: 112 KB
- Stars: 2
- Watchers: 1
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Lists
- awesome-stars - Nauxscript-dev/alfred-workflow-ts-template - a template for building a alfred workflow in TypeScript. (Shell)
README
# alfred-workflow-ts-template
a Template for building a alfred workflow in TypeScript.## Features
- 🦾 TypeScript, of course.
- ⚙️ Unit Testing with [Vitest](https://github.com/vitest-dev/vitest).
- rollup to build.
- JXA Types, supported by [@jxa/global-type](https://github.com/JXA-userland/JXA/tree/master/packages/@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) License © 2022 [Nauxscript](https://github.com/Nauxscript)