Skip to content

Commit 47ee833

Browse files
committed
Switched pkg to package
Related to #7
1 parent 12d9523 commit 47ee833

File tree

5 files changed

+11
-11
lines changed

5 files changed

+11
-11
lines changed

config/grunt/addtextdomain.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
// https://github.com/blazersix/grunt-wp-i18n
22
module.exports = {
33
options: {
4-
textdomain: '<%= pkg.textdomain %>',
4+
textdomain: '<%= package.textdomain %>',
55
updateDomains: [ 'all' ]
66
},
77
php: {

config/grunt/compress.js

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
module.exports = {
33
dist: {
44
options: {
5-
archive: '<%= paths.dist %><%= pkg.name %>-<%= pkg.version %>.zip'
5+
archive: '<%= paths.dist %><%= package.name %>-<%= package.version %>.zip'
66
},
77
files: [
88
{
@@ -28,13 +28,13 @@ module.exports = {
2828
'!gruntfile.js',
2929
'!package.json'
3030
], // Take this...
31-
dest: '<%= pkg.name %>' // ...put it into this, then zip that up as ^^^
31+
dest: '<%= package.name %>' // ...put it into this, then zip that up as ^^^
3232
}
3333
]
3434
},
3535
dev: {
3636
options: {
37-
archive: '<%= paths.dist %><%= pkg.name %>-developer-<%= pkg.version %>.zip'
37+
archive: '<%= paths.dist %><%= package.name %>-developer-<%= package.version %>.zip'
3838
},
3939
files: [
4040
{
@@ -50,7 +50,7 @@ module.exports = {
5050
'!*.sublime*',
5151
'!.DS_Store'
5252
], // Take this...
53-
dest: '<%= pkg.name %>' // ...put it into this, then zip that up as ^^^
53+
dest: '<%= package.name %>' // ...put it into this, then zip that up as ^^^
5454
}
5555
]
5656
}

config/grunt/makepot.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -8,9 +8,9 @@ module.exports = {
88
],
99
potHeaders: {
1010
poedit: true,
11-
'report-msgid-bugs-to': '<%= pkg.pot.reportmsgidbugsto %>',
12-
'last-translator': '<%= pkg.pot.lasttranslator %>',
13-
'language-team': '<%= pkg.pot.languageteam %>'
11+
'report-msgid-bugs-to': '<%= package.pot.reportmsgidbugsto %>',
12+
'last-translator': '<%= package.pot.lasttranslator %>',
13+
'language-team': '<%= package.pot.languageteam %>'
1414
},
1515
type: 'wp-theme'
1616
}

config/grunt/version.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
// https://github.com/kswedberg/grunt-version
22
module.exports = {
33
options: {
4-
pkg: {
5-
version: '<%= pkg.version %>'
4+
package: {
5+
version: '<%= package.version %>'
66
}
77
},
88
project: {

tasks/readpkg.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,6 @@ module.exports = function( grunt ) {
33
'use strict';
44

55
grunt.registerTask( 'readpkg', function() {
6-
grunt.config.set( 'pkg', grunt.file.readJSON( './package.json' ) );
6+
grunt.config.set( 'package', grunt.file.readJSON( './package.json' ) );
77
});
88
};

0 commit comments

Comments
 (0)