Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
94f8255
commit 6d5858c
Showing
21 changed files
with
53 additions
and
109 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,9 @@ | ||
language: node_js | ||
node_js: | ||
- "5.2" | ||
- "5.1" | ||
- "5.0" | ||
- "4.2" | ||
- "4.1" | ||
- "4.0" | ||
- "0.12" | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,43 +1,16 @@ | ||
BIN = ./node_modules/.bin | ||
PACKAGES = $(shell ls -1 ./packages/) | ||
|
||
SOURCES = \ | ||
./lib/*.js | ||
foreach_package = $(foreach pkg,$(PACKAGES),(cd packages/$(pkg) && $(1)) || exit 1;) | ||
|
||
all:: prepare testdist test dist todo | ||
.PHONY: bootstrap test | ||
|
||
prepare:: | ||
if [ ! -e dist/ ]; then mkdir dist; fi | ||
if [ ! -e node_modules ]; then mkdir node_modules; fi | ||
./links.sh | ||
npm install | ||
bootstrap: | ||
@npm install . | ||
@$(BIN)/lerna bootstrap | ||
|
||
clean: | ||
find . -name '*.min.js' | xargs rm -f ; | ||
rm dist/*.js ; | ||
rm -rf coverage ; | ||
|
||
test:: testdist | ||
node test/runner.js && rm -rf .test.* | ||
|
||
lint:: | ||
$(BIN)/jshint $(SOURCES) | ||
|
||
dist:: testdist html5dist nodedist | ||
|
||
html5dist: prepare | ||
$(BIN)/browserify lib/Html5Client.js -o dist/swarm-html5.js | ||
|
||
testdist: prepare | ||
$(BIN)/browserify test/Tests.js -o dist/swarm-tests.js | ||
|
||
nodedist: prepare | ||
$(BIN)/browserify lib/NodeServer.js -o dist/swarm-node.js | ||
|
||
commit:: all | ||
git diff --exit-code && git commit && echo "well, git push now" | ||
|
||
todo:: | ||
@echo === GROUND LEVEL BUG/ISSUE TRACKER === | ||
@git grep -w --color -n -P 'TO\DO|FIX\ME' | ||
@echo | ||
test: | ||
@$(call foreach_package, make test) | ||
|
||
clean: | ||
@$(call foreach_package, make clean) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
BIN = ../../node_modules/.bin | ||
.PHONY: install test clean | ||
|
||
test: | ||
@if [ -d "test" ]; then $(BIN)/tape test/*.js | $(BIN)/tap-spec; else true; fi; | ||
|
||
clean: | ||
@rm -rf node_modules |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
1.0.0 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
include ../../Makefile.package.in |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
include ../../Makefile.package.in |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
include ../../Makefile.package.in |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
include ../../Makefile.package.in |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
include ../../Makefile.package.in |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
include ../../Makefile.package.in |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
include ../../Makefile.package.in |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.