Skip to content

Commit

Permalink
Renamed reload to watch. Added WATCH flag.
Browse files Browse the repository at this point in the history
  • Loading branch information
borbit committed Nov 4, 2013
1 parent f08152e commit 8035734
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 2 deletions.
2 changes: 1 addition & 1 deletion bin/nv
Original file line number Diff line number Diff line change
Expand Up @@ -135,7 +135,7 @@ function init(engine) {
files[bpDir + 'cmn.json'] = join(c.PAGES_ROOT, 'cmn.json');
files[bpDir + 'mix.less'] = join(lessRootDir, 'mix.less');
files[bpDir + 'cmn.less'] = join(lessRootDir, 'cmn.less');
files[bpDir + 'reload.js'] = join(jsLibsDir, 'reload.js');
files[bpDir + 'watch.js'] = join(jsLibsDir, 'watch.js');
files[bpDir + 'sock.js'] = join(jsLibsDir, 'sock.js');
files[bpDir + 'less.js'] = join(jsLibsDir, 'less.js');
copyFiles(files, cb);
Expand Down
4 changes: 3 additions & 1 deletion bp/layout_foot.ejs
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,9 @@
<!-- js for the development env -->
<script src="/js/libs/sock.js"></script>
<script src="/js/libs/less.js"></script>
<script src="/js/libs/reload.js"></script>
<% if (config.WATCH) { -%>
<script src="/js/libs/watch.js"></script>
<% } %>
<% if (check(assets.cmn.js_base)) { -%>
<!-- js cmn base -->
<%- js(assets.cmn.js_base) -%>
Expand Down
File renamed without changes.
4 changes: 4 additions & 0 deletions lib/server.js
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,10 @@ module.exports = function(op, cb) {
});
});

// Set flag in the config that says we
// ran "watch" server
config.WATCH = true;

io.installHandlers(server, {
prefix: '/io'
});
Expand Down

0 comments on commit 8035734

Please sign in to comment.