Contributions are welcome! To contribute, fork this repository and create a pull request with your changes.
- Please create (or link to) an issue before creating a pull request. Your changes are more likely to be pulled in after we discuss implementation, scope, etc. in the issue.
- Please be responsive to change requests on your pull request.
- Have you all the appropriate dependencies (after
git clone)?- Install all packages from
package.jsonwith a barenpm install.
- Install all packages from
- Have you tested the code yourself?
- Install clasp
npm install --global @google/clasp - Log into your Google Account
clasp login - Create/Clone Apps Script Project to link and set file extension to "ts". Example
.clasp.jsonfile:{ "scriptId": "1yIYw-your-scriptID-here-las12jsA2sd", "fileExtension": "ts" }
- Add storable credentials to your script to connect to your Firestore database.
- Add test methods to
Tests.tsfile which validates your change. GSUnit Reference - Debug/Test your code against your database.
- Install clasp
- Have you documented your functions and their parameters and return values with JSDoc?
- Have you modernized the code to run with the new V8 Runtime?
- Have you privatized or encapsulated all intended functions in a class?
- Global functions can be privatized by appending the "
_" to the function name.
- Global functions can be privatized by appending the "
- Have you ensured all the appropriate Typescript Definitions are available?
- Does your code follow the Prettier Javascript Style?
- Check syntax and style in one go with
npm run lint. - Autofix most issues with
npm run fix.
- Check syntax and style in one go with