# install google clasp (Command Line Apps Script Projects)
npm i -g @google/clasp
# create a .clasp.json file
cat .clasp.json.sample > .clasp.json
scriptId
in .clasp.json
. The script ID can be retrieved from your Apps Script project under Project Settings
.appsscript.json
file from your Apps Script project and replace the existing one in dist/appsscript.json
. This file is hidden by default in an Apps Script project. To show it, go to your Apps Script project Project Settings
and check Show "appscript.json" manifest file in the editor
. The file will now show in the Editor
.# login to google to allow permissions
clasp login
# install dependencies
npm i
# build the project and push to your apps script project
npm run build:push
# when asked `Manifest file has been updated. Do you want to push and overwrite? y/N`, enter y then press Enter
Deploy
Web app
as deployment type.Deploy
.To open the URL for development:
Deploy
again.Test deployments