gas-sheets2slack is a starter kit to post messages from Google sheets to slack.
Check out this article when you use this template.
👉 How to make a reminder posts messages from Google Sheets to Slack
- Just deploy this project code without development
- Develop Locally with TypeScript and Clasp
- Bundle your files with Webpack
- Lint your code with ESLint
- Format your code with prettier
- Built-in test runner with Jest
Note: Create an app in slack and get the webhook URL from the dashboard.
Clone this repository and install dependencies.
yarn install
yarn clasp login
Create a .clasp.json
at the root, and then Add these settings.
Open App script from your spreadsheet and check out a script Id at the setting page.
{
"scriptId": "<SCRIPT_ID>",
"rootDir": "./dist"
}
Create a .env at the root, and then add your SLACK_WEBHOOK_URL
.
SLACK_WEBHOOK_URL=<SLACK_WEBHOOK_URL>
Deploy your code to the existing project.
yarn deploy
Build your project.
yarn build
Build your project files and force writes all local files to script.google.com.
yarn deploy
Open the current directory's clasp project on script.google.com.
yarn open
Test project's code
yarn test
yarn test:watch
MIT