duojs / watch Goto Github PK
View Code? Open in Web Editor NEWWatch for any changes in the file dependency tree and rebuild from the entry file.
Watch for any changes in the file dependency tree and rebuild from the entry file.
Hi
I have the following error:
Object.keys(this.dirRegistery[dir]).forEach(function(file, i, arr) {
^
TypeError: Object.keys called on non-object
This should fix it:
Is it possible someone can update to the latest version of sane?
I keep running into this error when trying to watch my app directory. Specifically, I'm using the duo command duo -w -r client app.js > build.js
. I think part of the problem is that the root
folder also contains the components
folder, increasing the 'watched' files substantially...
FYI I'm running node 0.11.13 on Yosemite dp5
path.js:0
(function (exports, require, module, __filename, __dirname) { // Copyright Joy
^
RangeError: Maximum call stack size exceeded
at RegExp.exec (native)
at splitPath (path.js:313:24)
at exports.basename (path.js:465:11)
at slug (/usr/local/lib/node_modules/duo/node_modules/duo-watch/lib/duo-watch.js:251:23)
at find (/usr/local/lib/node_modules/duo/node_modules/duo-watch/lib/duo-watch.js:244:42)
at Watch.manifest (/usr/local/lib/node_modules/duo/node_modules/duo-watch/lib/duo-watch.js:208:14)
at Watch.deps (/usr/local/lib/node_modules/duo/node_modules/duo-watch/lib/duo-watch.js:101:10)
at Watch.deps (/usr/local/lib/node_modules/duo/node_modules/duo-watch/lib/duo-watch.js:104:10)
at Watch.deps (/usr/local/lib/node_modules/duo/node_modules/duo-watch/lib/duo-watch.js:104:10)
at Watch.deps (/usr/local/lib/node_modules/duo/node_modules/duo-watch/lib/duo-watch.js:104:10)
at Watch.deps (/usr/local/lib/node_modules/duo/node_modules/duo-watch/lib/duo-watch.js:104:10)
don't watch the same directory twice
...and if so, should we continue to support it?
/cc @duojs/owners
List of annoyances that cause you to have to rebuild:
require(...)
then add the dependency to the component.json
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.