Skip to content

Commit ed8a623

Browse files
committed
Switch to Vite
1 parent 2a184d4 commit ed8a623

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

44 files changed

+3849
-12950
lines changed

Diff for: .eslintignore

-3
This file was deleted.

Diff for: .eslintrc.json

-53
This file was deleted.

Diff for: .gitignore

+3-2
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1-
node_modules/
2-
dist/
1+
node_modules
2+
.vscode/*
3+
!.vscode/extensions.json
34
.DS_Store

Diff for: README.md

-2
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,5 @@
11
# Google Apps Script Development 💯
22

3-
The Google Apps Script Starter kit supports the new **V8 JavaScript runtime** that powers Chrome and Node.js. You can write code using modern ECMAScript syntax like Arrow functions, Classes, Template Literals, Destructuring and more.
4-
53
![Google Apps Script Development with ES6](images/google-apps-script-development.png)
64

75
Please follow the 👉 **[step-by-step video tutorial](https://www.youtube.com/watch?v=KxdCIbeO4Uk)** 👈 for quickly getting started with Apps Script development inside Visual Studio Code. It is recommended that you install the [Extension Pack](https://marketplace.visualstudio.com/items?itemName=labnol.google-apps-script) for working with Apps Script files in VS Code.

Diff for: TOOLS.md

+2-6
Original file line numberDiff line numberDiff line change
@@ -6,13 +6,9 @@ The Google Apps Script Starter kit uses these tools under the hood.
66

77
All the required extensions are available through the [Google Apps Script Extensions Pack](https://marketplace.visualstudio.com/items?itemName=labnol.google-apps-script) for VSCode.
88

9-
#### Babel
9+
#### Vite
1010

11-
Write code using ES6 features like arrow functions, destructuring, classes, template literals, and the Babel transpiler will transform your ECMAScript 2015/2017 code to ES5 that Apps Script can understand.
12-
13-
#### Webpack
14-
15-
Webpack is a powerful tool for bundling JavaScript modules. Developers can structure code in directory and Webpack creates a minimized and optimized bundle for pushing to production.
11+
Vite is a build tool that is fast, lightweight and has a simple configuration. Vite is used to bundle the code and deploy it to Google Apps Script.
1612

1713
#### ESLint
1814

Diff for: appsscript.json

+1-9
Original file line numberDiff line numberDiff line change
@@ -32,13 +32,5 @@
3232
"executeAs": "USER_ACCESSING"
3333
},
3434
"exceptionLogging": "STACKDRIVER",
35-
"oauthScopes": [
36-
"https://www.googleapis.com/auth/gmail.send",
37-
"https://www.googleapis.com/auth/drive.file",
38-
"https://www.googleapis.com/auth/script.external_request",
39-
"https://www.googleapis.com/auth/script.scriptapp",
40-
"https://www.googleapis.com/auth/script.send_mail",
41-
"https://www.googleapis.com/auth/spreadsheets",
42-
"https://www.googleapis.com/auth/script.container.ui"
43-
]
35+
"oauthScopes": ["https://www.googleapis.com/auth/gmail.send"]
4436
}

Diff for: babel.config.js

-3
This file was deleted.

Diff for: clasp.json

+1
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
{ "scriptId": "<DEV_PROJECT_ID>", "rootDir": "dist/gas" }

Diff for: dist/appsscript.json

+36
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,36 @@
1+
{
2+
"timeZone": "Asia/Calcutta",
3+
"runtimeVersion": "V8",
4+
"dependencies": {
5+
"enabledAdvancedServices": [
6+
{
7+
"userSymbol": "Gmail",
8+
"serviceId": "gmail",
9+
"version": "v1"
10+
},
11+
{
12+
"userSymbol": "Drive",
13+
"serviceId": "drive",
14+
"version": "v2"
15+
}
16+
],
17+
"libraries": [
18+
{
19+
"userSymbol": "OAuth1",
20+
"libraryId": "1CXDCY5sqT9ph64fFwSzVtXnbjpSfWdRymafDrtIZ7Z_hwysTY7IIhi7s",
21+
"version": "18"
22+
},
23+
{
24+
"userSymbol": "OAuth2",
25+
"libraryId": "1B7FSrk5Zi6L1rSxxTDgDEUsPzlukDsi4KGuTMorsTQHhGBzBkMun4iDF",
26+
"version": "38"
27+
}
28+
]
29+
},
30+
"webapp": {
31+
"access": "ANYONE",
32+
"executeAs": "USER_ACCESSING"
33+
},
34+
"exceptionLogging": "STACKDRIVER",
35+
"oauthScopes": ["https://www.googleapis.com/auth/gmail.send"]
36+
}

0 commit comments

Comments
 (0)