-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathMakefile
34 lines (26 loc) · 831 Bytes
/
Makefile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
SHELL := /bin/bash
DEV_DEPENDENCIES := web-ext prettier
build:
web-ext build -s ./src -n build.zip --overwrite-dest
cd src && tar -czf ../web-ext-artifacts/build.tar.gz ./*
lint:
web-ext lint -s src/
publish:
web-ext sign \
--source-dir src \
--api-key $(ADDONS_MOZ_JWT_ISSUER) --api-secret $(ADDONS_MOZ_JWT_SECRET) \
--channel listed \
--approval-timeout 0 \
--amo-metadata ./amo-metadata.json
dev:
python3 -m venv venv/ && \
. venv/bin/activate && \
pip install nodeenv && \
nodeenv nenv && \
. nenv/bin/activate && \
npm install --global $(DEV_DEPENDENCIES)
@echo "Node virtual environment is set up. To continue working, activate the virtual environment with:"
@echo " source nenv/bin/activate"
valid:
npx prettier src/ --write --ignore-path .prettierignore
.PHONY: build lint publish dev valid