gdupont / less-monitor Goto Github PK
View Code? Open in Web Editor NEWMonitor and recompile your .less files and dependencies.
Monitor and recompile your .less files and dependencies.
Hi,
Everytime I run:
less-monitor
I got:
: No such file or directory
even when I run:
less-monitor --help
any idea how to fix it?
npm install less-monitor -g
).less-monitor -d styles/ -o buildfolder/ -m index.less -f
.less-monitor should compile LESS file "styles/index.less" with all its imports to "build/index.css" and continue to watch the file.
-f
option forces immediate compilation.$ less-monitor -d styles/ -o build/ -m index.less -f
[Sep-28 10:16:53] =============================================================
[Sep-28 10:16:53] > Finding index.less files
[Sep-28 10:16:53] =============================================================
[Sep-28 10:16:53] [Hint: Press Ctrl+C to quit.]
[Sep-28 10:16:53] Listing Done!
(node:336) DeprecationWarning: process.EventEmitter is deprecated. Use require('events') instead.
[Sep-28 10:16:53] Found index.less [+1 dependency]
[Sep-28 10:16:53] Watch started.
Quitting...
C:\Users\...\AppData\Roaming\npm\node_modules\less-monitor\node_modules\less\lib\less\parser\parser.js:117
imports.contents[fileInfo.filename] = str;
^
TypeError: Cannot read property 'contents' of undefined
at Object.parse (C:\Users\...\AppData\Roaming\npm\node_modules\less-monitor\node_modules\less\lib\less\parser\parser.js:117:20)
at .<anonymous> (C:\Users\...\AppData\Roaming\npm\node_modules\less-monitor\lib\app.js:533:9)
at tryToString (fs.js:455:3)
at FSReqWrap.readFileAfterClose [as oncomplete] (fs.js:442:12)
$ node -v
v6.7.0
$ npm -v
3.10.3
$ npm list -g | grep less
+-- [email protected]
| +-- [email protected]
$ npm list | grep less
+-- [email protected]
| | | | +-- [email protected]
On Windows 10.
I installed less-monitor on a new machine, and therefor got the latest less version 1.6.0. But now I get this error:
[Jan-13 10:50:26] Error parsing: test.less
[Jan-13 10:50:26] -------------------------------------------------------------
undefined_methodError: Object function (){
return lower;
} has no method 'charAt' in test.less on line null, column 0:
1
test.less
compiles fine with the less compiler.
If I change the less dependency version in package.json
to 1.5.1, then it works fine.
If I use your package I always get
npm WARN deprecated [email protected]: Please update to minimatch 3.0.2 or higher to avoid a RegExp DoS issue
At a seemingly random point during any project, I receive the following error:
Quitting...
events.js:72
throw er; // Unhandled 'error' event
^
Error: watch Unknown system errno 1450
at errnoException (fs.js:1019:11)
at FSEvent.FSWatcher._handle.onchange (fs.js:1037:26)
I am yet to find out what causes this error, as even when I undo the CSS changes I made to a point before I received the error, the error still appears and it completely prevents me from using less-monitor again for that project. I then have to revert to using the "simpless" application, which works fine. Any ideas as to what is causing this error to appear? I have tried uninstalling and reinstalling less-monitor several times - no change.
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.