Overview:
The gas-vue-boilerplate is a boilerplate for developing web apps with Google Apps Script. It allows for local development using modern development tools such as TypeScript, Webpack, Vue.js, Vuetify, gas-test, and CI/CD with GitHub Actions.
Features:
- Local development with modern tools including TypeScript, Webpack, Vue.js, and Vuetify.
- gas-test for testing Google Apps Script functions remotely.
- CI/CD integration with GitHub Actions for pushing and running scripts on Apps Script.
Installation:
To use gas-vue-boilerplate, follow the steps below:
- Create a Google Apps Script project for tests.
- Navigate to the
backenddirectory. - Create a
gas-test.jsonfile.- Note: Add any scopes values used by your test script.
- Open your GCP project with a browser.
- Create an OAuth Client ID (Other) and download it as
creds.json. - Run the command
yarn gas-test auth creds.jsonto authenticate with the downloaded credentials.- Save the generated file as
gas-test-credentials.json. - Note:
gas-test-credentials.jsonshould be kept private.
- Save the generated file as
- Enable Apps Script API.
- Enable any APIs used by the script.
- Make sure the following code is in your
appsscript.jsonfile and push it. - Run the command
yarn testto execute tests.
For more detailed information, refer to the usage guide of gas-test.
Summary:
The gas-vue-boilerplate is a powerful boilerplate for developing web apps with Google Apps Script. It provides a variety of features such as local development with modern tools, testing and CI/CD integration. By following the installation guide, developers can easily set up and start developing web apps with ease.