mirror of
https://github.com/videojs/video.js.git
synced 2025-03-05 15:16:06 +02:00
Merge branch 'stable'
This commit is contained in:
commit
3fdef79b9b
43
Gruntfile.js
43
Gruntfile.js
@ -1,5 +1,5 @@
|
|||||||
module.exports = function(grunt) {
|
module.exports = function(grunt) {
|
||||||
var pkg, s3, version, verParts;
|
var pkg, version, verParts;
|
||||||
|
|
||||||
pkg = grunt.file.readJSON('package.json');
|
pkg = grunt.file.readJSON('package.json');
|
||||||
|
|
||||||
@ -85,34 +85,33 @@ module.exports = function(grunt) {
|
|||||||
]
|
]
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
s3: {
|
aws_s3: {
|
||||||
options: {
|
options: {
|
||||||
key: process.env.VJS_S3_KEY,
|
accessKeyId: process.env.VJS_S3_KEY,
|
||||||
secret: process.env.VJS_S3_SECRET,
|
secretAccessKey: process.env.VJS_S3_SECRET,
|
||||||
bucket: process.env.VJS_S3_BUCKET,
|
bucket: process.env.VJS_S3_BUCKET,
|
||||||
access: 'public-read'
|
access: 'public-read',
|
||||||
|
uploadConcurrency: 5
|
||||||
},
|
},
|
||||||
minor: {
|
patch: {
|
||||||
upload: [
|
files: [
|
||||||
{
|
{
|
||||||
src: 'dist/cdn/*',
|
expand: true,
|
||||||
dest: 'vjs/'+version.majorMinor+'/',
|
cwd: 'dist/cdn/',
|
||||||
rel: 'dist/cdn/',
|
src: ['**'],
|
||||||
headers: {
|
dest: 'vjs/'+version.full+'/',
|
||||||
'Cache-Control': 'public, max-age=2628000'
|
params: { CacheControl: 'public, max-age=31536000' }
|
||||||
}
|
|
||||||
}
|
}
|
||||||
]
|
]
|
||||||
},
|
},
|
||||||
patch: {
|
minor: {
|
||||||
upload: [
|
files: [
|
||||||
{
|
{
|
||||||
src: 'dist/cdn/*',
|
expand: true,
|
||||||
dest: 'vjs/'+version.full+'/',
|
cwd: 'dist/cdn/',
|
||||||
rel: 'dist/cdn/',
|
src: ['**'],
|
||||||
headers: {
|
dest: 'vjs/'+version.majorMinor+'/',
|
||||||
'Cache-Control': 'public, max-age=31536000'
|
params: { CacheControl: 'public, max-age=2628000' }
|
||||||
}
|
|
||||||
}
|
}
|
||||||
]
|
]
|
||||||
}
|
}
|
||||||
@ -356,7 +355,6 @@ module.exports = function(grunt) {
|
|||||||
grunt.loadNpmTasks('grunt-contrib-copy');
|
grunt.loadNpmTasks('grunt-contrib-copy');
|
||||||
grunt.loadNpmTasks('grunt-contrib-cssmin');
|
grunt.loadNpmTasks('grunt-contrib-cssmin');
|
||||||
grunt.loadNpmTasks('grunt-contrib-less');
|
grunt.loadNpmTasks('grunt-contrib-less');
|
||||||
grunt.loadNpmTasks('grunt-s3');
|
|
||||||
grunt.loadNpmTasks('contribflow');
|
grunt.loadNpmTasks('contribflow');
|
||||||
grunt.loadNpmTasks('grunt-karma');
|
grunt.loadNpmTasks('grunt-karma');
|
||||||
grunt.loadNpmTasks('videojs-doc-generator');
|
grunt.loadNpmTasks('videojs-doc-generator');
|
||||||
@ -366,6 +364,7 @@ module.exports = function(grunt) {
|
|||||||
grunt.loadNpmTasks('chg');
|
grunt.loadNpmTasks('chg');
|
||||||
grunt.loadNpmTasks('grunt-fastly');
|
grunt.loadNpmTasks('grunt-fastly');
|
||||||
grunt.loadNpmTasks('grunt-github-releaser');
|
grunt.loadNpmTasks('grunt-github-releaser');
|
||||||
|
grunt.loadNpmTasks('grunt-aws-s3');
|
||||||
|
|
||||||
// grunt.loadTasks('./docs/tasks/');
|
// grunt.loadTasks('./docs/tasks/');
|
||||||
// grunt.loadTasks('../videojs-doc-generator/tasks/');
|
// grunt.loadTasks('../videojs-doc-generator/tasks/');
|
||||||
|
@ -30,6 +30,7 @@
|
|||||||
"contribflow": "~0.2.0",
|
"contribflow": "~0.2.0",
|
||||||
"github": "~0.1.14",
|
"github": "~0.1.14",
|
||||||
"grunt": "^0.4.4",
|
"grunt": "^0.4.4",
|
||||||
|
"grunt-aws-s3": "^0.12.1",
|
||||||
"grunt-banner": "~0.2.0",
|
"grunt-banner": "~0.2.0",
|
||||||
"grunt-cli": "~0.1.0",
|
"grunt-cli": "~0.1.0",
|
||||||
"grunt-contrib-clean": "~0.4.0a",
|
"grunt-contrib-clean": "~0.4.0a",
|
||||||
|
Loading…
x
Reference in New Issue
Block a user