-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Use global PouchDB object instead of requiring module (#10)
This makes it easier to use in the browser: just add a script tag with the hosted pouchdb.min.js. It also makes it easier to use custom builds of PouchDB, like the pouchdb-node or pouchdb-browser builds. To be revisited when JavaScript modules are less of a mess. Surprised as I am, this seems like a problem functors (ML-style, on the module level) would solve. Also in this commit: - test against PouchDB to 6.4.2 - use make instead of pulp for building and running tests
- Loading branch information
1 parent
1085f81
commit dbfa2bc
Showing
3 changed files
with
14 additions
and
8 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
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,10 @@ | ||
.PHONY: test | ||
|
||
SOURCES = $(shell find src/) | ||
TEST_SOURCES = $(shell find test/) | ||
|
||
output/Test.Main/index.js: $(SOURCES) $(TEST_SOURCES) | ||
purs compile 'bower_components/*/src/**/*.purs' 'src/**/*.purs' 'test/**/*.purs' | ||
|
||
test: output/Test.Main/index.js | ||
node -e 'global.PouchDB = require("pouchdb");require("./output/Test.Main").main()' |
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