forked from jordwest/news-feed-eradicator
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMakefile
More file actions
30 lines (24 loc) · 687 Bytes
/
Copy pathMakefile
File metadata and controls
30 lines (24 loc) · 687 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
.PHONY: all clean install dev copy-assets
# The current git tag is used as the version number
GITTAG=$(shell git describe --always --tag)
BIN=$(shell yarn bin)
build: install copy-assets
mkdir -p build
NODE_ENV=production ./node_modules/.bin/rollup -c
mkdir -p dist
(cd build && zip -r ../dist/NewsFeedEradicator_$(GITTAG).zip .)
copy-assets:
mkdir -p build
cp src/manifest.json build/manifest.json
cp assets/icon16.jpg build/icon16.jpg
cp assets/icon48.jpg build/icon48.jpg
cp assets/icon128.jpg build/icon128.jpg
dev: install copy-assets
mkdir -p build
./node_modules/.bin/rollup -c --watch
install:
npm install
clean:
rm -rf dist
rm -rf build
rm -rf node_modules