No description, website, or topics provided.
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
src
.clasp.json.example
.gitignore
README.md
jsconfig.json
package-lock.json
package.json
tslint.json

README.md

gas-typescript

Create Google Apps Script by TypeScript, TSLint, and Prettier.

How to create this repository

$ mkdir gas-typescript
$ cd gas-typescript
$ git init .
$ hub create
$ npm init -y
$ npm i -S @google/clasp tslint
$ npm i -S @types/google-apps-script @types/node

Add jsconfig.json

{
  "compilerOptions": {
    "lib": ["esnext"]
  }
}
$ npm i -D tslint-config-prettier
$ npm i -D tslint-plugin-prettier

Add tslint.json

{
    "defaultSeverity": "error",
    "extends": [
        "tslint:recommended",
        "tslint-config-prettier"
    ],
    "jsRules": {},
    "rules": {
        "semicolon": [
            true,
            "always"
        ],
        "prettier": true,
        "no-console": [
            false
        ]
    },
    "rulesDirectory": [
        "tslint-plugin-prettier"
    ]
}

Create Apps script project on web.

$ clasp create --title "TypeScript sample" --type sheets --rootDir ./src
$ clasp pull

Add .gitignore

node_modules/
.vscode/
.clasp.json