gas-slack2notion is a starter kit to post messages via Google Sheets from Slack to Notion.
Check out this article when you use this template.
👉 How to build a knowledge system with Slack and Notion
- 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
Install Clasp at the first if you haven't done it yet.
npm install -g @google/clasp
npx clasp login
Clone this repository and install dependencies.
yarn install
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 token and database id.
NOTION_TOKEN=<YOUR_NOTION_TOKEN>
DATABASE_ID=<YOUR_DATABASE_ID>
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