Skip to content

Commit

Permalink
Release v3.3.9 stable
Browse files Browse the repository at this point in the history
  • Loading branch information
pupunzi committed Jan 23, 2021
1 parent e42dbab commit 08f5f17
Show file tree
Hide file tree
Showing 11 changed files with 195 additions and 412 deletions.
22 changes: 20 additions & 2 deletions Gruntfile.js
Original file line number Diff line number Diff line change
Expand Up @@ -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/',
Expand All @@ -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: {
Expand Down Expand Up @@ -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'
};
4 changes: 2 additions & 2 deletions bower.json
Original file line number Diff line number Diff line change
@@ -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 <[email protected]>"
Expand All @@ -22,5 +22,5 @@
"test",
"tests"
],
"buildnum": "7566"
"buildnum": "7581"
}
8 changes: 4 additions & 4 deletions dist/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -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: [email protected]
Expand All @@ -27,9 +27,9 @@
<meta charset="UTF-8">
<title>youtube Chromeless Player - mb.YTPlayer</title>
<link href='//fonts.googleapis.com/css?family=Lekton|Lobster' rel='stylesheet' type='text/css'>
<link href="css/jquery.mb.YTPlayer.min.css?_bn=7566" media="all" rel="stylesheet" type="text/css">
<link href="css/jquery.mb.YTPlayer.min.css?_bn=7581" media="all" rel="stylesheet" type="text/css">
<script src="https://ajax.googleapis.com/ajax/libs/jquery/3.2.1/jquery.min.js"></script>
<script src="jquery.mb.YTPlayer.js?_bn=7566"></script>
<script src="jquery.mb.YTPlayer.js?_bn=7581"></script>
<script src="../examples/assets/apikey.js"></script>
<style>
*:focus {
Expand Down
272 changes: 82 additions & 190 deletions dist/jquery.mb.YTPlayer.js

Large diffs are not rendered by default.

4 changes: 2 additions & 2 deletions dist/jquery.mb.YTPlayer.min.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion examples/demo.html
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@
<link href="../dist/css/jquery.mb.YTPlayer.min.css" media="all" rel="stylesheet" type="text/css">

<script src="https://ajax.googleapis.com/ajax/libs/jquery/3.2.1/jquery.min.js"></script>
<script src="../dist/jquery.mb.YTPlayer.js"></script>
<script src="../dist/jquery.mb.YTPlayer.min.js"></script>

<style>

Expand Down
83 changes: 78 additions & 5 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

5 changes: 3 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
"player",
"custom"
],
"version": "3.3.8",
"version": "3.3.9",
"author": "Pupunzi <[email protected]> (Matteo Bicocchi)",
"maintainers": [
"Pupunzi <[email protected]> (Matteo Bicocchi)"
Expand Down Expand Up @@ -50,10 +50,11 @@
"grunt-contrib-watch": "^1.1.0",
"grunt-include-replace": "^3.2.0",
"grunt-jsbeautifier": "^0.2.13",
"grunt-replace": "^1.0.1",
"grunt-strip-code": "^1.0.6"
},
"directories": {
"example": "examples"
},
"buildnum": "7566"
"buildnum": "7581"
}
33 changes: 0 additions & 33 deletions src/dep/jquery.mb.browser.min.js

This file was deleted.

Loading

0 comments on commit 08f5f17

Please sign in to comment.