Skip to content

Commit

Permalink
Improves watchman configuration
Browse files Browse the repository at this point in the history
Signed-off-by: Christopher Rogers <chrissrogers@gmail.com>
  • Loading branch information
chrissrogers committed Oct 15, 2015
1 parent e1458a1 commit 1e8c79d
Show file tree
Hide file tree
Showing 15 changed files with 17 additions and 20 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ node_modules
npm-debug.log

components/duo.json
components/duo-cache

build

Expand Down
10 changes: 10 additions & 0 deletions .watchman-triggers.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
[
"trigger",
"./",
{
"name": "rjs-build",
"command": ["make", "build"],
"stdout": ">./build/build.log",
"stderr": ">./build/error.log"
}
]
10 changes: 6 additions & 4 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -30,15 +30,17 @@ build/test.js: TESTFILE = $(foreach test, $(TESTS), 'require("./$(test)");')
build/test.js: $(TESTS)
@echo $(TESTFILE) | $(DUO) --quiet --use duo-babel --development --type js --stdout > $@

watch: node_modules
@watchman watch-del .
watch: unwatch node_modules
@watchman watch-project .
@watchman -- trigger . build -- make build
@watchman -j < .watchman-triggers.json

unwatch:
@watchman watch-del .

node_modules: package.json
@npm install --silent

clean:
@rm -rf node_modules components/duo.json build

.PHONY: test watch clean
.PHONY: test watch unwatch clean
Binary file removed components/duo-cache/000005.ldb
Binary file not shown.
Binary file removed components/duo-cache/000008.ldb
Binary file not shown.
Binary file removed components/duo-cache/000011.ldb
Binary file not shown.
Binary file removed components/duo-cache/000014.ldb
Binary file not shown.
Binary file removed components/duo-cache/000015.log
Binary file not shown.
Binary file removed components/duo-cache/000016.ldb
Binary file not shown.
1 change: 0 additions & 1 deletion components/duo-cache/CURRENT

This file was deleted.

Empty file removed components/duo-cache/LOCK
Empty file.
9 changes: 0 additions & 9 deletions components/duo-cache/LOG

This file was deleted.

5 changes: 0 additions & 5 deletions components/duo-cache/LOG.old

This file was deleted.

Binary file removed components/duo-cache/MANIFEST-000013
Binary file not shown.
1 change: 0 additions & 1 deletion lib/recurly/hosted-fields/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -47,4 +47,3 @@ HostedField.prototype.inject = function (sel) {
let container = window.document.querySelector(sel);
container.innerHTML = `<iframe src="http://api.lvh.me:3000/js/v1/field" frameborder="0"></iframe>`;
}

0 comments on commit 1e8c79d

Please sign in to comment.