20 lines
390 B
Bash
Executable File
20 lines
390 B
Bash
Executable File
#!/bin/bash
|
|
|
|
# Lint EJS files
|
|
for f in $(find ./layout -name "*.ejs"); do
|
|
echo $f;
|
|
node_modules/.bin/ejslint $f;
|
|
done
|
|
|
|
# Lint CSS files
|
|
for f in $(find ./source/ -name "*.css" | grep -v ".min.css"); do
|
|
echo $f;
|
|
node_modules/.bin/sass-lint -v -q $f;
|
|
done
|
|
|
|
# Lint JS files
|
|
for f in $(find ./source/ -name "*.js" | grep -v ".min.js"); do
|
|
echo $f;
|
|
node_modules/.bin/eslint $f;
|
|
done
|