Skip to content

Commit

Permalink
Modified grunt build for using minified version of jdataview
Browse files Browse the repository at this point in the history
  • Loading branch information
Konstantin Burkalev authored and Konstantin Burkalev committed Dec 8, 2014
1 parent bb90b71 commit 709ffe7
Show file tree
Hide file tree
Showing 4 changed files with 44 additions and 13 deletions.
28 changes: 20 additions & 8 deletions Gruntfile.js
Original file line number Diff line number Diff line change
Expand Up @@ -12,13 +12,7 @@ module.exports = function(grunt) {
default: {
files: {
'build/wampy.min.js': ['src/wampy.js'],
'build/msgpack.min.js': ['src/msgpack/src/msgpack.js'],
'build/jdataview.min.js': ['src/jdataview/src/jdataview.js'],
'build/wampy-all.min.js': [
'src/jdataview/src/jdataview.js',
'src/msgpack/src/msgpack.js',
'src/wampy.js'
]
'build/msgpack.min.js': ['src/msgpack/src/msgpack.js']
}
}
},
Expand All @@ -29,12 +23,30 @@ module.exports = function(grunt) {
default: {
src: 'src/wampy.js'
}
},
concat: {
wampy: {
src: ['build/jdataview.min.js', 'build/msgpack.min.js', 'build/wampy.min.js'],
dest: 'build/wampy-all.min.js'
}
},
copy: {
main: {
files: [
{
src: ['src/jdataview/dist/browser/jdataview.js'],
dest: 'build/jdataview.min.js'
}
]
}
}
});

grunt.loadNpmTasks('grunt-contrib-uglify');
grunt.loadNpmTasks('grunt-contrib-jshint');
grunt.loadNpmTasks('grunt-contrib-concat');
grunt.loadNpmTasks('grunt-contrib-copy');

grunt.registerTask('test', ['jshint']);
grunt.registerTask('default', ['uglify']);
grunt.registerTask('default', ['uglify', 'copy', 'concat']);
};
Loading

0 comments on commit 709ffe7

Please sign in to comment.