paazmaya / grunt-trimtrailingspaces Goto Github PK
View Code? Open in Web Editor NEWGrunt task for trimming trailing spaces from each line of the selected files
License: MIT License
Grunt task for trimming trailing spaces from each line of the selected files
License: MIT License
When path for the src option starts with the "#" sign, I'm getting the following error:
Warning: Unable to read "undefined" file (Error code: ENOENT)
Here's my path: src: ['#work/db/**/*.sql']
My Grunt's version is v0.4.5.
Is this an issue with Grunt?
I looked in the source and didn't see it used...
I'm running your grunt task with the following options:
trimtrailingspaces: {
extensions: ['js', 'css', 'html'],
directories: ['.', 'Html5Controls/ControlSamples/Release'],
encoding: 'utf8'
}
When the task runs i get...
Running "trimtrailingspaces" task
to: wrong arguments
The task does seem to function correctly but I'm wondering why i get this error?
Can it be configured to specific files?
Include things like Node.js version, npm version, Grunt version, OS, ...
Package should support latest grunt version 1.5.x
grunt version 1.5.3, which doesn't satisfy what grunt-trimtrailingspaces requests
Thank you and have some ๐.
I was trying to use the githooks grunt plugin to run tests and the trimtrailingspaces plugin in the pre-commit hook. It works great, except that trimtrailingspaces passes even if it finds whitespace to trim. This means I have a bunch of files with nothing but whitespace removed from them marked as modified after the commit (which goes through).
It'd be really nice to have setting that tells this plugin to fail the task if whitespace was removed (after all files are processed), so that I have a chance to add the files into the commit and try again.
I'm actually going to code this up real quick, so look for the pull request soon. ;)
Start testing against io.js, http://docs.travis-ci.com/user/build-environment-updates/2015-02-03/#io.js-support
This is very useful for including my whole app, except the libraries / js 'binaries' I use. Something similar to how grunt-contrib-jshint
does it:
...
files: ['Gruntfile.js', 'app/**/*.js'],
options: {
ignores: ['app/lib/**/*.js'],
}
...
I can try and add this in the next few weeks if you want.
Hi! I'm using Grunt 1.2.1, but I can't install your package, because you hard-coded to use Grunt ~1.1
only. It would be great if you will not put such strict limitations. Thank you!
Currently tests are missing....
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.