更新lib包

This commit is contained in:
zhouliujun 2020-03-18 15:52:42 +08:00
parent 32f9b7ddc0
commit 100c2e4443
4 changed files with 46 additions and 9 deletions

View File

@ -142,12 +142,12 @@ if (typeof window !== 'undefined') {
// EXTERNAL MODULE: ./node_modules/_core-js@2.6.10@core-js/modules/es6.function.name.js
var es6_function_name = __webpack_require__("7cfd");
// CONCATENATED MODULE: ./node_modules/_cache-loader@2.0.1@cache-loader/dist/cjs.js?{"cacheDirectory":"node_modules/.cache/vue-loader","cacheIdentifier":"05d0d90a-vue-loader-template"}!./node_modules/_vue-loader@15.7.2@vue-loader/lib/loaders/templateLoader.js??vue-loader-options!./node_modules/_cache-loader@2.0.1@cache-loader/dist/cjs.js??ref--0-0!./node_modules/_vue-loader@15.7.2@vue-loader/lib??vue-loader-options!./packages/AliplayerV2/src/main.vue?vue&type=template&id=69b09acf&
// CONCATENATED MODULE: ./node_modules/_cache-loader@2.0.1@cache-loader/dist/cjs.js?{"cacheDirectory":"node_modules/.cache/vue-loader","cacheIdentifier":"05d0d90a-vue-loader-template"}!./node_modules/_vue-loader@15.7.2@vue-loader/lib/loaders/templateLoader.js??vue-loader-options!./node_modules/_cache-loader@2.0.1@cache-loader/dist/cjs.js??ref--0-0!./node_modules/_vue-loader@15.7.2@vue-loader/lib??vue-loader-options!./packages/AliplayerV2/src/main.vue?vue&type=template&id=2633e826&
var render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',{attrs:{"id":_vm.id}})}
var staticRenderFns = []
// CONCATENATED MODULE: ./packages/AliplayerV2/src/main.vue?vue&type=template&id=69b09acf&
// CONCATENATED MODULE: ./packages/AliplayerV2/src/main.vue?vue&type=template&id=2633e826&
// EXTERNAL MODULE: ./node_modules/_core-js@2.6.10@core-js/modules/web.dom.iterable.js
var web_dom_iterable = __webpack_require__("4634");
@ -168,6 +168,14 @@ var web_dom_iterable = __webpack_require__("4634");
return null;
}
},
source: {
//播放源(此属性存在则优先于options.source) 动态切换,目前只支持同种格式mp4/flv/m3u8之间切换。暂不支持直播rtmp流切换。
required: false,
type: [Object],
default: function _default() {
return null;
}
},
id: {
required: false,
type: [String],
@ -280,6 +288,12 @@ var web_dom_iterable = __webpack_require__("4634");
'completeSeek']
};
},
watch: {
source: function source(url) {
//监听播放源变化
this.loadByUrl(url);
}
},
mounted: function mounted() {
var _this = this;
@ -352,6 +366,8 @@ var web_dom_iterable = __webpack_require__("4634");
}
}
if (this.source) this.config.source = this.source; //播放源
this.config.id = this.id; // this.player = new Aliplayer(this.config, function(player) {
// // console.log('播放器创建好了',player);
// });
@ -815,7 +831,7 @@ if (typeof window !== 'undefined' && window.Vue) {
/* harmony default export */ var packages_0 = ({
// 导出的对象必须具备一个 install 方法
install: install,
VueAliplayerV2: AliplayerV2 // 组件列表
Player: AliplayerV2 // 组件列表
});
// CONCATENATED MODULE: ./node_modules/_@vue_cli-service@3.12.1@@vue/cli-service/lib/commands/build/entry-lib.js

View File

@ -151,12 +151,12 @@ if (typeof window !== 'undefined') {
// EXTERNAL MODULE: ./node_modules/_core-js@2.6.10@core-js/modules/es6.function.name.js
var es6_function_name = __webpack_require__("7cfd");
// CONCATENATED MODULE: ./node_modules/_cache-loader@2.0.1@cache-loader/dist/cjs.js?{"cacheDirectory":"node_modules/.cache/vue-loader","cacheIdentifier":"05d0d90a-vue-loader-template"}!./node_modules/_vue-loader@15.7.2@vue-loader/lib/loaders/templateLoader.js??vue-loader-options!./node_modules/_cache-loader@2.0.1@cache-loader/dist/cjs.js??ref--0-0!./node_modules/_vue-loader@15.7.2@vue-loader/lib??vue-loader-options!./packages/AliplayerV2/src/main.vue?vue&type=template&id=69b09acf&
// CONCATENATED MODULE: ./node_modules/_cache-loader@2.0.1@cache-loader/dist/cjs.js?{"cacheDirectory":"node_modules/.cache/vue-loader","cacheIdentifier":"05d0d90a-vue-loader-template"}!./node_modules/_vue-loader@15.7.2@vue-loader/lib/loaders/templateLoader.js??vue-loader-options!./node_modules/_cache-loader@2.0.1@cache-loader/dist/cjs.js??ref--0-0!./node_modules/_vue-loader@15.7.2@vue-loader/lib??vue-loader-options!./packages/AliplayerV2/src/main.vue?vue&type=template&id=2633e826&
var render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',{attrs:{"id":_vm.id}})}
var staticRenderFns = []
// CONCATENATED MODULE: ./packages/AliplayerV2/src/main.vue?vue&type=template&id=69b09acf&
// CONCATENATED MODULE: ./packages/AliplayerV2/src/main.vue?vue&type=template&id=2633e826&
// EXTERNAL MODULE: ./node_modules/_core-js@2.6.10@core-js/modules/web.dom.iterable.js
var web_dom_iterable = __webpack_require__("4634");
@ -177,6 +177,14 @@ var web_dom_iterable = __webpack_require__("4634");
return null;
}
},
source: {
//播放源(此属性存在则优先于options.source) 动态切换,目前只支持同种格式mp4/flv/m3u8之间切换。暂不支持直播rtmp流切换。
required: false,
type: [Object],
default: function _default() {
return null;
}
},
id: {
required: false,
type: [String],
@ -289,6 +297,12 @@ var web_dom_iterable = __webpack_require__("4634");
'completeSeek']
};
},
watch: {
source: function source(url) {
//监听播放源变化
this.loadByUrl(url);
}
},
mounted: function mounted() {
var _this = this;
@ -361,6 +375,8 @@ var web_dom_iterable = __webpack_require__("4634");
}
}
if (this.source) this.config.source = this.source; //播放源
this.config.id = this.id; // this.player = new Aliplayer(this.config, function(player) {
// // console.log('播放器创建好了',player);
// });
@ -824,7 +840,7 @@ if (typeof window !== 'undefined' && window.Vue) {
/* harmony default export */ var packages_0 = ({
// 导出的对象必须具备一个 install 方法
install: install,
VueAliplayerV2: AliplayerV2 // 组件列表
Player: AliplayerV2 // 组件列表
});
// CONCATENATED MODULE: ./node_modules/_@vue_cli-service@3.12.1@@vue/cli-service/lib/commands/build/entry-lib.js

File diff suppressed because one or more lines are too long

9
t.sh
View File

@ -1,15 +1,20 @@
echo "打包 => dist";
# 打包 => dist
npm run build;
echo "打包 插件lib";
# 打包 插件
npm run lib;
#推送到npmjs
echo "推送到npmjs";
#推送到npmjs
npm publish;
# 更新gh-pages
echo "更新gh-pages";
git branch -D gh-pages;