https://developers.google.com/apps-script/guides/clasp
Using gas-local to test: https://github.com/mzagorny/gas-local
Run npm test
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
clasp login
It reads off the "HEAD" deployment - which is Development Mode
clasp push
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>
clasp open