gasup 0.3.3 → 0.3.5
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/README.md +14 -0
- package/assets/tsconfig.json +8 -0
- package/dist/Config.d.ts +1 -1
- package/dist/Config.js +1 -1
- package/package.json +3 -2
package/README.md
CHANGED
|
@@ -56,6 +56,20 @@ Deploy to the latest deployment. If no previous deployments exist, a new deploym
|
|
|
56
56
|
gasup --deploy
|
|
57
57
|
```
|
|
58
58
|
|
|
59
|
+
appsscript.json affects deployment. Be sure to check your appsscript.json.
|
|
60
|
+
|
|
61
|
+
If you want to deploy webapp, appsscript is like below.
|
|
62
|
+
|
|
63
|
+
```json
|
|
64
|
+
{
|
|
65
|
+
...
|
|
66
|
+
"webapp": {
|
|
67
|
+
"executeAs": "USER_DEPLOYING",
|
|
68
|
+
"access": "ANYONE_ANONYMOUS"
|
|
69
|
+
}
|
|
70
|
+
}
|
|
71
|
+
```
|
|
72
|
+
|
|
59
73
|
### Change Environment
|
|
60
74
|
|
|
61
75
|
If you need to switch between different environments (e.g., development, staging, production), you can use the --env flag to modify the appsscript.json file accordingly.
|
package/dist/Config.d.ts
CHANGED
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { Config } from './types.js';
|
|
2
|
+
export declare const defaultConfig: Config;
|
|
2
3
|
export declare const config: {
|
|
3
4
|
envPaths: {
|
|
4
5
|
dev: string;
|
|
@@ -12,4 +13,3 @@ export declare const config: {
|
|
|
12
13
|
srcDir?: string;
|
|
13
14
|
distDir?: string;
|
|
14
15
|
};
|
|
15
|
-
export declare const defaultConfig: Config;
|
package/dist/Config.js
CHANGED
|
@@ -2,7 +2,6 @@ import fs from 'fs-extra';
|
|
|
2
2
|
import path from 'path';
|
|
3
3
|
import tsnode from 'ts-node';
|
|
4
4
|
const configFileName = 'gasup.config.ts';
|
|
5
|
-
export const config = loadConfigWithDefault();
|
|
6
5
|
export const defaultConfig = {
|
|
7
6
|
envPaths: {
|
|
8
7
|
dev: '.env',
|
|
@@ -16,6 +15,7 @@ export const defaultConfig = {
|
|
|
16
15
|
srcDir: 'src',
|
|
17
16
|
distDir: 'dist',
|
|
18
17
|
};
|
|
18
|
+
export const config = loadConfigWithDefault();
|
|
19
19
|
function loadConfigWithDefault() {
|
|
20
20
|
const configPath = path.join(process.cwd(), configFileName);
|
|
21
21
|
const config = loadConfig(configPath);
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "gasup",
|
|
3
|
-
"version": "0.3.
|
|
3
|
+
"version": "0.3.5",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"repository": {
|
|
6
6
|
"type": "git",
|
|
@@ -12,7 +12,8 @@
|
|
|
12
12
|
"main": "./dist/index.js",
|
|
13
13
|
"types": "./dist/index.d.ts",
|
|
14
14
|
"files": [
|
|
15
|
-
"dist"
|
|
15
|
+
"dist",
|
|
16
|
+
"assets"
|
|
16
17
|
],
|
|
17
18
|
"keywords": [
|
|
18
19
|
"gas",
|