fix build

This commit is contained in:
Andrea Spacca
2019-05-18 14:11:39 +02:00
parent 3d4d505129
commit cc1ae43f8d
9 changed files with 1954 additions and 5322 deletions

View File

@@ -145,7 +145,14 @@ module.exports = function (grunt) {
files: [
{
dest: '.tmp/scripts/main.js',
src: ['<%= yeoman.app %>/scripts/main.js']
src: [
'<%= yeoman.app %>/bower_components/jquery/dist/jquery.js',
'<%= yeoman.app %>/bower_components/uri.js/src/URI.min.js',
'<%= yeoman.app %>/bower_components/bootstrap/js/transition.js',
'<%= yeoman.app %>/bower_components/bootstrap/js/collapse.js',
'<%= yeoman.app %>/scripts/showdown.js',
'<%= yeoman.app %>/scripts/base.js'
]
},
{
dest: '.tmp/scripts/vendor/modernizr.js',
@@ -160,6 +167,10 @@ module.exports = function (grunt) {
},
uglify: {
generated: {
options: {
mangle: {},
compress: {}
},
files: [
{
dest: '<%= yeoman.dist %>/scripts/main.js',
@@ -188,19 +199,6 @@ module.exports = function (grunt) {
}
}
},
useminPrepare: {
html: '<%= yeoman.app %>/*.html',
options: {
dest: '<%= yeoman.dist %>'
}
},
usemin: {
html: ['<%= yeoman.dist %>/{,*/}*.html'],
css: ['<%= yeoman.dist %>/styles/{,*/}*.css'],
options: {
dirs: ['<%= yeoman.dist %>']
}
},
imagemin: {
dist: {
files: [{
@@ -256,8 +254,7 @@ module.exports = function (grunt) {
cwd: '<%= yeoman.app %>/bower_components/videojs/'
}
}
}
,
},
copy: {
dist: {
files: [{
@@ -333,14 +330,12 @@ module.exports = function (grunt) {
'clean:dist',
'npm-command',
'copy:server',
'useminPrepare',
'concurrent',
'cssmin',
'concat',
'includes:build',
'uglify',
'copy',
'usemin'
'copy'
]);
grunt.registerTask('default', [