1
0
Fork 0
mirror of https://github.com/Luzifer/gmail-manage.git synced 2024-11-08 15:30:10 +00:00

Document build in a makefile

Signed-off-by: Knut Ahlers <knut@ahlers.me>
This commit is contained in:
Knut Ahlers 2018-10-22 14:38:34 +02:00
parent 40e5c8e2ad
commit 3e32c76865
Signed by: luzifer
GPG key ID: DC2729FDD34BE99E
2 changed files with 9 additions and 1 deletions

8
Makefile Normal file
View file

@ -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"

View file

@ -11,7 +11,7 @@ You can define:
- Create a `config.js` from the `config.sample.js` - Create a `config.js` from the `config.sample.js`
- Get yourself a configured [clasp](https://github.com/google/clasp) - 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 - 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 - 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`.) 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`.)