Skip to content

Commit 24b32af

Browse files
authored
Merge pull request #51 from diggy/grunt-i18n-unused-var-ignored-dirs
Grunt i18n: unused var, ignored dirs
2 parents 6c7b133 + e383719 commit 24b32af

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

templates/plugin-gruntfile.mustache

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
module.exports = function( grunt ) {
22
33
'use strict';
4-
var banner = '/**\n * <%= pkg.homepage %>\n * Copyright (c) <%= grunt.template.today("yyyy") %>\n * This file is generated automatically. Do not edit.\n */\n';
4+
55
// Project configuration
66
grunt.initConfig( {
77
@@ -15,7 +15,7 @@ module.exports = function( grunt ) {
1515
options: {
1616
updateDomains: true
1717
},
18-
src: [ '*.php', '**/*.php', '!node_modules/**', '!php-tests/**', '!bin/**' ]
18+
src: [ '*.php', '**/*.php', '!\.git/**/*', '!bin/**/*', '!node_modules/**/*', '!tests/**/*' ]
1919
}
2020
},
2121

@@ -31,6 +31,7 @@ module.exports = function( grunt ) {
3131
target: {
3232
options: {
3333
domainPath: '/languages',
34+
exclude: [ '\.git/*', 'bin/*', 'node_modules/*', 'tests/*' ],
3435
mainFile: '{{plugin_slug}}.php',
3536
potFilename: '{{plugin_slug}}.pot',
3637
potHeaders: {

0 commit comments

Comments
 (0)