Skip to content

Latest commit

 

History

History
56 lines (44 loc) · 1.27 KB

README.md

File metadata and controls

56 lines (44 loc) · 1.27 KB

google-finance-helpers

clasp

Clasp Docs

https://developers.google.com/apps-script/guides/clasp

Testing Locally

Using gas-local to test: https://github.com/mzagorny/gas-local

Run Tests

Run npm test

Create a Clasp Project Settings File

Create a .clasp.json file. This file is not committed to source control.

{
  "scriptId": "YOUR_SCRIPT_ID_HERE",
  "rootDir": "src/"
}

More info here Clasp Project Settings

Login to Clasp

clasp login

Deploy latest changes to the google sheets document

It reads off the "HEAD" deployment - which is Development Mode

clasp push

Deploy a new version to be used as a library

This can be referenced from another Google Apps Scripts project. You can reference a library by the version that was last deployed https://developers.google.com/apps-script/concepts/deployments

clasp push
clasp deploy -V [version] -d [description]
clasp deployments

Other commands:

clasp versions
clasp undeploy <deploymentId>
clasp redeploy <deploymentId> <version> <description>

Open the project on Google Apps Script

clasp open