-
Notifications
You must be signed in to change notification settings - Fork 51
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add tests for CSS validation #19
Comments
Not interested in purify because that is a build tool, we only want validation tools now. Let's use CSSLint. Have you checked for a Ruby wrapper? |
I found one wrapper, but it's not maintained more than 5 years, I think it's not a problem becouse we can run it with sh like this: desc "Validate css files under css folder"
task :css_lint do
unless system('which csslint')
puts "csslint is not installed\nrun npm install -g csslint"
exit(1)
end
sh "csslint #{@build_dir}css/*.css"
end |
Let's wait until we find a more robust solution.
is too manual. I really do not want to add install steps for the end user. |
What about this one: https://github.com/w3c-validators/w3c_validators |
Yes, that looks good! |
Just a note: In this library we can validate either string (css) or css file, we can not validate css inside html file without extracting it. |
That is an interesting idea, but not in scope for now. |
You want to implement directly in lighting sites? |
Right now we just want to validate .css files using an off-the-shelf library. We do not want to validate css inside html files. |
Added PR: fulldecent/lightning-sites#20 |
Discussion
There is probably already a tool for this we can use.
The text was updated successfully, but these errors were encountered: