Skip to content

Commit

Permalink
Adde NJK to watch list
Browse files Browse the repository at this point in the history
  • Loading branch information
oleersoy committed May 5, 2019
1 parent abcad43 commit c1b9347
Show file tree
Hide file tree
Showing 3 changed files with 19 additions and 2 deletions.
17 changes: 17 additions & 0 deletions lib/commands/serve.js
Original file line number Diff line number Diff line change
Expand Up @@ -86,4 +86,21 @@ function gazeTestHtml(bs) {
});
});
});

function gazeTestNjk(bs) {
gaze(PLI.SRC_TEST_NJK, (err, watcher) => {
if (err) {
log("error", "Error buliding src/test/html content.");
throw new Error(err);
}

/**
* Triggered both when new files are added and when files are changed.
*/
watcher.on("changed", function(filepath) {
sth().then(() => {
bs.reload("*.html");
});
});
});
}
2 changes: 1 addition & 1 deletion package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
"name": "@superflycss/cli",
"author": "Ole Ersoy",
"license": "MIT",
"version": "4.1.8",
"version": "4.1.9",
"description": "SuperflyCSS Command Line Interface",
"main": "index.js",
"jest": {
Expand Down

0 comments on commit c1b9347

Please sign in to comment.