develop google apps script in local machine.
First, install Yeoman and generator-gas-localizer using npm (we assume you have pre-installed node.js).
npm install -g yo
git clone https://github.com/lifull-dev/generator-gas-localizer.git
cd generator-gas-localizer
npm install
npm link
Obtain OAuth 2.0 credentials from the Google API Console. Then set client id and secret in your shell file. and source it.
export GAS_LOCALIZER_CLIENT_ID=xxxxxx
export GAS_LOCALIZER_CLIENT_SECRET=xxxxxx
source ~/.bashrc
Then generate your new project:
yo generator-gas-localizer
# (in project dir)
npm run setup
When this command is executed, project/
is deployed.
# (in project dir)
npm run update
When this command is executed, it will be deployed when public/
is changed.
# (in project dir)
npm run watch
Executing this command will start the livereload server. chrome extension
# (in project dir)
npm run livereload
MIT © NakajimaTakuya