@google/clasp 2.4.0 → 2.4.2
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/CHANGELOG.md +18 -0
- package/README.md +3 -3
- package/build/src/apiutils.js +5 -9
- package/build/src/apiutils.js.map +1 -1
- package/build/src/auth.js +6 -9
- package/build/src/auth.js.map +1 -1
- package/build/src/commands/apis.js +9 -8
- package/build/src/commands/apis.js.map +1 -1
- package/build/src/commands/clone.js +9 -6
- package/build/src/commands/clone.js.map +1 -1
- package/build/src/commands/create.js +14 -10
- package/build/src/commands/create.js.map +1 -1
- package/build/src/commands/default.d.ts +1 -1
- package/build/src/commands/default.js.map +1 -1
- package/build/src/commands/deploy.js +1 -2
- package/build/src/commands/deploy.js.map +1 -1
- package/build/src/commands/deployments.js +1 -2
- package/build/src/commands/deployments.js.map +1 -1
- package/build/src/commands/list.js +2 -3
- package/build/src/commands/list.js.map +1 -1
- package/build/src/commands/login.js +1 -2
- package/build/src/commands/login.js.map +1 -1
- package/build/src/commands/logout.js +9 -26
- package/build/src/commands/logout.js.map +1 -1
- package/build/src/commands/logs.js +10 -10
- package/build/src/commands/logs.js.map +1 -1
- package/build/src/commands/open.js +3 -3
- package/build/src/commands/open.js.map +1 -1
- package/build/src/commands/pull.js +1 -2
- package/build/src/commands/pull.js.map +1 -1
- package/build/src/commands/push.js +8 -9
- package/build/src/commands/push.js.map +1 -1
- package/build/src/commands/run.js +1 -2
- package/build/src/commands/run.js.map +1 -1
- package/build/src/commands/status.d.ts +1 -1
- package/build/src/commands/status.js +3 -4
- package/build/src/commands/status.js.map +1 -1
- package/build/src/commands/undeploy.js +1 -2
- package/build/src/commands/undeploy.js.map +1 -1
- package/build/src/commands/version.js +1 -2
- package/build/src/commands/version.js.map +1 -1
- package/build/src/commands/versions.js +3 -4
- package/build/src/commands/versions.js.map +1 -1
- package/build/src/conf.d.ts +23 -41
- package/build/src/conf.js +65 -56
- package/build/src/conf.js.map +1 -1
- package/build/src/dotfile.js +8 -8
- package/build/src/dotfile.js.map +1 -1
- package/build/src/files.js +38 -34
- package/build/src/files.js.map +1 -1
- package/build/src/index.d.ts +16 -0
- package/build/src/index.js +46 -48
- package/build/src/index.js.map +1 -1
- package/build/src/inquirer.js.map +1 -1
- package/build/src/manifest.d.ts +1 -1
- package/build/src/manifest.js +8 -10
- package/build/src/manifest.js.map +1 -1
- package/build/src/messages.d.ts +6 -6
- package/build/src/messages.js +11 -11
- package/build/src/messages.js.map +1 -1
- package/build/src/utils.d.ts +1 -2
- package/build/src/utils.js +17 -23
- package/build/src/utils.js.map +1 -1
- package/docs/esmodules.md +4 -4
- package/package.json +28 -25
- package/build/src/path-proxy.d.ts +0 -53
- package/build/src/path-proxy.js +0 -112
- package/build/src/path-proxy.js.map +0 -1
package/build/src/index.js
CHANGED
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
|
-
import why from 'wtfnode'; // should be your first require
|
|
3
2
|
/**
|
|
4
3
|
* @license
|
|
5
4
|
* Copyright Google Inc.
|
|
@@ -19,11 +18,12 @@ import why from 'wtfnode'; // should be your first require
|
|
|
19
18
|
/**
|
|
20
19
|
* clasp - The Apps Script CLI
|
|
21
20
|
*/
|
|
22
|
-
import
|
|
21
|
+
import { program } from 'commander';
|
|
23
22
|
import loudRejection from 'loud-rejection';
|
|
24
23
|
import { dirname } from 'path';
|
|
25
24
|
import { readPackageUpSync } from 'read-pkg-up';
|
|
26
25
|
import { fileURLToPath } from 'url';
|
|
26
|
+
import fs from 'fs-extra';
|
|
27
27
|
import { ClaspError } from './clasp-error.js';
|
|
28
28
|
import apis from './commands/apis.js';
|
|
29
29
|
import clone from './commands/clone.js';
|
|
@@ -48,9 +48,8 @@ import { Conf } from './conf.js';
|
|
|
48
48
|
import { PROJECT_NAME } from './constants.js';
|
|
49
49
|
import { spinner, stopSpinner } from './utils.js';
|
|
50
50
|
const __dirname = dirname(fileURLToPath(import.meta.url));
|
|
51
|
-
let beforeExit = () => { };
|
|
52
51
|
// instantiate the config singleton (and loads environment variables as a side effect)
|
|
53
|
-
const
|
|
52
|
+
const config = Conf.get();
|
|
54
53
|
// Ensure any unhandled exception won't go unnoticed
|
|
55
54
|
loudRejection();
|
|
56
55
|
const manifest = readPackageUpSync({ cwd: __dirname });
|
|
@@ -58,41 +57,41 @@ const manifest = readPackageUpSync({ cwd: __dirname });
|
|
|
58
57
|
/**
|
|
59
58
|
* Set global CLI configurations
|
|
60
59
|
*/
|
|
61
|
-
|
|
60
|
+
program.storeOptionsAsProperties(false);
|
|
62
61
|
/**
|
|
63
62
|
* Displays clasp version
|
|
64
63
|
*/
|
|
65
|
-
|
|
66
|
-
|
|
64
|
+
program.version(manifest ? manifest.packageJson.version : 'unknown', '-v, --version', 'output the current version');
|
|
65
|
+
program.name(PROJECT_NAME).usage('<command> [options]').description(`${PROJECT_NAME} - The Apps Script CLI`);
|
|
67
66
|
/**
|
|
68
67
|
* Path to an auth file, or to a folder with a '.clasprc.json' file.
|
|
69
68
|
*/
|
|
70
|
-
|
|
69
|
+
program
|
|
71
70
|
.option('-A, --auth <file>', "path to an auth file or a folder with a '.clasprc.json' file.")
|
|
72
|
-
.on('option:auth', () => {
|
|
73
|
-
auth
|
|
71
|
+
.on('option:auth', (auth) => {
|
|
72
|
+
config.auth = auth;
|
|
74
73
|
});
|
|
75
74
|
/**
|
|
76
75
|
* Path to an ignore file, or to a folder with a '.claspignore'.
|
|
77
76
|
*/
|
|
78
|
-
|
|
77
|
+
program
|
|
79
78
|
.option('-I, --ignore <file>', "path to an ignore file or a folder with a '.claspignore' file.")
|
|
80
|
-
.on('option:ignore', () => {
|
|
81
|
-
ignore
|
|
79
|
+
.on('option:ignore', (ignore) => {
|
|
80
|
+
config.ignore = ignore;
|
|
82
81
|
});
|
|
83
82
|
/**
|
|
84
83
|
* Path to a project file, or to a folder with a '.clasp.json'.
|
|
85
84
|
*/
|
|
86
|
-
|
|
85
|
+
program
|
|
87
86
|
.option('-P, --project <file>', "path to a project file or to a folder with a '.clasp.json' file.")
|
|
88
|
-
.on('option:project', () => {
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
87
|
+
.on('option:project', (path) => {
|
|
88
|
+
const stats = fs.lstatSync(path);
|
|
89
|
+
if (stats.isDirectory()) {
|
|
90
|
+
config.projectRootDirectory = path;
|
|
91
|
+
}
|
|
92
|
+
else {
|
|
93
|
+
config.projectConfig = path;
|
|
94
|
+
}
|
|
96
95
|
});
|
|
97
96
|
/**
|
|
98
97
|
* Logs the user in. Saves the client credentials to an rc file.
|
|
@@ -103,7 +102,7 @@ commander.option('-W, --why', 'Display some debugging info upon exit.').on('opti
|
|
|
103
102
|
* @example login --creds credentials.json (uses your credentials file).
|
|
104
103
|
* @see test
|
|
105
104
|
*/
|
|
106
|
-
|
|
105
|
+
program
|
|
107
106
|
.command('login')
|
|
108
107
|
.description('Log in to script.google.com')
|
|
109
108
|
.option('--no-localhost', 'Do not run a local server, manually enter code instead')
|
|
@@ -115,7 +114,7 @@ commander
|
|
|
115
114
|
* @name logout
|
|
116
115
|
* @example logout
|
|
117
116
|
*/
|
|
118
|
-
|
|
117
|
+
program.command('logout').description('Log out').action(logout);
|
|
119
118
|
/**
|
|
120
119
|
* Creates a new script project.
|
|
121
120
|
* @name create
|
|
@@ -131,7 +130,7 @@ commander.command('logout').description('Log out').action(logout);
|
|
|
131
130
|
* @example create "My Script" "1D_Gxyv*****************************NXO7o"
|
|
132
131
|
* @see https://developers.google.com/apps-script/api/reference/rest/v1/projects/create
|
|
133
132
|
*/
|
|
134
|
-
|
|
133
|
+
program
|
|
135
134
|
.command('create')
|
|
136
135
|
.description('Create a script')
|
|
137
136
|
.option('--type <type>', 'Creates a new Apps Script project attached to a new Document, Spreadsheet, Presentation, Form, or as a standalone script, web app, or API.')
|
|
@@ -145,7 +144,7 @@ commander
|
|
|
145
144
|
* @param {string?} [versionNumber] The version of the script to clone.
|
|
146
145
|
* @param {string?} [--rootDir] Local root directory that store your project files.
|
|
147
146
|
*/
|
|
148
|
-
|
|
147
|
+
program
|
|
149
148
|
.command('clone [scriptId] [versionNumber]')
|
|
150
149
|
.description('Clone a project')
|
|
151
150
|
.option('--rootDir <rootDir>', 'Local root directory in which clasp will store your project files.')
|
|
@@ -156,7 +155,7 @@ commander
|
|
|
156
155
|
* @name pull
|
|
157
156
|
* @example pull
|
|
158
157
|
*/
|
|
159
|
-
|
|
158
|
+
program
|
|
160
159
|
.command('pull')
|
|
161
160
|
.description('Fetch a remote project')
|
|
162
161
|
.option('--versionNumber <version>', 'The version number of the project to retrieve.')
|
|
@@ -172,7 +171,7 @@ commander
|
|
|
172
171
|
* @example push --force
|
|
173
172
|
* @example push --watch
|
|
174
173
|
*/
|
|
175
|
-
|
|
174
|
+
program
|
|
176
175
|
.command('push')
|
|
177
176
|
.description('Update the remote project')
|
|
178
177
|
.option('-f, --force', 'Forcibly overwrites the remote manifest.')
|
|
@@ -187,7 +186,7 @@ commander
|
|
|
187
186
|
* - That are ignored (filename matches a glob pattern in the ignore file)
|
|
188
187
|
* @example status
|
|
189
188
|
*/
|
|
190
|
-
|
|
189
|
+
program
|
|
191
190
|
.command('status')
|
|
192
191
|
.description('Lists files that will be pushed by clasp')
|
|
193
192
|
.option('--json', 'Show status in JSON form')
|
|
@@ -199,7 +198,7 @@ commander
|
|
|
199
198
|
* @example open
|
|
200
199
|
* @example open [scriptId]
|
|
201
200
|
*/
|
|
202
|
-
|
|
201
|
+
program
|
|
203
202
|
.command('open [scriptId]')
|
|
204
203
|
.description('Open a script')
|
|
205
204
|
.option('--webapp', 'Open web application in the browser')
|
|
@@ -212,7 +211,7 @@ commander
|
|
|
212
211
|
* @name deployments
|
|
213
212
|
* @example deployments
|
|
214
213
|
*/
|
|
215
|
-
|
|
214
|
+
program.command('deployments').description('List deployment ids of a script').action(deployments);
|
|
216
215
|
/**
|
|
217
216
|
* Creates a version and deploys a script.
|
|
218
217
|
* The response gives the version of the deployment.
|
|
@@ -223,7 +222,7 @@ commander.command('deployments').description('List deployment ids of a script').
|
|
|
223
222
|
* @example deploy --deploymentId 123 (create new version)
|
|
224
223
|
* @example deploy -V 7 -d "Updates sidebar logo." -i 456
|
|
225
224
|
*/
|
|
226
|
-
|
|
225
|
+
program
|
|
227
226
|
.command('deploy')
|
|
228
227
|
.description('Deploy a project')
|
|
229
228
|
.option('-V, --versionNumber <version>', 'The project version') // We can't use `version` in subcommand
|
|
@@ -239,7 +238,7 @@ commander
|
|
|
239
238
|
* @example "undeploy 123"
|
|
240
239
|
* @example "undeploy --all"
|
|
241
240
|
*/
|
|
242
|
-
|
|
241
|
+
program
|
|
243
242
|
.command('undeploy [deploymentId]')
|
|
244
243
|
.description('Undeploy a deployment of a project')
|
|
245
244
|
.option('-a, --all', 'Undeploy all deployments')
|
|
@@ -251,20 +250,20 @@ commander
|
|
|
251
250
|
* @example version
|
|
252
251
|
* @example version "Bump the version."
|
|
253
252
|
*/
|
|
254
|
-
|
|
253
|
+
program.command('version [description]').description('Creates an immutable version of the script').action(version);
|
|
255
254
|
/**
|
|
256
255
|
* List versions of a script.
|
|
257
256
|
* @name versions
|
|
258
257
|
* @example versions
|
|
259
258
|
*/
|
|
260
|
-
|
|
259
|
+
program.command('versions').description('List versions of a script').action(versions);
|
|
261
260
|
/**
|
|
262
261
|
* Lists your most recent 10 Apps Script projects.
|
|
263
262
|
* @name list
|
|
264
263
|
* @example list # helloworld1 - xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx ...
|
|
265
264
|
* @todo Add --all flag to list all projects.
|
|
266
265
|
*/
|
|
267
|
-
|
|
266
|
+
program
|
|
268
267
|
.command('list')
|
|
269
268
|
.description('List App Scripts projects')
|
|
270
269
|
.option('--noShorten', 'Do not shorten long names', false)
|
|
@@ -276,7 +275,7 @@ commander
|
|
|
276
275
|
* @param {boolean?} open Open StackDriver logs in a browser.
|
|
277
276
|
* @param {boolean?} setup Setup StackDriver logs.
|
|
278
277
|
*/
|
|
279
|
-
|
|
278
|
+
program
|
|
280
279
|
.command('logs')
|
|
281
280
|
.description('Shows the StackDriver logs')
|
|
282
281
|
.option('--json', 'Show logs in JSON form')
|
|
@@ -297,7 +296,7 @@ commander
|
|
|
297
296
|
* @see https://developers.google.com/apps-script/api/reference/rest/v1/scripts/run
|
|
298
297
|
* @requires `clasp login --creds` to be run beforehand.
|
|
299
298
|
*/
|
|
300
|
-
|
|
299
|
+
program
|
|
301
300
|
.command('run [functionName]')
|
|
302
301
|
.description('Run a function in your Apps Scripts project')
|
|
303
302
|
.option('--nondev', 'Run script function in non-devMode')
|
|
@@ -310,7 +309,7 @@ commander
|
|
|
310
309
|
* @example apis list
|
|
311
310
|
* @example apis enable drive
|
|
312
311
|
*/
|
|
313
|
-
|
|
312
|
+
program
|
|
314
313
|
.command('apis')
|
|
315
314
|
.description(`List, enable, or disable APIs
|
|
316
315
|
list
|
|
@@ -329,7 +328,7 @@ commander
|
|
|
329
328
|
* @example setting scriptId
|
|
330
329
|
* @example setting scriptId new-id
|
|
331
330
|
*/
|
|
332
|
-
|
|
331
|
+
program
|
|
333
332
|
.command('setting [settingKey] [newValue]')
|
|
334
333
|
.alias('settings')
|
|
335
334
|
.description('Update <settingKey> in .clasp.json')
|
|
@@ -338,28 +337,28 @@ commander
|
|
|
338
337
|
* All other commands are given a help message.
|
|
339
338
|
* @example random
|
|
340
339
|
*/
|
|
341
|
-
|
|
340
|
+
program.command('*', { isDefault: true }).description('Any other command is not supported').action(defaultCmd);
|
|
342
341
|
/**
|
|
343
342
|
* @internal
|
|
344
343
|
* Displays clasp paths
|
|
345
344
|
*/
|
|
346
|
-
|
|
345
|
+
program
|
|
347
346
|
.command('paths')
|
|
348
347
|
.description('List current config files path')
|
|
349
348
|
.action(() => {
|
|
350
|
-
console.log('project',
|
|
351
|
-
console.log('ignore',
|
|
352
|
-
console.log('auth',
|
|
349
|
+
console.log('project', config.projectConfig);
|
|
350
|
+
console.log('ignore', config.ignore);
|
|
351
|
+
console.log('auth', config.auth);
|
|
353
352
|
});
|
|
354
353
|
const [_bin, _sourcePath, ...args] = process.argv;
|
|
355
354
|
// Defaults to help if commands are not provided
|
|
356
355
|
if (args.length === 0) {
|
|
357
|
-
|
|
356
|
+
program.outputHelp();
|
|
358
357
|
}
|
|
359
358
|
(async () => {
|
|
360
359
|
try {
|
|
361
360
|
// User input is provided from the process' arguments
|
|
362
|
-
await
|
|
361
|
+
await program.parseAsync(process.argv);
|
|
363
362
|
stopSpinner();
|
|
364
363
|
}
|
|
365
364
|
catch (error) {
|
|
@@ -378,6 +377,5 @@ if (args.length === 0) {
|
|
|
378
377
|
}
|
|
379
378
|
}
|
|
380
379
|
spinner.clear();
|
|
381
|
-
beforeExit();
|
|
382
380
|
})();
|
|
383
381
|
//# sourceMappingURL=index.js.map
|
package/build/src/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":";AAEA
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":";AAEA;;;;;;;;;;;;;;;GAeG;AAEH;;GAEG;AAEH,OAAO,EAAC,OAAO,EAAC,MAAM,WAAW,CAAC;AAClC,OAAO,aAAa,MAAM,gBAAgB,CAAC;AAC3C,OAAO,EAAC,OAAO,EAAC,MAAM,MAAM,CAAC;AAC7B,OAAO,EAAC,iBAAiB,EAAC,MAAM,aAAa,CAAC;AAC9C,OAAO,EAAC,aAAa,EAAC,MAAM,KAAK,CAAC;AAClC,OAAO,EAAE,MAAM,UAAU,CAAC;AAE1B,OAAO,EAAC,UAAU,EAAC,MAAM,kBAAkB,CAAC;AAC5C,OAAO,IAAI,MAAM,oBAAoB,CAAC;AACtC,OAAO,KAAK,MAAM,qBAAqB,CAAC;AACxC,OAAO,MAAM,MAAM,sBAAsB,CAAC;AAC1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ACzB,SAAS;AACT,QAAQ;AACR,mCAAmC;AACnC,2BAA2B;AAC3B,yBAAyB;AACzB,oEAAoE;AACpE,SAAS;AACT,QAAQ;AAER;;;GAGG;AACH,MAAM,CAAC,MAAM,eAAe,GAAG,GAAG,EAAE,CAClC,MAAM,CAAuB;IAC3B;QACE,OAAO,EAAE,KAAK;QACd,OAAO,EAAE,oEAAoE;QAC7E,IAAI,EAAE,WAAW;QACjB,IAAI,EAAE,SAAS;KAChB;CACF,CAAC,CAAC;AAEL;;;GAGG;AACH,MAAM,CAAC,MAAM,eAAe,GAAG,GAAG,EAAE,CAClC,MAAM,CAA+B;IACnC;QACE,OAAO,EAAE,GAAG,GAAG,CAAC,cAAc,EAAE;QAChC,IAAI,EAAE,WAAW;QACjB,IAAI,EAAE,OAAO;KACd;CACF,CAAC,CAAC;AAOL;;;;GAIG;AACH,MAAM,CAAC,MAAM,cAAc,GAAG,CAAC,OAAgD,EAAE,EAAE,CACjF,MAAM,CAAqB;IACzB;QACE,OAAO,EAAE,OAAO;QAChB,OAAO,EAAE,GAAG,CAAC,qBAAqB;QAClC,IAAI,EAAE,UAAU;QAChB,QAAQ,EAAE,EAAE;QACZ,IAAI,EAAE,MAAM;KACb;CACF,CAAC,CAAC;AAEL;;;GAGG;AACH,MAAM,CAAC,MAAM,gBAAgB,GAAG,GAAG,EAAE,CACnC,MAAM,CAAiB;IACrB;QACE,OAAO,EAAE,MAAM,CAAC,IAAI,CAAC,YAAY,CAAC,CAAC,GAAG,CAAC,GAAG,CAAC,EAAE,CAAC,YAAY,CAAC,GAAgC,CAAC,CAAC;QAC7F,OAAO,EAAE,GAAG,CAAC,sBAAsB;QACnC,IAAI,EAAE,MAAM;QACZ,IAAI,EAAE,MAAM;KACb;CACF,CAAC,CAAC"}
|
package/build/src/manifest.d.ts
CHANGED
|
@@ -5,7 +5,7 @@
|
|
|
5
5
|
*
|
|
6
6
|
* @return {boolean} True if valid project, false otherwise
|
|
7
7
|
*/
|
|
8
|
-
export declare const manifestExists: (rootDir?: string) => boolean;
|
|
8
|
+
export declare const manifestExists: (rootDir?: string | undefined) => boolean;
|
|
9
9
|
/**
|
|
10
10
|
* Reads the appsscript.json manifest file.
|
|
11
11
|
* @returns {Promise<Manifest>} A promise to get the manifest file as object.
|
package/build/src/manifest.js
CHANGED
|
@@ -1,16 +1,17 @@
|
|
|
1
|
-
import fs from 'fs-extra';
|
|
2
1
|
import path from 'path';
|
|
2
|
+
import is from '@sindresorhus/is';
|
|
3
|
+
import fs from 'fs-extra';
|
|
3
4
|
import { PUBLIC_ADVANCED_SERVICES as publicAdvancedServices } from './apis.js';
|
|
4
5
|
import { ClaspError } from './clasp-error.js';
|
|
5
6
|
import { Conf } from './conf.js';
|
|
6
7
|
import { FS_OPTIONS, PROJECT_MANIFEST_FILENAME } from './constants.js';
|
|
7
8
|
import { ERROR } from './messages.js';
|
|
8
9
|
import { getProjectSettings, parseJsonOrDie } from './utils.js';
|
|
9
|
-
const
|
|
10
|
-
|
|
10
|
+
const config = Conf.get();
|
|
11
|
+
/** Gets the path to manifest for given `rootDir` */
|
|
11
12
|
const getManifestPath = (rootDir) => path.join(rootDir, PROJECT_MANIFEST_FILENAME);
|
|
12
13
|
/** Gets the `rootDir` from given project */
|
|
13
|
-
const getRootDir = (
|
|
14
|
+
const getRootDir = ({ rootDir }) => is.string(rootDir) ? rootDir : config.projectRootDirectory;
|
|
14
15
|
/**
|
|
15
16
|
* Checks if the rootDir appears to be a valid project.
|
|
16
17
|
*
|
|
@@ -18,7 +19,7 @@ const getRootDir = (projectSettings) => typeof projectSettings.rootDir === 'stri
|
|
|
18
19
|
*
|
|
19
20
|
* @return {boolean} True if valid project, false otherwise
|
|
20
21
|
*/
|
|
21
|
-
export const manifestExists = (rootDir =
|
|
22
|
+
export const manifestExists = (rootDir = config.projectRootDirectory) => rootDir !== undefined && fs.existsSync(getManifestPath(rootDir));
|
|
22
23
|
/**
|
|
23
24
|
* Reads the appsscript.json manifest file.
|
|
24
25
|
* @returns {Promise<Manifest>} A promise to get the manifest file as object.
|
|
@@ -54,10 +55,7 @@ const writeManifest = async (manifest) => {
|
|
|
54
55
|
/**
|
|
55
56
|
* Returns true if the manifest is valid.
|
|
56
57
|
*/
|
|
57
|
-
export const isValidManifest = async (manifest) =>
|
|
58
|
-
const value = manifest !== null && manifest !== void 0 ? manifest : (await getManifest());
|
|
59
|
-
return value !== null && typeof value !== undefined;
|
|
60
|
-
};
|
|
58
|
+
export const isValidManifest = async (manifest) => !is.nullOrUndefined(manifest !== null && manifest !== void 0 ? manifest : (await getManifest()));
|
|
61
59
|
/**
|
|
62
60
|
* Ensures the manifest is correct for running a function.
|
|
63
61
|
* The manifest must include:
|
|
@@ -67,7 +65,7 @@ export const isValidManifest = async (manifest) => {
|
|
|
67
65
|
*/
|
|
68
66
|
export const isValidRunManifest = async () => {
|
|
69
67
|
const value = await getManifest();
|
|
70
|
-
return Boolean(isValidManifest(value) && value.executionApi && value.executionApi.access);
|
|
68
|
+
return Boolean((await isValidManifest(value)) && value.executionApi && value.executionApi.access);
|
|
71
69
|
};
|
|
72
70
|
/**
|
|
73
71
|
* Reads manifest file from project root dir.
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"manifest.js","sourceRoot":"","sources":["../../src/manifest.ts"],"names":[],"mappings":"AAAA,OAAO,
|
|
1
|
+
{"version":3,"file":"manifest.js","sourceRoot":"","sources":["../../src/manifest.ts"],"names":[],"mappings":"AAAA,OAAO,IAAI,MAAM,MAAM,CAAC;AACxB,OAAO,EAAE,MAAM,kBAAkB,CAAC;AAClC,OAAO,EAAE,MAAM,UAAU,CAAC;AAE1B,OAAO,EAAC,wBAAwB,IAAI,sBAAsB,EAAC,MAAM,WAAW,CAAC;AAC7E,OAAO,EAAC,UAAU,EAAC,MAAM,kBAAkB,CAAC;AAC5C,OAAO,EAAC,IAAI,EAAC,MAAM,WAAW,CAAC;AAC/B,OAAO,EAAC,UAAU,EAAE,yBAAyB,EAAC,MAAM,gBAAgB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CAAC,CAAC"}
|
package/build/src/messages.d.ts
CHANGED
|
@@ -12,7 +12,7 @@ export declare const ERROR: {
|
|
|
12
12
|
DEPLOYMENT_COUNT: string;
|
|
13
13
|
DRIVE: string;
|
|
14
14
|
EXECUTE_ENTITY_NOT_FOUND: string;
|
|
15
|
-
FOLDER_EXISTS: string;
|
|
15
|
+
FOLDER_EXISTS: () => string;
|
|
16
16
|
FS_DIR_WRITE: string;
|
|
17
17
|
FS_FILE_WRITE: string;
|
|
18
18
|
INVALID_JSON: string;
|
|
@@ -24,8 +24,8 @@ export declare const ERROR: {
|
|
|
24
24
|
NO_API: (enable: boolean, api: string) => string;
|
|
25
25
|
NO_CREDENTIALS: (local: boolean) => string;
|
|
26
26
|
NO_FUNCTION_NAME: string;
|
|
27
|
-
NO_GCLOUD_PROJECT: string;
|
|
28
|
-
NO_PARENT_ID: string;
|
|
27
|
+
NO_GCLOUD_PROJECT: () => string;
|
|
28
|
+
NO_PARENT_ID: () => string;
|
|
29
29
|
NO_LOCAL_CREDENTIALS: string;
|
|
30
30
|
NO_MANIFEST: (filename: string) => string;
|
|
31
31
|
NO_NESTED_PROJECTS: string;
|
|
@@ -39,10 +39,10 @@ export declare const ERROR: {
|
|
|
39
39
|
RATE_LIMIT: string;
|
|
40
40
|
RUN_NODATA: string;
|
|
41
41
|
READ_ONLY_DELETE: string;
|
|
42
|
-
SCRIPT_ID_DNE: string;
|
|
42
|
+
SCRIPT_ID_DNE: () => string;
|
|
43
43
|
SCRIPT_ID_INCORRECT: (scriptId: string) => string;
|
|
44
44
|
SCRIPT_ID: string;
|
|
45
|
-
SETTINGS_DNE: string;
|
|
45
|
+
SETTINGS_DNE: () => string;
|
|
46
46
|
UNAUTHENTICATED_LOCAL: string;
|
|
47
47
|
UNAUTHENTICATED: string;
|
|
48
48
|
UNKNOWN_KEY: (key: string) => string;
|
|
@@ -78,7 +78,7 @@ export declare const LOG: {
|
|
|
78
78
|
GRAB_LOGS: string;
|
|
79
79
|
GET_PROJECT_ID_INSTRUCTIONS: string;
|
|
80
80
|
GIVE_DESCRIPTION: string;
|
|
81
|
-
LOCAL_CREDS: string;
|
|
81
|
+
LOCAL_CREDS: () => string;
|
|
82
82
|
LOGIN: (isLocal: boolean) => string;
|
|
83
83
|
LOGS_SETUP: string;
|
|
84
84
|
NO_GCLOUD_PROJECT: string;
|
package/build/src/messages.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { Conf } from './conf.js';
|
|
2
2
|
import { PROJECT_MANIFEST_FILENAME, PROJECT_NAME } from './constants.js';
|
|
3
3
|
import { URL } from './urls.js';
|
|
4
|
-
const
|
|
4
|
+
const config = Conf.get();
|
|
5
5
|
/** Human friendly Google Drive file type name */
|
|
6
6
|
const fileTypeName = new Map([
|
|
7
7
|
['docs', 'Google Doc'],
|
|
@@ -37,7 +37,7 @@ Forgot ${PROJECT_NAME} commands? Get help:\n ${PROJECT_NAME} --help`,
|
|
|
37
37
|
DEPLOYMENT_COUNT: 'Unable to deploy; Scripts may only have up to 20 versioned deployments at a time.',
|
|
38
38
|
DRIVE: 'Something went wrong with the Google Drive API',
|
|
39
39
|
EXECUTE_ENTITY_NOT_FOUND: 'Script API executable not published/deployed.',
|
|
40
|
-
FOLDER_EXISTS: `Project file (${
|
|
40
|
+
FOLDER_EXISTS: () => `Project file (${config.projectConfig}) already exists.`,
|
|
41
41
|
FS_DIR_WRITE: 'Could not create directory.',
|
|
42
42
|
FS_FILE_WRITE: 'Could not write file.',
|
|
43
43
|
INVALID_JSON: 'Input params not Valid JSON string. Please fix and try again',
|
|
@@ -49,8 +49,8 @@ Forgot ${PROJECT_NAME} commands? Get help:\n ${PROJECT_NAME} --help`,
|
|
|
49
49
|
NO_API: (enable, api) => `API ${api} doesn't exist. Try 'clasp apis ${enable ? 'enable' : 'disable'} sheets'.`,
|
|
50
50
|
NO_CREDENTIALS: (local) => `Could not read API credentials. Are you logged in ${local ? 'locally' : 'globally'}?`,
|
|
51
51
|
NO_FUNCTION_NAME: 'N/A',
|
|
52
|
-
NO_GCLOUD_PROJECT: `No projectId found in your ${
|
|
53
|
-
NO_PARENT_ID: `No parentId or empty parentId found in your ${
|
|
52
|
+
NO_GCLOUD_PROJECT: () => `No projectId found in your ${config.projectConfig} file.`,
|
|
53
|
+
NO_PARENT_ID: () => `No parentId or empty parentId found in your ${config.projectConfig} file.`,
|
|
54
54
|
NO_LOCAL_CREDENTIALS: `Requires local crendetials:\n\n ${PROJECT_NAME} login --creds <file.json>`,
|
|
55
55
|
NO_MANIFEST: (filename) => `Manifest: ${filename} invalid. \`create\` or \`clone\` a project first.`,
|
|
56
56
|
NO_NESTED_PROJECTS: '\nNested clasp projects are not supported.',
|
|
@@ -67,14 +67,14 @@ Forgot ${PROJECT_NAME} commands? Get help:\n ${PROJECT_NAME} --help`,
|
|
|
67
67
|
RATE_LIMIT: 'Rate limit exceeded. Check quota.',
|
|
68
68
|
RUN_NODATA: 'Script execution API returned no data.',
|
|
69
69
|
READ_ONLY_DELETE: 'Unable to delete read-only deployment.',
|
|
70
|
-
SCRIPT_ID_DNE: `No scriptId found in your ${
|
|
70
|
+
SCRIPT_ID_DNE: () => `No scriptId found in your ${config.projectConfig} file.`,
|
|
71
71
|
SCRIPT_ID_INCORRECT: (scriptId) => `The scriptId "${scriptId}" looks incorrect.
|
|
72
72
|
Did you provide the correct scriptId?`,
|
|
73
73
|
SCRIPT_ID: `Could not find script.
|
|
74
74
|
Did you provide the correct scriptId?
|
|
75
75
|
Are you logged in to the correct account with the script?`,
|
|
76
|
-
SETTINGS_DNE: `
|
|
77
|
-
No valid ${
|
|
76
|
+
SETTINGS_DNE: () => `
|
|
77
|
+
No valid ${config.projectConfig} project file. You may need to \`create\` or \`clone\` a project first.`,
|
|
78
78
|
UNAUTHENTICATED_LOCAL: 'Error: Local client credentials unauthenticated. Check scopes/authorization.',
|
|
79
79
|
UNAUTHENTICATED: 'Error: Unauthenticated request: Please try again.',
|
|
80
80
|
UNKNOWN_KEY: (key) => `Unknown key "${key}"`,
|
|
@@ -92,7 +92,7 @@ export const LOG = {
|
|
|
92
92
|
AUTH_PAGE_SUCCESSFUL: 'Logged in! You may close this page. ',
|
|
93
93
|
AUTH_SUCCESSFUL: 'Authorization successful.',
|
|
94
94
|
AUTHORIZE: (authUrl) => `🔑 Authorize ${PROJECT_NAME} by visiting this url:\n${authUrl}\n`,
|
|
95
|
-
CLONE_SUCCESS: (fileCount) => `Warning: files in subfolder are not accounted for unless you set a '${ignore
|
|
95
|
+
CLONE_SUCCESS: (fileCount) => `Warning: files in subfolder are not accounted for unless you set a '${config.ignore}' file.
|
|
96
96
|
Cloned ${fileCount} ${fileCount === 1 ? 'file' : 'files'}.`,
|
|
97
97
|
CLONING: 'Cloning files…',
|
|
98
98
|
CLONE_SCRIPT_QUESTION: 'Clone which script?',
|
|
@@ -115,7 +115,7 @@ Cloned ${fileCount} ${fileCount === 1 ? 'file' : 'files'}.`,
|
|
|
115
115
|
GET_PROJECT_ID_INSTRUCTIONS: `Go to *Resource > Cloud Platform Project…* and copy your projectId
|
|
116
116
|
(including "project-id-")`,
|
|
117
117
|
GIVE_DESCRIPTION: 'Give a description: ',
|
|
118
|
-
LOCAL_CREDS: `Using local credentials: ${
|
|
118
|
+
LOCAL_CREDS: () => `Using local credentials: ${config.authLocal} 🔐 `,
|
|
119
119
|
LOGIN: (isLocal) => `Logging in ${isLocal ? 'locally' : 'globally'}…`,
|
|
120
120
|
LOGS_SETUP: 'Finished setting up logs.\n',
|
|
121
121
|
NO_GCLOUD_PROJECT: `No projectId found. Running ${PROJECT_NAME} logs --setup.`,
|
|
@@ -133,9 +133,9 @@ Cloned ${fileCount} ${fileCount === 1 ? 'file' : 'files'}.`,
|
|
|
133
133
|
PUSH_WATCH: 'Watching for changed files…\n',
|
|
134
134
|
PUSHING: 'Pushing files…',
|
|
135
135
|
SAVED_CREDS: (isLocalCreds) => isLocalCreds
|
|
136
|
-
? `Local credentials saved to: ${
|
|
136
|
+
? `Local credentials saved to: ${config.authLocal}.
|
|
137
137
|
*Be sure to never commit this file!* It's basically a password.`
|
|
138
|
-
: `Default credentials saved to: ${auth
|
|
138
|
+
: `Default credentials saved to: ${config.auth}.`,
|
|
139
139
|
SCRIPT_LINK: (scriptId) => `https://script.google.com/d/${scriptId}/edit`,
|
|
140
140
|
// SCRIPT_RUN: (functionName: string) => `Executing: ${functionName}`,
|
|
141
141
|
STACKDRIVER_SETUP: 'Setting up StackDriver Logging.',
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"messages.js","sourceRoot":"","sources":["../../src/messages.ts"],"names":[],"mappings":"AAEA,OAAO,EAAC,IAAI,EAAC,MAAM,WAAW,CAAC;AAC/B,OAAO,EAAC,yBAAyB,EAAE,YAAY,EAAC,MAAM,gBAAgB,CAAC;AACvE,OAAO,EAAC,GAAG,EAAC,MAAM,WAAW,CAAC;AAE9B,MAAM,
|
|
1
|
+
{"version":3,"file":"messages.js","sourceRoot":"","sources":["../../src/messages.ts"],"names":[],"mappings":"AAEA,OAAO,EAAC,IAAI,EAAC,MAAM,WAAW,CAAC;AAC/B,OAAO,EAAC,yBAAyB,EAAE,YAAY,EAAC,MAAM,gBAAgB,CAAC;AACvE,OAAO,EAAC,GAAG,EAAC,MAAM,WAAW,CAAC;AAE9B,MAAM,MAAM,GAAG,IAAI,CAAC,GAAG,EAAE,CAAC;AAE1B,iDAAiD;AACjD,MAAM,YAAY,GAAG,IAAI,GAAG,CAAiB;IAC3C,CAAC,MAAM,EAAE,YAAY,CAAC;IACtB,CAAC,OAAO,EAAE,aAAa,CAAC;IACxB,CAAC,QAAQ,EAAE,cAAc,CAAC;IAC1B,CAAC,QAAQ,EAAE,cAAc,CAAC;CAC3B,CAAC,CAAC;AAEH;;;;GAIG;AACH,MAAM,eAAe,GAAG,CAAC,IAAY,EAAE,EAAE,CAAC,YAAY,CAAC,GAAG,CAAC,IAAI,CAAC,CAAC;AAEjE;;;;GAIG;AACH,MAAM,iBAAiB,GAAG,CAAC,IAAY,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I;IAC9G,iFAAiF;IACjF,0DAA0D;IAC1D,iGAAiG;IACjG,uCAAuC;IACvC,iDAAiD;IACjD,qCAAqC;IACrC,6GAA6G;IAE7G,yDAAyD;IACzD,sDAAsD;CACvD,CAAC"}
|
package/build/src/utils.d.ts
CHANGED
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
import { script_v1 as scriptV1 } from 'googleapis';
|
|
2
|
-
import ora from 'ora';
|
|
3
2
|
import type { ClaspToken, ProjectSettings } from './dotfile';
|
|
4
3
|
/**
|
|
5
4
|
* The installed credentials. This is a file downloaded from console.developers.google.com
|
|
@@ -32,7 +31,7 @@ export declare const hasOauthClientSettings: (local?: boolean) => boolean;
|
|
|
32
31
|
* @returns {Promise<ClaspToken>} A promise to get the rc file as object.
|
|
33
32
|
*/
|
|
34
33
|
export declare const getOAuthSettings: (local: boolean) => Promise<ClaspToken>;
|
|
35
|
-
export declare const spinner: ora.Ora;
|
|
34
|
+
export declare const spinner: import("ora").Ora;
|
|
36
35
|
/** Stops the spinner if it is spinning */
|
|
37
36
|
export declare const stopSpinner: () => void;
|
|
38
37
|
export declare const getErrorMessage: (value: any) => any;
|