diff options
author | Thomas Citharel <tcit@tcit.fr> | 2016-10-04 12:14:28 +0200 |
---|---|---|
committer | Thomas Citharel <tcit@tcit.fr> | 2016-10-04 12:14:28 +0200 |
commit | 9f7d154e3451f1ccc1d69f0013e98acf4639c63b (patch) | |
tree | 760b565a0c6bc7001b945d4d79fb5ffb84948550 /Gruntfile.js | |
parent | f440e282819a1e92e3200cf2e588fc9a0c1278ac (diff) | |
download | wallabag-9f7d154e3451f1ccc1d69f0013e98acf4639c63b.tar.gz wallabag-9f7d154e3451f1ccc1d69f0013e98acf4639c63b.tar.zst wallabag-9f7d154e3451f1ccc1d69f0013e98acf4639c63b.zip |
Add eslint & stylelint tests (fix a few things) and move dependencies to dev
Diffstat (limited to 'Gruntfile.js')
-rw-r--r-- | Gruntfile.js | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/Gruntfile.js b/Gruntfile.js index a19f2940..e52cd16f 100644 --- a/Gruntfile.js +++ b/Gruntfile.js | |||
@@ -198,6 +198,13 @@ module.exports = function (grunt) { | |||
198 | src: ['./<%= releaseDir %>/*'], | 198 | src: ['./<%= releaseDir %>/*'], |
199 | } | 199 | } |
200 | }, | 200 | }, |
201 | eslint: { | ||
202 | target: ['<%= appDir %>/themes/material/js/init.js', '<%= appDir %>/themes/baggy/js/init.js'] | ||
203 | }, | ||
204 | stylelint: { | ||
205 | target: ['<%= appDir %>/themes/material/css/*.css', '<%= appDir %>/themes/baggy/css/*.css'] | ||
206 | } | ||
207 | |||
201 | }); | 208 | }); |
202 | 209 | ||
203 | grunt.registerTask( | 210 | grunt.registerTask( |
@@ -223,4 +230,10 @@ module.exports = function (grunt) { | |||
223 | 'Compiles the stylesheets.', | 230 | 'Compiles the stylesheets.', |
224 | ['clean:css', 'concat:cssMaterial', 'concat:cssBaggy', 'postcss'] | 231 | ['clean:css', 'concat:cssMaterial', 'concat:cssBaggy', 'postcss'] |
225 | ); | 232 | ); |
233 | |||
234 | grunt.registerTask( | ||
235 | 'tests', | ||
236 | 'Test css and js style conformity', | ||
237 | ['eslint', 'stylelint'] | ||
238 | ) | ||
226 | }; | 239 | }; |