Skip to content

HeRoMo/gas-ts-jest-eslint-sample

Repository files navigation

GAS Sample using Jest and ESLint

A Gas Appplication tenmplate with Jest unit tests and Linting by ESLint.

clasp

Setup

$ git clone https://github.com/HeRoMo/gas-ts-jest-eslint-sample.git
$ cd gas-ts-jest-eslint-sample
$ yarn 
$ clasp create --type sheets --rootDir src --title GasTsJestEslint

Push the codes and open in web editor

You can push the codes to GAS by the following command.

$ yarn clasp:push

And you can open your GAS project in web editor by the following command.

$ yarn clasp:open

Linting

Run the following command, you can check the codes by ESLint.

$ yarn lint

Testing

Run the following command, you can test the codes by jest locally.

$ yarn test

LICENSE

MIT