1
0
Fork 0
mirror of https://github.com/wallabag/wallabag.git synced 2025-08-26 18:21:02 +00:00

Add eslint & stylelint tests (fix a few things) and move dependencies to dev

This commit is contained in:
Thomas Citharel 2016-10-04 12:14:28 +02:00
parent f440e28281
commit 9f7d154e34
No known key found for this signature in database
GPG key ID: 5780691F5FE48FB5
14 changed files with 96 additions and 82 deletions

View file

@ -198,6 +198,13 @@ module.exports = function (grunt) {
src: ['./<%= releaseDir %>/*'],
}
},
eslint: {
target: ['<%= appDir %>/themes/material/js/init.js', '<%= appDir %>/themes/baggy/js/init.js']
},
stylelint: {
target: ['<%= appDir %>/themes/material/css/*.css', '<%= appDir %>/themes/baggy/css/*.css']
}
});
grunt.registerTask(
@ -223,4 +230,10 @@ module.exports = function (grunt) {
'Compiles the stylesheets.',
['clean:css', 'concat:cssMaterial', 'concat:cssBaggy', 'postcss']
);
grunt.registerTask(
'tests',
'Test css and js style conformity',
['eslint', 'stylelint']
)
};