diff --git a/Makefile b/Makefile new file mode 100644 index 0000000..ce75144 --- /dev/null +++ b/Makefile @@ -0,0 +1,8 @@ +default: + +build: + docker run --rm -i \ + -v "$(CURDIR):$(CURDIR)" \ + -w "$(CURDIR)" \ + node:10-alpine \ + sh -exc "npm ci && npm run build && rm -rf node_modules && chown $(shell id -u):$(shell id -g) app.js" diff --git a/README.md b/README.md index 2152cbd..117f3af 100644 --- a/README.md +++ b/README.md @@ -11,7 +11,7 @@ You can define: - Create a `config.js` from the `config.sample.js` - Get yourself a configured [clasp](https://github.com/google/clasp) - Create a Google Apps-Script project and activate the Gmail API in the corresponding GCP Project -- Execute `npm ci && npm run build` to generate the App-Script version of the code +- Execute `make build` to generate the App-Script version of the code - Execute a `clasp push` to upload the source code into your project If everything went well you now should have your `config.js` and an `app.js` inside your App-Script project. (In the web-UI they are called `.gs` files instead of `.js`.)