diff --git a/Gruntfile.js b/Gruntfile.js index 5e4aba0..f88b628 100644 --- a/Gruntfile.js +++ b/Gruntfile.js @@ -30,7 +30,7 @@ module.exports = function (grunt) { {flatten: true, expand: true, cwd: '../jquery.mb.browser/inc/', src: ['jquery.mb.browser.min.js'], dest: 'src/dep/'}, {flatten: true, expand: true, cwd: '../jquery.mb.storage/inc/', src: ['jquery.mb.storage.min.js'], dest: 'src/dep/'}, {flatten: true, expand: true, cwd: '../jquery.mb.CSSAnimate/inc/', src: ['jquery.mb.CSSAnimate.min.js'], dest: 'src/dep/'}, - {flatten: true, expand: true, cwd: '../jquery.mb.simpleSlider/inc/', src: ['jquery.mb.simpleSlider.js'], dest: 'src/dep/'}, + {flatten: true, expand: true, cwd: '../jquery.mb.simpleSlider/inc/', src: ['jquery.mb.simpleSlider.min.js'], dest: 'src/dep/'}, {flatten: false, expand: true, cwd: 'src/css/font/', src: ['**'], dest: 'dist/css/font/'}, {flatten: false, expand: true, cwd: 'src/css/images/', src: ['**'], dest: 'dist/css/images/'}, {flatten: true, expand: true, cwd: 'src/', src: ['index.tmpl'], dest: 'dist/', @@ -41,6 +41,23 @@ module.exports = function (grunt) { ] } }, + replace: { + dist: { + options: { + patterns: [ + { + match: /browser/g, + replacement: function () { + return 'mbBrowser'; // replaces "foo" to "bar" + } + } + ] + }, + files: [ + {expand: true, flatten: true, src: ['dist/jquery.mb.YTPlayer.js'], dest: 'dist/'} + ] + } + }, concat: { options: { @@ -209,11 +226,12 @@ module.exports = function (grunt) { grunt.loadNpmTasks('grunt-contrib-cssmin'); grunt.loadNpmTasks("grunt-jsbeautifier"); grunt.loadNpmTasks('grunt-strip-code'); + grunt.loadNpmTasks('grunt-replace'); grunt.loadNpmTasks('grunt-build-number'); grunt.loadNpmTasks('grunt-bump'); grunt.loadNpmTasks('grunt-contrib-watch'); - grunt.registerTask('default', ['buildnumber', 'copy', 'concat', 'strip_code', 'uglify', 'cssmin', 'includereplace']); //'jsbeautifier', + grunt.registerTask('default', ['buildnumber', 'copy', 'concat', 'strip_code', 'uglify', 'replace', 'cssmin', 'includereplace']); //'jsbeautifier', 'replace' }; diff --git a/bower.json b/bower.json index 8f0b8b1..d1629d2 100644 --- a/bower.json +++ b/bower.json @@ -1,6 +1,6 @@ { "name": "jquery.mb.ytplayer", - "version": "3.3.8", + "version": "3.3.9", "homepage": "http://pupunzi.open-lab.com/mb-jquery-components/jquery-mb-ytplayer", "authors": [ "pupunzi " @@ -22,5 +22,5 @@ "test", "tests" ], - "buildnum": "7566" + "buildnum": "7581" } \ No newline at end of file diff --git a/dist/index.html b/dist/index.html index 8a638d9..3a54648 100644 --- a/dist/index.html +++ b/dist/index.html @@ -3,8 +3,8 @@ file: index.tmpl last modified: 10/25/18 8:00 PM - Version: 3.3.8 - Build: 7566 + Version: 3.3.9 + Build: 7581 Open Lab s.r.l., Florence - Italy email: matteo@open-lab.com @@ -27,9 +27,9 @@ youtube Chromeless Player - mb.YTPlayer - + - +