Skip to content

Commit 2c38786

Browse files
committed
add parse platform build
1 parent 2840156 commit 2c38786

File tree

3 files changed

+2461
-0
lines changed

3 files changed

+2461
-0
lines changed

parse/Makefile

Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
include ../Makefile.inc
2+
3+
OUTPUT_FILES=$(PUBNUB_JS)
4+
PLATFORM=Parse
5+
6+
.PHONY: all
7+
all: build
8+
9+
.PHONY: build
10+
build: $(PUBNUB_JS)
11+
12+
$(PUBNUB_JS): $(PUBNUB_COMMON_JS) $(PUBNUB_NODE_JS)
13+
$(ECHO) "// Version: $(VERSION)" > $(PUBNUB_JS)
14+
cat $(PUBNUB_COMMON_JS) $(PUBNUB_PLATFORM_JS) >> $(PUBNUB_JS)
15+
sed -i -e "s/\"version\"\: \".*\"/\"version\"\: \"$(VERSION)\"/g" $(PACKAGE_JSON)
16+
sed -i -e "s/VERSION/\'$(VERSION)\'/g" $(PUBNUB_JS)
17+
sed -i -e "s/PLATFORM/\'$(PLATFORM)\'/g" $(PUBNUB_JS)
18+
19+
.PHONY: clean
20+
clean:
21+
rm -f $(OUTPUT_FILES)
22+
23+
.PHONY: test
24+
test:
25+
mocha -R spec tests/test.js
26+
27+
include ../Makefile.post

0 commit comments

Comments
 (0)