mirror of
https://github.com/Luzifer/gmail-manage.git
synced 2024-12-22 20:11:21 +00:00
Document build in a makefile
Signed-off-by: Knut Ahlers <knut@ahlers.me>
This commit is contained in:
parent
40e5c8e2ad
commit
3e32c76865
2 changed files with 9 additions and 1 deletions
8
Makefile
Normal file
8
Makefile
Normal 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"
|
|
@ -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`.)
|
||||||
|
|
Loading…
Reference in a new issue