Skip to content

Commit 5391a24

Browse files
committed
Add makefile
1 parent d80ac71 commit 5391a24

File tree

2 files changed

+44
-5
lines changed

2 files changed

+44
-5
lines changed

Makefile

Lines changed: 44 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,44 @@
1+
# Makefile for building the project
2+
3+
app_name=logreader
4+
project_dir=$(CURDIR)/../$(app_name)
5+
build_dir=$(project_dir)/build
6+
appstore_dir=$(build_dir)/appstore
7+
package_name=$(app_name)
8+
9+
all: appstore
10+
11+
clean:
12+
rm -rf $(build_dir)
13+
rm -rf node_modules
14+
15+
install-deps: install-npm-deps
16+
17+
install-npm-deps:
18+
npm install --production
19+
20+
install-npm-deps-dev:
21+
npm install --deps
22+
23+
optimize-js: install-npm-deps install-bower-deps
24+
npm run build
25+
26+
dev-setup: install-npm-deps-dev
27+
28+
appstore: clean install-deps optimize-js package
29+
30+
package:
31+
mkdir -p $(appstore_dir)
32+
tar --exclude-vcs \
33+
--exclude=$(appstore_dir) \
34+
--exclude=$(project_dir)/node_modules \
35+
--exclude=$(project_dir)/webpack \
36+
--exclude=$(project_dir)/.gitattributes \
37+
--exclude=$(project_dir)/.gitignore \
38+
--exclude=$(project_dir)/.travis.yml \
39+
--exclude=$(project_dir)/.scrutinizer.yml \
40+
--exclude=$(project_dir)/CONTRIBUTING.md \
41+
--exclude=$(project_dir)/package.json \
42+
--exclude=$(project_dir)/Makefile \
43+
-cvzf $(appstore_dir)/$(package_name).tar.gz $(project_dir) \
44+

gulpfile.js

Lines changed: 0 additions & 5 deletions
This file was deleted.

0 commit comments

Comments
 (0)