Git Product home page Git Product logo

Comments (4)

jonycheung avatar jonycheung commented on August 18, 2024

@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.

grandehombre avatar grandehombre commented on August 18, 2024

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.

grandehombre avatar grandehombre commented on August 18, 2024

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,
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/

Cheers,
Nick Damoulakis
http://blog.nickdamoulakis.com/

from deadsimple-less-watch-compiler.

jonycheung avatar jonycheung commented on August 18, 2024

Hi @grandehombre

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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.