Push JavaScript to GAS¶
This step pushes the GAS-compatible JS files to associated script projects in Google Apps Script.
Note: To use
claspto push files togaslamporpilotlampproject, you must be logged in with a Google account that has edit access to the corresponding Apps Script project. If you're contributing to this repository, please start by submitting improvements to the GitLab repository. Access to GAS will be considered based on your contributions.
Bash
task clasp:push:all
- Pushes JS files in
gaslamp/andpilotlamp/to GAS using Clasp. - Clasp settings are configured in
gaslamp/.clasp.jsonandpilotlamp/.clasp.json.
Push individually¶
Bash
# Only push to gaslamp
task clasp:push:gaslamp
# Only push to pilotlamp
task clasp:push:pilotlamp
Login to clasp¶
If you are using clasp for the first time, authenticate first:
Bash
clasp login
References¶
gaslamp/.clasp.jsongaslamp/.claspignorepilotlamp/.clasp.jsonpilotlamp/.claspignore