commit
42e64f61dd
10
Gruntfile.js
10
Gruntfile.js
|
@ -130,8 +130,7 @@ module.exports = function( grunt ) {
|
|||
potFilename: 'woocommerce.pot',
|
||||
exclude: [
|
||||
'includes/admin/.*',
|
||||
'apigen/.*',
|
||||
'deploy/.*'
|
||||
'apigen/.*'
|
||||
],
|
||||
processPot: function ( pot ) {
|
||||
pot.headers['project-id-version'] += ' Frontend';
|
||||
|
@ -178,7 +177,6 @@ module.exports = function( grunt ) {
|
|||
src: [
|
||||
'**/*.php', // Include all files
|
||||
'!apigen/**', // Exclude apigen/
|
||||
'!deploy/**', // Exclude deploy/
|
||||
'!node_modules/**' // Exclude node_modules/
|
||||
],
|
||||
expand: true
|
||||
|
@ -194,7 +192,7 @@ module.exports = function( grunt ) {
|
|||
apigen: {
|
||||
command: [
|
||||
'cd apigen/',
|
||||
'php apigen.php --source ../ --destination ../wc-apidocs --download yes --template-config ./templates/woodocs/config.neon --title "WooCommerce" --exclude "*/mijireh/*" --exclude "*/includes/libraries/*" --exclude "*/api/*" --exclude "*/i18n/*" --exclude "*/node_modules/*" --exclude "*/deploy/*" --exclude "*/apigen/*" --exclude "*/wc-apidocs/*"'
|
||||
'php apigen.php --source ../ --destination ../wc-apidocs --download yes --template-config ./templates/woodocs/config.neon --title "WooCommerce" --exclude "*/mijireh/*" --exclude "*/includes/libraries/*" --exclude "*/api/*" --exclude "*/i18n/*" --exclude "*/node_modules/*" --exclude "*/apigen/*" --exclude "*/wc-apidocs/*"'
|
||||
].join( '&&' )
|
||||
}
|
||||
},
|
||||
|
@ -209,14 +207,14 @@ module.exports = function( grunt ) {
|
|||
|
||||
// Load NPM tasks to be used here
|
||||
grunt.loadNpmTasks( 'grunt-shell' );
|
||||
grunt.loadNpmTasks( 'grunt-wp-i18n' );
|
||||
grunt.loadNpmTasks( 'grunt-checktextdomain' );
|
||||
grunt.loadNpmTasks( 'grunt-contrib-jshint' );
|
||||
grunt.loadNpmTasks( 'grunt-contrib-uglify' );
|
||||
grunt.loadNpmTasks( 'grunt-contrib-sass' );
|
||||
grunt.loadNpmTasks( 'grunt-contrib-cssmin' );
|
||||
grunt.loadNpmTasks( 'grunt-contrib-watch' );
|
||||
grunt.loadNpmTasks( 'grunt-contrib-clean' );
|
||||
grunt.loadNpmTasks( 'grunt-wp-i18n' );
|
||||
grunt.loadNpmTasks( 'grunt-checktextdomain' );
|
||||
|
||||
// Register tasks
|
||||
grunt.registerTask( 'default', [
|
||||
|
|
14
package.json
14
package.json
|
@ -9,17 +9,17 @@
|
|||
},
|
||||
"main": "Gruntfile.js",
|
||||
"devDependencies": {
|
||||
"grunt": "~0.4.5",
|
||||
"grunt": "^0.4.5",
|
||||
"grunt-checktextdomain": "^0.1.1",
|
||||
"grunt-contrib-clean": "~0.6.0",
|
||||
"grunt-contrib-cssmin": "~0.10.0",
|
||||
"grunt-contrib-clean": "^0.6.0",
|
||||
"grunt-contrib-cssmin": "^0.10.0",
|
||||
"grunt-contrib-jshint": "^0.10.0",
|
||||
"grunt-contrib-uglify": "~0.5.1",
|
||||
"grunt-contrib-watch": "~0.6.1",
|
||||
"grunt-contrib-sass": "^0.8.1",
|
||||
"grunt-contrib-uglify": "^0.5.1",
|
||||
"grunt-contrib-watch": "^0.6.1",
|
||||
"grunt-shell": "^1.1.1",
|
||||
"grunt-wp-i18n": "^0.4.8",
|
||||
"grunt-contrib-sass": "^0.8.1",
|
||||
"node-bourbon": "~1.0.0"
|
||||
"node-bourbon": "^1.2.3"
|
||||
},
|
||||
"engines": {
|
||||
"node": ">=0.8.0",
|
||||
|
|
Loading…
Reference in New Issue