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 linkObtain 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 ~/.bashrcThen generate your new project:
yo generator-gas-localizer# (in project dir)
npm run setupWhen this command is executed, project/ is deployed.
# (in project dir)
npm run updateWhen this command is executed, it will be deployed when public/ is changed.
# (in project dir)
npm run watchExecuting this command will start the livereload server. chrome extension
# (in project dir)
npm run livereloadMIT © NakajimaTakuya