Skip to content

Commit

Permalink
Formatting
Browse files Browse the repository at this point in the history
  • Loading branch information
nickcernis committed Sep 13, 2018
1 parent b4da938 commit 952a112
Showing 1 changed file with 55 additions and 55 deletions.
110 changes: 55 additions & 55 deletions Gruntfile.js
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
module.exports = function(grunt) {
module.exports = function (grunt) {
grunt.initConfig({
pkg: grunt.file.readJSON('package.json'),
pkg: grunt.file.readJSON('package.json'),
phpcs: {
application: {
src: ['./*.php']
src: ['./*.php']
},
options: {
bin: 'vendor/bin/phpcs',
bin: 'vendor/bin/phpcs',
}
},

Expand All @@ -20,35 +20,35 @@ module.exports = function(grunt) {
}]
},
files: [
{ src: ['<%= pkg.main_plugin_file %>.php'], dest: './'}
]
{ src: ['<%= pkg.main_plugin_file %>.php'], dest: './' }
]
}
},

// copying files to create the zip file
copy: {
// excluding not necessary files
main: {
src: [
'**',
'!node_modules/**',
'!build/**',
'!vendor/**',
'!.git/**',
'!composer.json',
'!composer.lock',
'!package-lock.json',
'!Gruntfile.js',
'!package.json',
'!.gitignore',
'!.gitmodules',
'!**/Gruntfile.js',
'!**/package.json',
'!README.md',
'!**/*~'
],
dest: 'build/<%= pkg.name %>/'
},
main: {
src: [
'**',
'!node_modules/**',
'!build/**',
'!vendor/**',
'!.git/**',
'!composer.json',
'!composer.lock',
'!package-lock.json',
'!Gruntfile.js',
'!package.json',
'!.gitignore',
'!.gitmodules',
'!**/Gruntfile.js',
'!**/package.json',
'!README.md',
'!**/*~'
],
dest: 'build/<%= pkg.name %>/'
},
},

// build zip file
Expand All @@ -69,34 +69,34 @@ module.exports = function(grunt) {
},

// Check correct text domain is last argument of i18n functions.
checktextdomain: {
options: {
text_domain: '<%= pkg.name %>',
keywords: [
'__:1,2d',
'_e:1,2d',
'_x:1,2c,3d',
'_ex:1,2c,3d',
'_n:1,2,4d',
'_nx:1,2,4c,5d',
'_n_noop:1,2,3d',
'_nx_noop:1,2,3c,4d',
'esc_attr__:1,2d',
'esc_html__:1,2d',
'esc_attr_e:1,2d',
'esc_html_e:1,2d',
'esc_attr_x:1,2c,3d',
'esc_html_x:1,2c,3d'
]
},
files: {
expand: true,
src: [
'*.php',
'lib/**/*.php'
]
}
},
checktextdomain: {
options: {
text_domain: '<%= pkg.name %>',
keywords: [
'__:1,2d',
'_e:1,2d',
'_x:1,2c,3d',
'_ex:1,2c,3d',
'_n:1,2,4d',
'_nx:1,2,4c,5d',
'_n_noop:1,2,3d',
'_nx_noop:1,2,3c,4d',
'esc_attr__:1,2d',
'esc_html__:1,2d',
'esc_attr_e:1,2d',
'esc_html_e:1,2d',
'esc_attr_x:1,2c,3d',
'esc_html_x:1,2c,3d'
]
},
files: {
expand: true,
src: [
'*.php',
'lib/**/*.php'
]
}
},

// Check 'tested up to' headers against latest WordPress and WooCommerce.
wptools: {
Expand Down

0 comments on commit 952a112

Please sign in to comment.