-
Notifications
You must be signed in to change notification settings - Fork 558
Expand file tree
/
Copy pathMakefile
More file actions
34 lines (27 loc) · 768 Bytes
/
Makefile
File metadata and controls
34 lines (27 loc) · 768 Bytes
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
#!/usr/bin/env make
# SHELL := /bin/bash
# .SHELLFLAGS = -ec
.PHONY: install lint test build publish
# Puppeteer and config/cache directories
PUPPETEER_CACHE_DIR := $(CURDIR)/.puppeteer-cache
XDG_CONFIG_HOME := $(WORKSPACE)@tmp/.chromium
XDG_CACHE_HOME := $(WORKSPACE)@tmp/.chromium
install:
@echo "Running install..."
mkdir -p $(PUPPETEER_CACHE_DIR)
mkdir -p $(XDG_CONFIG_HOME)
mkdir -p $(XDG_CACHE_HOME)
XDG_CONFIG_HOME=$(XDG_CONFIG_HOME) \
XDG_CACHE_HOME=$(XDG_CACHE_HOME) \
PUPPETEER_CACHE_DIR=$(PUPPETEER_CACHE_DIR) \
PUPPETEER_SKIP_DOWNLOAD=true \
npm install
test:
@echo "Running test..."
npm run test
build:
@echo "Running build..."
rm -rf dist && rm -rf build && npm run build
publish:
@echo "Running cdn-publish..."
npm run publish:cdn