trigger.dev 0.0.0-yalt-timeout-20240117100229
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/LICENSE +21 -0
- package/README.md +51 -0
- package/package.json +90 -0
package/LICENSE
ADDED
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
MIT License
|
|
2
|
+
|
|
3
|
+
Copyright (c) 2023 Trigger.dev
|
|
4
|
+
|
|
5
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
6
|
+
of this software and associated documentation files (the "Software"), to deal
|
|
7
|
+
in the Software without restriction, including without limitation the rights
|
|
8
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
9
|
+
copies of the Software, and to permit persons to whom the Software is
|
|
10
|
+
furnished to do so, subject to the following conditions:
|
|
11
|
+
|
|
12
|
+
The above copyright notice and this permission notice shall be included in all
|
|
13
|
+
copies or substantial portions of the Software.
|
|
14
|
+
|
|
15
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
16
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
17
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
18
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
19
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
20
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
21
|
+
SOFTWARE.
|
package/README.md
ADDED
|
@@ -0,0 +1,51 @@
|
|
|
1
|
+
# Trigger.dev CLI
|
|
2
|
+
|
|
3
|
+
A CLI that allows you to create, run locally and deploy Trigger.dev background tasks.
|
|
4
|
+
|
|
5
|
+
Note: this only works with Trigger.dev v3 projects and later. For older projects use the [@trigger.dev/cli](https://www.npmjs.com/package/@trigger.dev/cli) package.
|
|
6
|
+
|
|
7
|
+
Trigger.dev is an open source platform that makes it easy to create event-driven background tasks directly in your existing project.
|
|
8
|
+
|
|
9
|
+
## Usage
|
|
10
|
+
|
|
11
|
+
### Login
|
|
12
|
+
|
|
13
|
+
Logs that machine into Trigger.dev by creating a new Personal Access Token and storing it on the local machine. Once you're logged in you can perform the other actions below.
|
|
14
|
+
|
|
15
|
+
```sh
|
|
16
|
+
npx trigger.dev@latest login
|
|
17
|
+
```
|
|
18
|
+
|
|
19
|
+
| Option | Short option | Description |
|
|
20
|
+
| ----------- | ------------ | -------------------------------------------------------------------- |
|
|
21
|
+
| `--api-url` | `-a` | Set the API URL for Trigger.dev, defaults to https://api.trigger.dev |
|
|
22
|
+
|
|
23
|
+
### Update
|
|
24
|
+
|
|
25
|
+
Will update all of your @trigger.dev packages in your package.json to the latest version.
|
|
26
|
+
|
|
27
|
+
```sh
|
|
28
|
+
npx trigger.dev@latest update
|
|
29
|
+
```
|
|
30
|
+
|
|
31
|
+
You can pass the path to the folder that your package.json file lives in:
|
|
32
|
+
|
|
33
|
+
```sh
|
|
34
|
+
npx trigger.dev@latest update ./myapp
|
|
35
|
+
```
|
|
36
|
+
|
|
37
|
+
| Option | Short option | Description |
|
|
38
|
+
| ------ | ------------ | ---------------------------------------------------------- |
|
|
39
|
+
| `--to` | `-t` | The version to update to (ex: 2.1.4), defaults to "latest" |
|
|
40
|
+
|
|
41
|
+
### Who Am I?
|
|
42
|
+
|
|
43
|
+
Shows the current user that is logged in.
|
|
44
|
+
|
|
45
|
+
```sh
|
|
46
|
+
npx trigger.dev@latest whoami
|
|
47
|
+
```
|
|
48
|
+
|
|
49
|
+
| Option | Short option | Description |
|
|
50
|
+
| ----------- | ------------ | -------------------------------------------------------------------- |
|
|
51
|
+
| `--api-url` | `-a` | Set the API URL for Trigger.dev, defaults to https://api.trigger.dev |
|
package/package.json
ADDED
|
@@ -0,0 +1,90 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "trigger.dev",
|
|
3
|
+
"version": "0.0.0-yalt-timeout-20240117100229",
|
|
4
|
+
"description": "A Command-Line Interface for Trigger.dev (v3) projects",
|
|
5
|
+
"main": "./dist/index.js",
|
|
6
|
+
"types": "./dist/index.d.ts",
|
|
7
|
+
"license": "MIT",
|
|
8
|
+
"repository": {
|
|
9
|
+
"type": "git",
|
|
10
|
+
"url": "https://github.com/triggerdotdev/trigger.dev.git",
|
|
11
|
+
"directory": "packages/cli-v3"
|
|
12
|
+
},
|
|
13
|
+
"publishConfig": {
|
|
14
|
+
"access": "public"
|
|
15
|
+
},
|
|
16
|
+
"keywords": [
|
|
17
|
+
"typescript",
|
|
18
|
+
"trigger.dev",
|
|
19
|
+
"workflows",
|
|
20
|
+
"orchestration",
|
|
21
|
+
"events",
|
|
22
|
+
"webhooks",
|
|
23
|
+
"integrations",
|
|
24
|
+
"apis",
|
|
25
|
+
"jobs",
|
|
26
|
+
"background jobs",
|
|
27
|
+
"nextjs"
|
|
28
|
+
],
|
|
29
|
+
"files": [
|
|
30
|
+
"dist"
|
|
31
|
+
],
|
|
32
|
+
"type": "module",
|
|
33
|
+
"exports": "./dist/index.js",
|
|
34
|
+
"bin": {
|
|
35
|
+
"trigger-v3-cli": "./dist/index.js"
|
|
36
|
+
},
|
|
37
|
+
"devDependencies": {
|
|
38
|
+
"@types/gradient-string": "^1.1.2",
|
|
39
|
+
"@types/mock-fs": "^4.13.1",
|
|
40
|
+
"@types/node": "16",
|
|
41
|
+
"@types/node-fetch": "^2.6.2",
|
|
42
|
+
"@types/ws": "^8.5.3",
|
|
43
|
+
"open": "^10.0.3",
|
|
44
|
+
"p-retry": "^6.1.0",
|
|
45
|
+
"rimraf": "^3.0.2",
|
|
46
|
+
"tsup": "^6.5.0",
|
|
47
|
+
"type-fest": "^3.6.0",
|
|
48
|
+
"typescript": "^4.9.5",
|
|
49
|
+
"vitest": "^0.34.4",
|
|
50
|
+
"xdg-app-paths": "^8.3.0",
|
|
51
|
+
"@trigger.dev/core": "0.0.0-yalt-timeout-20240117100229",
|
|
52
|
+
"@trigger.dev/tsconfig": "0.0.0"
|
|
53
|
+
},
|
|
54
|
+
"dependencies": {
|
|
55
|
+
"@clack/prompts": "^0.7.0",
|
|
56
|
+
"@types/degit": "^2.8.3",
|
|
57
|
+
"chalk": "^5.2.0",
|
|
58
|
+
"chokidar": "^3.5.3",
|
|
59
|
+
"cli-table3": "^0.6.3",
|
|
60
|
+
"commander": "^9.4.1",
|
|
61
|
+
"degit": "^2.8.4",
|
|
62
|
+
"dotenv": "^16.3.1",
|
|
63
|
+
"execa": "^7.0.0",
|
|
64
|
+
"gradient-string": "^2.0.2",
|
|
65
|
+
"liquidjs": "^10.9.2",
|
|
66
|
+
"mock-fs": "^5.2.0",
|
|
67
|
+
"nanoid": "^4.0.2",
|
|
68
|
+
"node-fetch": "^3.3.0",
|
|
69
|
+
"npm-check-updates": "^16.12.2",
|
|
70
|
+
"posthog-node": "^3.1.1",
|
|
71
|
+
"proxy-agent": "^6.3.0",
|
|
72
|
+
"simple-git": "^3.19.0",
|
|
73
|
+
"update-check": "^1.5.4",
|
|
74
|
+
"url": "^0.11.1",
|
|
75
|
+
"ws": "^8.11.0",
|
|
76
|
+
"zod": "3.22.3",
|
|
77
|
+
"@trigger.dev/core": "0.0.0-yalt-timeout-20240117100229"
|
|
78
|
+
},
|
|
79
|
+
"engines": {
|
|
80
|
+
"node": ">=18.0.0"
|
|
81
|
+
},
|
|
82
|
+
"scripts": {
|
|
83
|
+
"typecheck": "tsc",
|
|
84
|
+
"build": "tsup",
|
|
85
|
+
"dev": "tsup --watch",
|
|
86
|
+
"clean": "rimraf dist",
|
|
87
|
+
"start": "node dist/index.js",
|
|
88
|
+
"test": "vitest"
|
|
89
|
+
}
|
|
90
|
+
}
|