Comments (4)
@grandehombre Thanks for this. It'd be great if you can share a zip of the dir structure so I can recreate this problem easily. Let me know.
from deadsimple-less-watch-compiler.
Hi Jony,
Please find attached a ZIP with a test environment for the issue I reported.
Briefly,
- I ran the test.bat file which launches less-watch-compiler
- I created the output dir (dooda) as expected, processing the file in the
libraries directory - I did not process the files in the 1140grid directory.
- When I made changes to libraries\fisheye.less, it detected the change and
recompiled it in real-time. - However, it did not detect any changes to any files in libraries/1140grid.
I have also attached my modified version of less-watch-compiler that does
traverse through all the subdirectories, as well as a version that
processes js files and minifies them.
Both those files accept a single parameter (the source directory), due to
the fact the the source files can now live in different levels of a dir
tree.
The output files are placed in the same dir as the source files.
My version of the less compiler compiles less-->CSS and then also compressesit.
Feel free to use my modified files as you see fit.
Many thanks for your work, it has been a great help!
Cheers,
Nick
ps: Gmail won't allow batch files in zips. Please rename test.batdooda to
test.bat
On Fri, Nov 1, 2013 at 4:47 PM, Jony Cheung [email protected]:
@grandehombre https://github.com/grandehombre Thanks for this. It'd be
great if you can share a zip of the dir structure so I can recreate this
problem easily. Let me know.—
Reply to this email directly or view it on GitHubhttps://github.com//issues/2#issuecomment-27548878
.
Cheers,
Nick Damoulakis
http://blog.nickdamoulakis.com/
from deadsimple-less-watch-compiler.
Hi Jony,
Since my last email, I've made some more changes to the scripts.
They now both support a 'target' directory.
The js-watch-compile scipt will compile .js files from the source dir and
store the minified result in the target dir, maintaining the directory
structure.
the less-watch-compile script will compile LESS files from the source dir and
store the resulting CSS file in the same dir.
It will then minify the CSS file (in the source dir) and store the result
in the target dir, maintaining the directory structure.
================== how the target dir works
Consider a dir structure as follows
---Source directory tree
here/myDir/js
here/myDir/js/1
here/myDir/js/2
here/myDir/js/3
here/myDir/js/4
--- and we want everything found in there to be minified and copied into
here/myDir/js_min
The code below calculates a relative path to the target, so that it can
copy things into
here/myDir/js_min
here/myDir/js_min/1
here/myDir/js_min/2
here/myDir/js_min/3
here/myDir/js_min/4
Cheers,
Nick
On Fri, Nov 1, 2013 at 7:48 PM, nick's public email
[email protected]:
Hi Jony,
Please find attached a ZIP with a test environment for the issue I
reported.Briefly,
- I ran the test.bat file which launches less-watch-compiler
- I created the output dir (dooda) as expected, processing the file in
the libraries directory- I did not process the files in the 1140grid directory.
- When I made changes to libraries\fisheye.less, it detected the change
and recompiled it in real-time.- However, it did not detect any changes to any files in
libraries/1140grid.I have also attached my modified version of less-watch-compiler that does
traverse through all the subdirectories, as well as a version that
processes js files and minifies them.
Both those files accept a single parameter (the source directory), due to
the fact the the source files can now live in different levels of a dir
tree.
The output files are placed in the same dir as the source files.
My version of the less compiler compiles less-->CSS and then also
compresses it.Feel free to use my modified files as you see fit.
Many thanks for your work, it has been a great help!Cheers,
Nickps: Gmail won't allow batch files in zips. Please rename test.batdooda to
test.batOn Fri, Nov 1, 2013 at 4:47 PM, Jony Cheung [email protected]:
@grandehombre https://github.com/grandehombre Thanks for this. It'd be
great if you can share a zip of the dir structure so I can recreate this
problem easily. Let me know.—
Reply to this email directly or view it on GitHubhttps://github.com//issues/2#issuecomment-27548878
.Cheers,
Nick Damoulakis
http://blog.nickdamoulakis.com/
Cheers,
Nick Damoulakis
http://blog.nickdamoulakis.com/
from deadsimple-less-watch-compiler.
I have made some significant updates just now to this library and incorporated most of your suggestions here. Thanks again.
from deadsimple-less-watch-compiler.
Related Issues (20)
- A small inaccuracy in the sample configuration file: less-watch-compiler.config.json HOT 1
- Can't use `rgba()` to modify a var HOT 4
- Node.js v14 Warning: Accessing non-existent property ___ of module exports inside circular dependency HOT 2
- Feature: Option "recursive" HOT 4
- Feature: --run-initially flag to compile once and then watch HOT 2
- .less extension in @import is not optional in watch mode under some file structures HOT 1
- less-watch-compiler.config.json not being loaded HOT 3
- --config switch no longer works HOT 2
- --run-once parameter is not working anymore HOT 2
- Dependency Dashboard
- Current version of less breaks media query aspect ratios HOT 8
- documentation on npm addition HOT 1
- Error if less file has space in name HOT 1
- Exlcude node_modules? HOT 1
- Unable to detect new directories
- Can't run "less-watch-compiler" command anymore HOT 2
- Feature: Option to include warning message in compiled CSS file
- less compilation with css-modules
- MaxListenersExceededWarning
- Remove unused dependency - opencollective ? HOT 12
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from deadsimple-less-watch-compiler.