@gadgetinc/ggt 0.1.11 → 0.1.13

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.
@@ -1 +1,135 @@
1
- {"version":"0.1.11","commands":{"help":{"id":"help","summary":"Display help for ggt.","strict":false,"pluginName":"@gadgetinc/ggt","pluginAlias":"@gadgetinc/ggt","pluginType":"core","aliases":[],"flags":{},"args":[{"name":"command","description":"The command to show help for.","required":false}]},"login":{"id":"login","summary":"Log in to your account.","strict":true,"usage":"login","pluginName":"@gadgetinc/ggt","pluginAlias":"@gadgetinc/ggt","pluginType":"core","aliases":[],"examples":["$ ggt login\nWe've opened Gadget's login page using your default browser.\n\nPlease log in and then return to this terminal.\n\nHello, Jane Doe (jane@example.com)"],"flags":{},"args":[]},"logout":{"id":"logout","summary":"Log out of your account.","strict":true,"usage":"logout","pluginName":"@gadgetinc/ggt","pluginAlias":"@gadgetinc/ggt","pluginType":"core","aliases":[],"examples":["$ ggt logout\nGoodbye"],"flags":{},"args":[]},"sync":{"id":"sync","summary":"Sync your Gadget application's source code to and from your local filesystem.","description":"Sync provides the ability to sync your Gadget application's source code to and from your local\nfilesystem. While ggt sync is running, local file changes are immediately reflected within\nGadget, while files that are changed remotely are immediately saved to your local filesystem.\n\nUse cases for this include:\n - Developing locally with your own editor like VSCode (https://code.visualstudio.com/)\n - Storing your source code in a Git repository like GitHub (https://github.com/)\n\nSync includes the concept of a .ignore file. This file may contain a list of files and\ndirectories that won't be received or sent to Gadget when syncing. The format of this file is\nidentical to the one used by Git (https://git-scm.com/docs/gitignore).\n\nThe following files and directories are always ignored:\n - .gadget\n - .git\n - node_modules\n\nNote:\n - If you have separate development and production environments, ggt sync will only sync with your development environment\n - Gadget applications only support installing dependencies with Yarn 1 (https://classic.yarnpkg.com/lang/en/)\n - Since file changes are immediately reflected in Gadget, avoid the following while ggt sync is running:\n - Deleting all your files\n - Moving all your files to a different directory","strict":true,"usage":"sync [DIRECTORY] [--app <name>]","pluginName":"@gadgetinc/ggt","pluginAlias":"@gadgetinc/ggt","pluginType":"core","aliases":[],"examples":["$ ggt sync --app my-app ~/gadget/my-app\n\nApp my-app\nEditor https://my-app.gadget.app/edit\nPlayground https://my-app.gadget.app/api/graphql/playground\nDocs https://docs.gadget.dev/api/my-app\n\nEndpoints\n - https://my-app.gadget.app\n - https://my-app--development.gadget.app\n\nWatching for file changes... Press Ctrl+C to stop\n\nReceived 12:00:00 PM\n← routes/GET.js (changed)\n← user/signUp/signIn.js (changed)\n2 files in total. 2 changed, 0 deleted.\n\nSent 12:00:03 PM\n→ routes/GET.ts (changed)\n1 file in total. 1 changed, 0 deleted.\n\n^C Stopping... (press Ctrl+C again to force)\nGoodbye!"],"flags":{"app":{"name":"app","type":"option","char":"a","summary":"The Gadget application to sync files to.","helpValue":"<name>","multiple":false},"force":{"name":"force","type":"boolean","summary":"Whether to sync even if we can't determine the state of your local files relative to your remote ones.","allowNo":false},"file-push-delay":{"name":"file-push-delay","type":"option","summary":"Delay in milliseconds before pushing files to your app.","hidden":true,"helpValue":"ms","helpGroup":"file","multiple":false,"default":100},"file-stability-threshold":{"name":"file-stability-threshold","type":"option","summary":"Time in milliseconds a file's size must remain the same.","hidden":true,"helpValue":"ms","helpGroup":"file","multiple":false,"default":500},"file-poll-interval":{"name":"file-poll-interval","type":"option","description":"Interval in milliseconds between polling a file's size.","hidden":true,"helpValue":"ms","helpGroup":"file","multiple":false,"default":100}},"args":[{"name":"directory","description":"The directory to sync files to. If the directory doesn't exist, it will be created.","default":"."}],"priority":1},"whoami":{"id":"whoami","summary":"Show the name and email address of the currently logged in user.","strict":true,"usage":"whoami","pluginName":"@gadgetinc/ggt","pluginAlias":"@gadgetinc/ggt","pluginType":"core","aliases":[],"examples":["$ ggt whoami\nYou are logged in as Jane Doe (jane@example.com)"],"flags":{},"args":[]}}}
1
+ {
2
+ "version": "0.1.13",
3
+ "commands": {
4
+ "help": {
5
+ "id": "help",
6
+ "summary": "Display help for ggt.",
7
+ "strict": false,
8
+ "pluginName": "@gadgetinc/ggt",
9
+ "pluginAlias": "@gadgetinc/ggt",
10
+ "pluginType": "core",
11
+ "aliases": [],
12
+ "flags": {},
13
+ "args": {
14
+ "command": {
15
+ "name": "command",
16
+ "description": "The command to show help for.",
17
+ "required": false
18
+ }
19
+ }
20
+ },
21
+ "login": {
22
+ "id": "login",
23
+ "summary": "Log in to your account.",
24
+ "strict": true,
25
+ "usage": "login",
26
+ "pluginName": "@gadgetinc/ggt",
27
+ "pluginAlias": "@gadgetinc/ggt",
28
+ "pluginType": "core",
29
+ "aliases": [],
30
+ "examples": [
31
+ "$ ggt login\nWe've opened Gadget's login page using your default browser.\n\nPlease log in and then return to this terminal.\n\nHello, Jane Doe (jane@example.com)"
32
+ ],
33
+ "flags": {},
34
+ "args": {}
35
+ },
36
+ "logout": {
37
+ "id": "logout",
38
+ "summary": "Log out of your account.",
39
+ "strict": true,
40
+ "usage": "logout",
41
+ "pluginName": "@gadgetinc/ggt",
42
+ "pluginAlias": "@gadgetinc/ggt",
43
+ "pluginType": "core",
44
+ "aliases": [],
45
+ "examples": [
46
+ "$ ggt logout\nGoodbye"
47
+ ],
48
+ "flags": {},
49
+ "args": {}
50
+ },
51
+ "sync": {
52
+ "id": "sync",
53
+ "summary": "Sync your Gadget application's source code to and from your local filesystem.",
54
+ "description": "Sync provides the ability to sync your Gadget application's source code to and from your local\nfilesystem. While ggt sync is running, local file changes are immediately reflected within\nGadget, while files that are changed remotely are immediately saved to your local filesystem.\n\nUse cases for this include:\n - Developing locally with your own editor like VSCode (https://code.visualstudio.com/)\n - Storing your source code in a Git repository like GitHub (https://github.com/)\n\nSync includes the concept of a .ignore file. This file may contain a list of files and\ndirectories that won't be received or sent to Gadget when syncing. The format of this file is\nidentical to the one used by Git (https://git-scm.com/docs/gitignore).\n\nThe following files and directories are always ignored:\n - .gadget\n - .git\n - node_modules\n\nNote:\n - If you have separate development and production environments, ggt sync will only sync with your development environment\n - Gadget applications only support installing dependencies with Yarn 1 (https://classic.yarnpkg.com/lang/en/)\n - Since file changes are immediately reflected in Gadget, avoid the following while ggt sync is running:\n - Deleting all your files\n - Moving all your files to a different directory",
55
+ "strict": true,
56
+ "usage": "sync [DIRECTORY] [--app <name>]",
57
+ "pluginName": "@gadgetinc/ggt",
58
+ "pluginAlias": "@gadgetinc/ggt",
59
+ "pluginType": "core",
60
+ "aliases": [],
61
+ "examples": [
62
+ "$ ggt sync --app my-app ~/gadget/my-app\n\nApp my-app\nEditor https://my-app.gadget.app/edit\nPlayground https://my-app.gadget.app/api/graphql/playground\nDocs https://docs.gadget.dev/api/my-app\n\nEndpoints\n - https://my-app.gadget.app\n - https://my-app--development.gadget.app\n\nWatching for file changes... Press Ctrl+C to stop\n\nReceived 12:00:00 PM\n← routes/GET.js (changed)\n← user/signUp/signIn.js (changed)\n2 files in total. 2 changed, 0 deleted.\n\nSent 12:00:03 PM\n→ routes/GET.ts (changed)\n1 file in total. 1 changed, 0 deleted.\n\n^C Stopping... (press Ctrl+C again to force)\nGoodbye!"
63
+ ],
64
+ "flags": {
65
+ "app": {
66
+ "name": "app",
67
+ "type": "option",
68
+ "char": "a",
69
+ "summary": "The Gadget application to sync files to.",
70
+ "helpValue": "<name>",
71
+ "multiple": false
72
+ },
73
+ "force": {
74
+ "name": "force",
75
+ "type": "boolean",
76
+ "summary": "Whether to sync even if we can't determine the state of your local files relative to your remote ones.",
77
+ "allowNo": false
78
+ },
79
+ "file-push-delay": {
80
+ "name": "file-push-delay",
81
+ "type": "option",
82
+ "summary": "Delay in milliseconds before pushing files to your app.",
83
+ "hidden": true,
84
+ "helpValue": "ms",
85
+ "helpGroup": "file",
86
+ "multiple": false,
87
+ "default": 100
88
+ },
89
+ "file-stability-threshold": {
90
+ "name": "file-stability-threshold",
91
+ "type": "option",
92
+ "summary": "Time in milliseconds a file's size must remain the same.",
93
+ "hidden": true,
94
+ "helpValue": "ms",
95
+ "helpGroup": "file",
96
+ "multiple": false,
97
+ "default": 500
98
+ },
99
+ "file-poll-interval": {
100
+ "name": "file-poll-interval",
101
+ "type": "option",
102
+ "description": "Interval in milliseconds between polling a file's size.",
103
+ "hidden": true,
104
+ "helpValue": "ms",
105
+ "helpGroup": "file",
106
+ "multiple": false,
107
+ "default": 100
108
+ }
109
+ },
110
+ "args": {
111
+ "directory": {
112
+ "name": "directory",
113
+ "description": "The directory to sync files to. If the directory doesn't exist, it will be created.",
114
+ "default": "."
115
+ }
116
+ },
117
+ "priority": 1
118
+ },
119
+ "whoami": {
120
+ "id": "whoami",
121
+ "summary": "Show the name and email address of the currently logged in user.",
122
+ "strict": true,
123
+ "usage": "whoami",
124
+ "pluginName": "@gadgetinc/ggt",
125
+ "pluginAlias": "@gadgetinc/ggt",
126
+ "pluginType": "core",
127
+ "aliases": [],
128
+ "examples": [
129
+ "$ ggt whoami\nYou are logged in as Jane Doe (jane@example.com)"
130
+ ],
131
+ "flags": {},
132
+ "args": {}
133
+ }
134
+ }
135
+ }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@gadgetinc/ggt",
3
- "version": "0.1.11",
3
+ "version": "0.1.13",
4
4
  "description": "The command-line interface for Gadget",
5
5
  "homepage": "https://github.com/gadget-inc/ggt",
6
6
  "bugs": "https://github.com/gadget-inc/ggt/issues",
@@ -34,11 +34,11 @@
34
34
  "version": "changeset version && npm install --package-lock-only && npm run build && npm run readme"
35
35
  },
36
36
  "dependencies": {
37
- "@oclif/core": "^1.23.1",
37
+ "@oclif/core": "^2.4.0",
38
38
  "@oclif/errors": "^1.3.6",
39
- "@oclif/plugin-not-found": "^2.3.13",
40
- "@oclif/plugin-warn-if-update-available": "^2.0.18",
41
- "@sentry/node": "^7.29.0",
39
+ "@oclif/plugin-not-found": "^2.3.21",
40
+ "@oclif/plugin-warn-if-update-available": "^2.0.29",
41
+ "@sentry/node": "^7.40.0",
42
42
  "chalk": "^4.1.2",
43
43
  "chokidar": "^3.5.3",
44
44
  "clean-stack": "^3.0.1",
@@ -50,65 +50,65 @@
50
50
  "get-port": "^5.1.1",
51
51
  "got": "^11.8.5",
52
52
  "graphql": "^16.6.0",
53
- "graphql-ws": "^5.11.2",
53
+ "graphql-ws": "^5.11.3",
54
54
  "ignore": "^5.2.4",
55
55
  "inquirer": "^8.2.5",
56
56
  "lodash": "^4.17.21",
57
57
  "node-notifier": "^10.0.1",
58
58
  "normalize-path": "^3.0.0",
59
- "open": "^8.4.0",
59
+ "open": "^8.4.1",
60
60
  "p-map": "^4.0.0",
61
61
  "p-queue": "^6.6.2",
62
62
  "pluralize": "^8.0.0",
63
63
  "serialize-error": "^8.1.0",
64
64
  "ts-dedent": "^2.2.0",
65
65
  "which": "^3.0.0",
66
- "ws": "^8.11.0"
66
+ "ws": "^8.12.1"
67
67
  },
68
68
  "devDependencies": {
69
69
  "@changesets/cli": "^2.26.0",
70
- "@graphql-codegen/add": "^3.2.3",
71
- "@graphql-codegen/cli": "^2.16.3",
72
- "@graphql-codegen/typescript": "^2.8.5",
73
- "@graphql-codegen/typescript-operations": "^2.5.12",
74
- "@oclif/plugin-plugins": "^2.1.12",
75
- "@oclif/test": "^2.2.19",
76
- "@swc/core": "^1.3.25",
70
+ "@graphql-codegen/add": "^4.0.0",
71
+ "@graphql-codegen/cli": "^3.0.0",
72
+ "@graphql-codegen/typescript": "^3.0.0",
73
+ "@graphql-codegen/typescript-operations": "^3.0.0",
74
+ "@oclif/plugin-plugins": "^2.3.2",
75
+ "@oclif/test": "^2.3.8",
76
+ "@swc/core": "^1.3.35",
77
77
  "@swc/helpers": "^0.4.14",
78
78
  "@swc/jest": "^0.2.24",
79
79
  "@types/debug": "^4.1.7",
80
80
  "@types/fast-levenshtein": "^0.0.2",
81
- "@types/fs-extra": "^9.0.13",
81
+ "@types/fs-extra": "^11.0.1",
82
82
  "@types/inquirer": "^8.2.5",
83
- "@types/jest": "^29.2.5",
83
+ "@types/jest": "^29.4.0",
84
84
  "@types/lodash": "^4.14.191",
85
- "@types/node": "^18.11.18",
85
+ "@types/node": "^18.13.0",
86
86
  "@types/node-notifier": "^8.0.2",
87
87
  "@types/normalize-path": "^3.0.0",
88
88
  "@types/pluralize": "^0.0.29",
89
- "@types/which": "^2.0.1",
89
+ "@types/which": "^2.0.2",
90
90
  "@types/ws": "^8.5.4",
91
- "@typescript-eslint/eslint-plugin": "^5.48.0",
92
- "@typescript-eslint/parser": "^5.48.0",
91
+ "@typescript-eslint/eslint-plugin": "^5.54.0",
92
+ "@typescript-eslint/parser": "^5.54.0",
93
93
  "concurrently": "^7.6.0",
94
- "cspell": "^6.18.1",
95
- "eslint": "^8.31.0",
94
+ "cspell": "^6.28.0",
95
+ "eslint": "^8.35.0",
96
96
  "eslint-config-prettier": "^8.6.0",
97
- "eslint-plugin-import": "^2.26.0",
98
- "eslint-plugin-jest": "^27.2.0",
97
+ "eslint-plugin-import": "^2.27.5",
98
+ "eslint-plugin-jest": "^27.2.1",
99
99
  "eslint-plugin-lodash": "^7.4.0",
100
- "jest": "^29.3.1",
101
- "jest-extended": "^3.2.2",
102
- "nock": "^13.2.9",
103
- "oclif": "^3.4.3",
100
+ "jest": "^29.4.3",
101
+ "jest-extended": "^3.2.3",
102
+ "nock": "^13.3.0",
103
+ "oclif": "^3.7.0",
104
104
  "patch-package": "^6.5.1",
105
- "prettier": "^2.8.1",
106
- "prettier-plugin-packagejson": "^2.3.0",
107
- "rimraf": "^3.0.2",
105
+ "prettier": "^2.8.4",
106
+ "prettier-plugin-packagejson": "^2.4.3",
107
+ "rimraf": "^4.1.2",
108
108
  "ts-node": "^10.9.1",
109
- "tslib": "^2.4.1",
110
- "type-fest": "^3.5.1",
111
- "typescript": "^4.9.4"
109
+ "tslib": "^2.5.0",
110
+ "type-fest": "^3.5.7",
111
+ "typescript": "^4.9.5"
112
112
  },
113
113
  "engines": {
114
114
  "node": ">=16.0.0"