Skip to content

Push JavaScript to GAS

This step pushes the GAS-compatible JS files to associated script projects in Google Apps Script.

Note: To use clasp to push files to gaslamp or pilotlamp project, 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/ and pilotlamp/ to GAS using Clasp.
  • Clasp settings are configured in gaslamp/.clasp.json and pilotlamp/.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.json
  • gaslamp/.claspignore
  • pilotlamp/.clasp.json
  • pilotlamp/.claspignore
  • Bundle — Bundle source for Google Apps Script
  • Release — Release a new version