Comments (11)
Can you take a stab at building a task (or tasks) for these?
from grunt.
There is a task already created for less here: https://github.com/tbranyen/build-tasks/tree/master/less
from grunt.
Thanks @tbranyen. Nice to see a project already doing this. Unfortunately, it does both the less and compressing in one task. They should be broken into separate tasks.
I'd certainly be happy to work on this when I get a chance.
from grunt.
Absolutely agree with that. It should be decoupled.
from grunt.
For quite specific libraries, like LESS, does it make more sense to have a simple plugin system or maintain a repository of user-contributed extensions? I may be wrong, but this doesn't feel like it should be in the core build tool.
I use LESS for a lot of projects, but I also have projects where it'd be an unneeded extra :)
from grunt.
there is a task for less.js that's pretty decent.
https://github.com/mklabs/gruntfiles/blob/master/tasks/less.js
from grunt.
I have a task that I wrote for stylus:
https://github.com/errcw/gruntfiles/blob/master/tasks/stylus.js
But I agree with @rowanmanning that the right approach is likely not to include ten kitchen sinks of tasks in grunt itself but rather to provide some mechanism of easily pulling in user-contributed tasks (and for that, perhaps ~/.grunt is sufficient?).
from grunt.
@tauren minification isn't enforced in that task, but it is an option.
from grunt.
In case anyone comes here looking for an npm task for LESS (like I initially did), I've created grunt-less.
from grunt.
If anything, this belongs in the upcoming grunt-contrib plugin.
from grunt.
already in there! i just haven't pushed it to npm yet.
from grunt.
Related Issues (20)
- options.process is undefined even though it's in the options block HOT 1
- grunt.file.copy not compatible with grunt-contrib-copy in case of copying symlink HOT 4
- Getting Started with Grunt HOT 3
- start testing 3 latest stable branches HOT 1
- Removal of support for a NodeJS version is a breaking change - major bump? HOT 2
- grunt v1.6.0 throwing error "SyntaxError: Unexpected token '.'" through npm rimraf package. HOT 6
- Latest version of grunt failing if we use path.join for windows HOT 2
- fix for windows incompatibility issue HOT 1
- Regarding Grunt Version 1.6.0 Release
- Regarding Grunt Version 1.6.0 Release HOT 2
- Add an option to copy task for symlinks
- file.mkdir does not create intermediate directories any more
- watchtask callback not firing for the very first time
- + ~~~~~~~~~~~~~~~~~~~ [<<==>>] Exception: Grunt Errord\Grunt.ps HOT 1
- fix : Change twitter icon to new one 'X' HOT 5
- Security Policy needs updating HOT 1
- Issue launching grunt after upgrading to Angular 16 due to locate-path versions HOT 2
- Overeager files interpretation in multi-tasks
- Grunt fails on the mac with nodejs 21.1.0 version
- Onboarding Grunt To OpenJS ESP Program
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 grunt.