3 Star 2 Fork 0

Gitee 极速下载/videogular

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
此仓库是为了提升国内下载速度的镜像仓库,每日同步一次。 原始仓库: https://github.com/2fdevs/videogular
克隆/下载
Gruntfile.js 10.50 KB
一键复制 编辑 原始数据 按行查看 历史
Raul 提交于 2017-04-09 02:27 . Update dist package and add npmignore
module.exports = function (grunt) {
grunt.initConfig({
pkg: grunt.file.readJSON('package.json'),
karma: {
test: {
configFile: 'test/conf/karma.conf.js',
singleRun: true,
logLevel: 'INFO',
port: 8070
}
},
cssmin: {
css: {
src: 'app/styles/themes/default/videogular.css',
dest: 'dist/themes/default/videogular.min.css'
}
},
concat: {
videogular: {
src: [
'app/scripts/com/2fdevs/videogular/vg-module.js',
'app/scripts/com/2fdevs/videogular/constants/*.js',
'app/scripts/com/2fdevs/videogular/controllers/*.js',
'app/scripts/com/2fdevs/videogular/directives/*.js',
'app/scripts/com/2fdevs/videogular/services/*.js'
],
dest: 'dist/videogular/videogular.js'
},
vgControls: {
src: [
'app/scripts/com/2fdevs/videogular/plugins/vg-controls/vg-controls.js',
'app/scripts/com/2fdevs/videogular/plugins/vg-controls/**/*.js'
],
dest: 'dist/controls/vg-controls.js'
}
},
uglify: {
js: {
files: {
'dist/videogular/videogular.min.js': ['dist/videogular/videogular.js'],
'dist/analytics/vg-analytics.min.js': ['app/scripts/com/2fdevs/videogular/plugins/vg-analytics/vg-analytics.js'],
'dist/buffering/vg-buffering.min.js': ['app/scripts/com/2fdevs/videogular/plugins/vg-buffering/vg-buffering.js'],
'dist/controls/vg-controls.min.js': ['dist/controls/vg-controls.js'],
'dist/ima-ads/vg-ima-ads.min.js': ['app/scripts/com/2fdevs/videogular/plugins/vg-ima-ads/vg-ima-ads.js'],
'dist/overlay-play/vg-overlay-play.min.js': ['app/scripts/com/2fdevs/videogular/plugins/vg-overlay-play/vg-overlay-play.js'],
'dist/poster/vg-poster.min.js': ['app/scripts/com/2fdevs/videogular/plugins/vg-poster/vg-poster.js'],
'dist/dash/vg-dash.min.js': ['app/scripts/com/2fdevs/videogular/plugins/vg-dash/vg-dash.js']
}
}
},
copy: {
main: {
files: [
{
expand: true,
cwd: 'app/styles/themes/default/',
src: ['**'],
dest: 'dist/themes/default/'
},
{
expand: true,
cwd: 'app/scripts/com/2fdevs/videogular/plugins/vg-analytics/',
src: ['**'],
dest: 'dist/analytics/'
},
{
expand: true,
cwd: 'app/scripts/com/2fdevs/videogular/plugins/vg-buffering/',
src: ['**'],
dest: 'dist/buffering/'
},
{
expand: true,
cwd: 'app/scripts/com/2fdevs/videogular/plugins/vg-ima-ads/',
src: ['**'],
dest: 'dist/ima-ads/'
},
{
expand: true,
cwd: 'app/scripts/com/2fdevs/videogular/plugins/vg-overlay-play/',
src: ['**'],
dest: 'dist/overlay-play/'
},
{
expand: true,
cwd: 'app/scripts/com/2fdevs/videogular/plugins/vg-poster/',
src: ['**'],
dest: 'dist/poster/'
},
{
expand: true,
cwd: 'app/scripts/com/2fdevs/videogular/plugins/vg-dash/',
src: ['**'],
dest: 'dist/dash/'
}
]
},
release: {
files: [
{
flatten: true,
expand: true,
src: ['dist/videogular/*.js'],
dest: '../bower-videogular/',
filter: 'isFile'
},
{
expand: true,
flatten: true,
src: ['dist/themes/default/*.css', 'dist/themes/default/*.map'],
dest: '../bower-videogular-themes-default/',
filter: 'isFile'
},
{
expand: true,
flatten: true,
src: ['dist/themes/default/fonts/**'],
dest: '../bower-videogular-themes-default/fonts/',
filter: 'isFile'
},
{
expand: true,
flatten: true,
src: ['dist/analytics/*.js'],
dest: '../bower-videogular-analytics/',
filter: 'isFile'
},
{
expand: true,
flatten: true,
src: ['dist/buffering/*.js'],
dest: '../bower-videogular-buffering/',
filter: 'isFile'
},
{
expand: true,
flatten: true,
src: ['dist/controls/*.js'],
dest: '../bower-videogular-controls/',
filter: 'isFile'
},
{
expand: true,
flatten: true,
src: ['dist/ima-ads/*.js'],
dest: '../bower-videogular-ima-ads/',
filter: 'isFile'
},
{
expand: true,
flatten: true,
src: ['dist/overlay-play/*.js'],
dest: '../bower-videogular-overlay-play/',
filter: 'isFile'
},
{
expand: true,
flatten: true,
src: ['dist/poster/*.js'],
dest: '../bower-videogular-poster/',
filter: 'isFile'
},
{
expand: true,
flatten: true,
src: ['dist/dash/*.js'],
dest: '../bower-videogular-dash/',
filter: 'isFile'
}
]
}
},
clean: {
build: [
"build"
],
docs: [
"docs"
]
},
ngdocs: {
options: {
dest: 'docs',
html5Mode: false
},
api: {
title: "API Reference",
src: [
'docs/content/api/*.ngdoc',
'app/scripts/com/2fdevs/videogular/**/*.js'
]
}
},
hub: {
major: {
src: [
"../bower-videogular/Gruntfile.js",
"../bower-videogular-analytics/Gruntfile.js",
"../bower-videogular-buffering/Gruntfile.js",
"../bower-videogular-controls/Gruntfile.js",
"../bower-videogular-ima-ads/Gruntfile.js",
"../bower-videogular-overlay-play/Gruntfile.js",
"../bower-videogular-poster/Gruntfile.js",
"../bower-videogular-dash/Gruntfile.js",
"../bower-videogular-themes-default/Gruntfile.js"],
tasks: ["release:major"],
concurrent: 1
},
minor: {
src: [
"../bower-videogular/Gruntfile.js",
"../bower-videogular-analytics/Gruntfile.js",
"../bower-videogular-buffering/Gruntfile.js",
"../bower-videogular-controls/Gruntfile.js",
"../bower-videogular-ima-ads/Gruntfile.js",
"../bower-videogular-overlay-play/Gruntfile.js",
"../bower-videogular-poster/Gruntfile.js",
"../bower-videogular-dash/Gruntfile.js",
"../bower-videogular-themes-default/Gruntfile.js"],
tasks: ["release:minor"],
concurrent: 1
},
patch: {
src: [
"../bower-videogular/Gruntfile.js",
"../bower-videogular-analytics/Gruntfile.js",
"../bower-videogular-buffering/Gruntfile.js",
"../bower-videogular-controls/Gruntfile.js",
"../bower-videogular-ima-ads/Gruntfile.js",
"../bower-videogular-overlay-play/Gruntfile.js",
"../bower-videogular-poster/Gruntfile.js",
"../bower-videogular-dash/Gruntfile.js",
"../bower-videogular-themes-default/Gruntfile.js"],
tasks: ["release:patch"],
concurrent: 1
}
}
});
// And comment these ugly loadNpmTasks code.
grunt.loadNpmTasks('grunt-karma');
grunt.loadNpmTasks('grunt-release');
grunt.loadNpmTasks('grunt-contrib-uglify');
grunt.loadNpmTasks('grunt-contrib-cssmin');
grunt.loadNpmTasks('grunt-contrib-copy');
grunt.loadNpmTasks('grunt-contrib-clean');
grunt.loadNpmTasks('grunt-contrib-concat');
grunt.loadNpmTasks('grunt-hub');
grunt.loadNpmTasks('grunt-ngdocs');
grunt.registerTask('default', ['karma:test', 'clean:build', 'cssmin:css', 'concat', 'uglify:js', 'copy:main', 'copy:release']);
grunt.registerTask('docs', ['clean:docs', 'ngdocs']);
grunt.registerTask('test', ['karma:test']);
grunt.registerTask('major-release', ['default', 'hub:major']);
grunt.registerTask('minor-release', ['default', 'hub:minor']);
grunt.registerTask('patch-release', ['default', 'hub:patch']);
};
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
1
https://gitee.com/mirrors/videogular.git
git@gitee.com:mirrors/videogular.git
mirrors
videogular
videogular
master

搜索帮助