Skip to content

Commit

Permalink
Merge branch 'release/2.0.2'
Browse files Browse the repository at this point in the history
  • Loading branch information
asaquzzaman committed Jul 23, 2018
2 parents 63da720 + d9f9ebb commit cf496ec
Show file tree
Hide file tree
Showing 115 changed files with 23,766 additions and 31,415 deletions.
18 changes: 16 additions & 2 deletions Gruntfile.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,18 @@
'use strict';
module.exports = function(grunt) {
var pkg = grunt.file.readJSON('package.json');

var stringReplace = {
download_link: {
src: ['config/app.php'], // source files array (supports minimatch)
dest: 'config/app.php', // destination directory or file
replacements: [
{
from: '{github-download-version}', // string replacement
to:'v' + pkg.version
},
]
}
};
grunt.initConfig({
// Clean up build directory
clean: {
Expand Down Expand Up @@ -75,6 +86,8 @@ module.exports = function(grunt) {
}
},

replace: stringReplace,

run: {
options: {},

Expand Down Expand Up @@ -102,7 +115,7 @@ module.exports = function(grunt) {
grunt.loadNpmTasks( 'grunt-contrib-concat' );
grunt.loadNpmTasks( 'grunt-contrib-jshint' );
grunt.loadNpmTasks( 'grunt-wp-i18n' );
//grunt.loadNpmTasks( 'grunt-text-replace' );
grunt.loadNpmTasks( 'grunt-text-replace' );
//grunt.loadNpmTasks( 'grunt-contrib-uglify' );
grunt.loadNpmTasks( 'grunt-contrib-watch' );
grunt.loadNpmTasks( 'grunt-contrib-clean' );
Expand All @@ -118,6 +131,7 @@ module.exports = function(grunt) {
grunt.registerTask( 'zip', [
'clean',
'run',
'replace',
'copy',
'compress'
]);
Expand Down
Loading

0 comments on commit cf496ec

Please sign in to comment.