Skip to content

Commit 28733a9

Browse files
committed
add csslint to watch task
1 parent bc49305 commit 28733a9

File tree

2 files changed

+7
-2
lines changed

2 files changed

+7
-2
lines changed

Gruntfile.js

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -184,17 +184,21 @@ module.exports = grunt => {
184184
'dist/*/_variables.scss',
185185
'dist/*/_bootswatch.scss'
186186
],
187-
tasks: 'build'
187+
tasks: ['build', 'shell:csslint']
188188
}
189189
},
190190
shell: {
191191
options: {
192-
stderr: false
192+
stderr: false,
193+
failOnError: false
193194
},
194195
rtlcss: {
195196
command: function (theme) {
196197
return `rtlcss dist/${theme}/bootstrap.css dist/${theme}/bootstrap.rtl.css`;
197198
}
199+
},
200+
csslint: {
201+
command: 'stylelint "dist/**/*.scss"'
198202
}
199203
}
200204
});

package-lock.json

Lines changed: 1 addition & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)