forked from ysugimoto/aws-lambda-image
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMakefile
More file actions
32 lines (27 loc) · 965 Bytes
/
Makefile
File metadata and controls
32 lines (27 loc) · 965 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
.PHONY: test clean configtest
lambda:
@echo "Factory package files..."
@if [ ! -d build ] ;then mkdir build; fi
@cp index.js build/index.js
@cp config.json build/config.json
@if [ ! -d build/node_modules ] ;then mkdir build/node_modules; fi
@cp -R node_modules/aws-sdk build/node_modules/
@cp -R node_modules/xmlbuilder build/node_modules/
@cp -R node_modules/sax build/node_modules/
@cp -R node_modules/xml2js build/node_modules/
@cp -R node_modules/es6-promise build/node_modules/
@cp -R node_modules/imagemagick build/node_modules/
@cp -R libs build/
@cp -R bin build/
@rm -rf build/bin/darwin
@echo "Create package archive..."
@cd build && zip -rq aws-lambda-image.zip .
@mv build/aws-lambda-image.zip ./
test:
./node_modules/mocha/bin/_mocha -R spec --timeout 10000 tests/*.test.js
configtest:
@./bin/configtest
clean:
@echo "clean up package files"
@if [ -f aws-lambda-image.zip ]; then rm aws-lambda-image.zip; fi
@rm -rf build/*