Skip to content

Commit

Permalink
Merge bc699e4 into 61d725b
Browse files Browse the repository at this point in the history
  • Loading branch information
edg2s committed Oct 3, 2019
2 parents 61d725b + bc699e4 commit 80a9cfe
Show file tree
Hide file tree
Showing 3 changed files with 14 additions and 23 deletions.
1 change: 1 addition & 0 deletions templates/.gitignore.twig
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
.eslintcache
23 changes: 7 additions & 16 deletions templates/Gruntfile.js.twig
Original file line number Diff line number Diff line change
Expand Up @@ -4,38 +4,29 @@ module.exports = function ( grunt ) {
var conf = grunt.file.readJSON( 'extension.json' );
grunt.loadNpmTasks( 'grunt-banana-checker' );
grunt.loadNpmTasks( 'grunt-eslint' );
grunt.loadNpmTasks( 'grunt-jsonlint' );
grunt.loadNpmTasks( 'grunt-stylelint' );

grunt.initConfig( {
eslint: {
options: {
reportUnusedDisableDirectives: true
reportUnusedDisableDirectives: true,
extensions: [ '.js', '.json' ],
cache: true
},
all: [
'*.js',
'modules/**/*.js'
'*.{js,json}',
'modules/**/*.{js,json}'
]
},
stylelint: {
options: {
syntax: 'less'
},
all: [
'*.{css,less}',
'modules/**/*.{css,less}'
]
},
banana: conf.MessagesDirs,
jsonlint: {
all: [
'*.json',
'**/*.json',
'!node_modules/**'
]
}
banana: conf.MessagesDirs
} );

grunt.registerTask( 'test', [ 'eslint', 'stylelint', 'jsonlint', 'banana' ] );
grunt.registerTask( 'test', [ 'eslint', 'stylelint', 'banana' ] );
grunt.registerTask( 'default', 'test' );
};
13 changes: 6 additions & 7 deletions templates/package.json.twig
Original file line number Diff line number Diff line change
Expand Up @@ -2,12 +2,11 @@
"name": "{{ name }}",
"version": "{{ version }}",
"devDependencies": {
"eslint-config-wikimedia": "0.9.0",
"grunt": "1.0.3",
"grunt-banana-checker": "0.6.0",
"grunt-eslint": "21.0.0",
"grunt-jsonlint": "1.1.0",
"grunt-stylelint": "0.10.1",
"stylelint-config-wikimedia": "0.5.0"
"eslint-config-wikimedia": "0.14.3",
"grunt": "1.0.4",
"grunt-banana-checker": "0.8.1",
"grunt-eslint": "22.0.0",
"grunt-stylelint": "0.11.1",
"stylelint-config-wikimedia": "0.6.0"
}
}

0 comments on commit 80a9cfe

Please sign in to comment.