Skip to content

Commit 64355a2

Browse files
committed
UPD Deps
1 parent e5c1cb2 commit 64355a2

File tree

4 files changed

+1029
-60
lines changed

4 files changed

+1029
-60
lines changed

Gruntfile.js

Lines changed: 54 additions & 54 deletions
Original file line numberDiff line numberDiff line change
@@ -1,56 +1,56 @@
1-
module.exports = function( grunt ) {
2-
3-
'use strict';
4-
5-
// Project configuration
6-
grunt.initConfig( {
7-
8-
pkg: grunt.file.readJSON( 'package.json' ),
9-
10-
addtextdomain: {
11-
options: {
12-
textdomain: 'wp-disable-image-sizes',
13-
},
14-
update_all_domains: {
15-
options: {
16-
updateDomains: true
17-
},
18-
src: [ '*.php', '**/*.php', '!\.git/**/*', '!bin/**/*', '!node_modules/**/*', '!tests/**/*' ]
19-
}
20-
},
21-
22-
wp_readme_to_markdown: {
23-
your_target: {
24-
files: {
25-
'README.md': 'readme.txt'
26-
}
27-
},
28-
},
29-
30-
makepot: {
31-
target: {
32-
options: {
33-
domainPath: '/languages',
34-
exclude: [ '\.git/*', 'bin/*', 'node_modules/*', 'tests/*' ],
35-
mainFile: 'wp-disable-image-sizes.php',
36-
potFilename: 'wp-disable-image-sizes.pot',
37-
potHeaders: {
38-
poedit: true,
39-
'x-poedit-keywordslist': true
40-
},
41-
type: 'wp-plugin',
42-
updateTimestamp: true
43-
}
44-
}
45-
},
46-
} );
47-
48-
grunt.loadNpmTasks( 'grunt-wp-i18n' );
49-
grunt.loadNpmTasks( 'grunt-wp-readme-to-markdown' );
50-
grunt.registerTask( 'default', [ 'i18n','readme' ] );
51-
grunt.registerTask( 'i18n', ['addtextdomain', 'makepot'] );
52-
grunt.registerTask( 'readme', ['wp_readme_to_markdown'] );
53-
54-
grunt.util.linefeed = '\n';
1+
module.exports = function ( grunt ) {
2+
3+
'use strict';
4+
5+
// Project configuration
6+
grunt.initConfig({
7+
8+
pkg: grunt.file.readJSON('package.json'),
9+
10+
addtextdomain: {
11+
options: {
12+
textdomain: 'wp-disable-image-sizes',
13+
},
14+
update_all_domains: {
15+
options: {
16+
updateDomains: true
17+
},
18+
src: [ '*.php', '**/*.php', '!\.git/**/*', '!bin/**/*', '!node_modules/**/*', '!tests/**/*' ]
19+
}
20+
},
21+
22+
wp_readme_to_markdown: {
23+
your_target: {
24+
files: {
25+
'README.md': 'readme.txt'
26+
}
27+
},
28+
},
29+
30+
makepot: {
31+
target: {
32+
options: {
33+
domainPath: '/languages',
34+
exclude: [ '\.git/*', 'bin/*', 'node_modules/*', 'tests/*' ],
35+
mainFile: 'wp-disable-image-sizes.php',
36+
potFilename: 'wp-disable-image-sizes.pot',
37+
potHeaders: {
38+
poedit: true,
39+
'x-poedit-keywordslist': true
40+
},
41+
type: 'wp-plugin',
42+
updateTimestamp: true
43+
}
44+
}
45+
},
46+
});
47+
48+
grunt.loadNpmTasks('grunt-wp-i18n');
49+
grunt.loadNpmTasks('grunt-wp-readme-to-markdown');
50+
grunt.registerTask('default', [ 'i18n','readme' ]);
51+
grunt.registerTask('i18n', ['addtextdomain', 'makepot']);
52+
grunt.registerTask('readme', ['wp_readme_to_markdown']);
53+
54+
grunt.util.linefeed = '\n';
5555

5656
};

README.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22

33
`wp-disable-image-sizes` plugin completely and for real disables WordPress & plugins image sizes generation.
44

5+
+ Supports `woocommerce` and any other plugins
56
+ No need for configuration. Activate and go
67
+ Tested with `Wordpress 5.7.2` & `php 8.0`
78
+ Only 3 lines of code

package.json

Lines changed: 7 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,17 @@
1-
21
{
32
"name": "wp-disable-image-sizes",
43
"version": "0.1.0",
54
"main": "Gruntfile.js",
65
"author": "YOUR NAME HERE",
7-
"scripts" : {
8-
"start" : "grunt default" ,
9-
"readme" : "grunt readme",
10-
"i18n" : "grunt i18n"
6+
"scripts": {
7+
"start": "yarn readme",
8+
"run": "grunt default",
9+
"readme": "grunt readme",
10+
"i18n": "grunt i18n",
11+
"upgrade": "yarn upgrade"
1112
},
1213
"devDependencies": {
13-
"grunt": "~0.4.5",
14+
"grunt": "^1.4.1",
1415
"grunt-wp-i18n": "~0.5.0",
1516
"grunt-wp-readme-to-markdown": "~1.0.0"
1617
}

0 commit comments

Comments
 (0)