1
0
mirror of https://github.com/dutchcoders/transfer.sh.git synced 2020-11-18 19:53:40 -08:00

bump transfer.sh-web

This commit is contained in:
Andrea Spacca 2019-01-19 23:38:19 +01:00
parent af80d889af
commit 0db3e70b34
4 changed files with 6066 additions and 1159 deletions

View File

@ -12,6 +12,8 @@ module.exports = function (grunt) {
// show elapsed time at the end // show elapsed time at the end
require('time-grunt')(grunt); require('time-grunt')(grunt);
grunt.loadNpmTasks('grunt-npm-command');
// configurable paths // configurable paths
var yeomanConfig = { var yeomanConfig = {
app: require('./bower.json').appPath || 'src', app: require('./bower.json').appPath || 'src',
@ -216,7 +218,21 @@ module.exports = function (grunt) {
}] }]
} }
}, },
copy: { 'npm-command': {
'videojs-install': {
options: {
cwd: '<%= yeoman.app %>/bower_components/videojs/'
}
},
'videojs-build': {
options: {
cmd: 'run-script',
args: ['build'],
cwd: '<%= yeoman.app %>/bower_components/videojs/'
}
}
}
,copy: {
dist: { dist: {
files: [{ files: [{
expand: true, expand: true,
@ -258,6 +274,8 @@ module.exports = function (grunt) {
} }
}); });
grunt.loadNpmTasks('grunt-npm-command');
grunt.registerTask('serve', function (target) { grunt.registerTask('serve', function (target) {
if (target === 'dist') { if (target === 'dist') {
return grunt.task.run(['build', 'connect:dist:keepalive']); return grunt.task.run(['build', 'connect:dist:keepalive']);
@ -287,7 +305,7 @@ module.exports = function (grunt) {
grunt.registerTask('build', [ grunt.registerTask('build', [
'clean:dist', 'clean:dist',
'npm-command',
'copy:server', 'copy:server',
'useminPrepare', 'useminPrepare',
'concurrent', 'concurrent',

File diff suppressed because it is too large Load Diff

View File

@ -13,6 +13,7 @@
"tests" "tests"
], ],
"dependencies": { "dependencies": {
"videojs": "~7.4.2",
"bootstrap": "~3.0.0", "bootstrap": "~3.0.0",
"modernizr": "~2.6.2", "modernizr": "~2.6.2",
"uri.js": "~1.14.1", "uri.js": "~1.14.1",

View File

@ -20,6 +20,7 @@
"grunt-contrib-watch": "~0.6.1", "grunt-contrib-watch": "~0.6.1",
"grunt-include-replace": "^2.0.0", "grunt-include-replace": "^2.0.0",
"grunt-includes": "^0.4.5", "grunt-includes": "^0.4.5",
"grunt-npm-command": "^0.1.2",
"grunt-rev": "~0.1.0", "grunt-rev": "~0.1.0",
"grunt-svgmin": "1.0.0", "grunt-svgmin": "1.0.0",
"grunt-usemin": "~2.4.0", "grunt-usemin": "~2.4.0",