Google(NASDAQ:GOOG) Apps Script 4 Developerslabnol.org #Apps_Script

Google(NASDAQ:GOOG) Apps Script 4 Developerslabnol.org #Apps_Script

April 21, 2019 0 By NewsTakers


The build and deployment process can be completely automated with npm scripts and CLASP, Google’s command line utility for Apps Script.
The Starter kit is a boilerplate for quickly getting started with local Apps Script development locally inside VS Code.
Clone the Github repository to a local folder
Create a new Google Apps Script project in your Google Drive with CLASP
This command will create a new .clasp.json file in your project folder that links the local folder with your Apps Script project.
During build, Webpack will bundle all your code in a single JavaScript file and add it to the ./dist folder that Clasp will push to your Apps Script project.
Next, open the current project folder inside VS Code with the code .
Inside the src folder, create a new file – email.js – and write a simple arrow function that prints a list of all the email addresses connected to your Gmail account.
After the deployment is complete, open the associated script in the browser with the CLASP open command.
Next, open the terminal and run the following commands to push your Apps Script project to Github.

Source link