Skip to content

Commit

Permalink
Merge branch 'release/2.3.3'
Browse files Browse the repository at this point in the history
  • Loading branch information
tareq1988 committed Jun 24, 2015
2 parents e83e3cf + 518bd7d commit 279a38a
Show file tree
Hide file tree
Showing 14 changed files with 1,075 additions and 429 deletions.
3 changes: 2 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -6,4 +6,5 @@ export.sh
/.DS_Store
nbproject
node_modules
includes/pro
includes/pro
build
73 changes: 73 additions & 0 deletions Gruntfile.js
Original file line number Diff line number Diff line change
Expand Up @@ -52,6 +52,74 @@ module.exports = function(grunt) {
}
},

// Clean up build directory
clean: {
main: ['build/']
},

// Copy the plugin into the build directory
copy: {
main: {
src: [
'**',
'!node_modules/**',
'!build/**',
'!bin/**',
'!.git/**',
'!includes/pro/.git/**',
'!Gruntfile.js',
'!package.json',
'!debug.log',
'!phpunit.xml',
'!.gitignore',
'!.gitmodules',
'!npm-debug.log',
'!plugin-deploy.sh',
'!export.sh',
'!config.codekit',
'!nbproject/*',
'!assets/less/**',
'!tests/**',
'!**/Gruntfile.js',
'!**/package.json',
'!**/README.md',
'!**/*~'
],
dest: 'build/'
}
},

replace: {
example: {
src: ['build/wpuf.php'],
dest: 'build/wpuf.php',
replacements: [
{
from: 'WP User Frontend',
to: 'WP User Frontend Pro'
},
{
from: 'https://wordpress.org/plugins/wp-user-frontend/',
to: 'https://wedevs.com/products/plugins/wp-user-frontend-pro/'
}
]
}
},

//Compress build directory into <name>.zip and <name>-<version>.zip
compress: {
main: {
options: {
mode: 'zip',
archive: './build/wp-user-frontend-pro.zip'
},
expand: true,
cwd: 'build/',
src: ['**/*'],
dest: 'wp-user-frontend-pro'
}
},

});

// Load NPM tasks to be used here
Expand All @@ -64,8 +132,13 @@ module.exports = function(grunt) {
grunt.loadNpmTasks( 'grunt-contrib-clean' );
grunt.loadNpmTasks( 'grunt-contrib-copy' );
grunt.loadNpmTasks( 'grunt-contrib-compress' );
grunt.loadNpmTasks( 'grunt-text-replace' );

grunt.registerTask( 'default', [
'makepot',
]);

grunt.registerTask( 'zip', [
'clean', 'copy', 'replace', 'compress'
]);
};
Loading

0 comments on commit 279a38a

Please sign in to comment.