diff options
author | Samy Pessé <samypesse@gmail.com> | 2015-03-09 10:43:12 +0100 |
---|---|---|
committer | Samy Pessé <samypesse@gmail.com> | 2015-03-09 10:43:12 +0100 |
commit | 34fc2831e0cf0fed01c71cec28d93472d87f455b (patch) | |
tree | a803cc907c20491ba02863b5d3dd5aedf6bfed10 /Gruntfile.js | |
parent | e1594cde2c32e4ff48f6c4eff3d3d461743d74e1 (diff) | |
parent | 1bf68a5aa0703b5a1815cfe4ebb731b5fb6ed9d2 (diff) | |
download | gitbook-34fc2831e0cf0fed01c71cec28d93472d87f455b.zip gitbook-34fc2831e0cf0fed01c71cec28d93472d87f455b.tar.gz gitbook-34fc2831e0cf0fed01c71cec28d93472d87f455b.tar.bz2 |
Merge branch 'version/2.0'
Diffstat (limited to 'Gruntfile.js')
-rw-r--r-- | Gruntfile.js | 37 |
1 files changed, 2 insertions, 35 deletions
diff --git a/Gruntfile.js b/Gruntfile.js index 215dcee..1a84763 100644 --- a/Gruntfile.js +++ b/Gruntfile.js @@ -6,8 +6,6 @@ module.exports = function (grunt) { grunt.loadNpmTasks('grunt-contrib-less'); grunt.loadNpmTasks('grunt-contrib-requirejs'); grunt.loadNpmTasks("grunt-bower-install-simple"); - grunt.loadNpmTasks('grunt-browserify'); - grunt.loadNpmTasks('grunt-contrib-uglify'); // Init GRUNT configuraton grunt.initConfig({ @@ -79,30 +77,6 @@ module.exports = function (grunt) { } ] } - }, - browserify: { - dist: { - files: { - 'gitbook.js': [ - './lib/parse/index.js' - ], - }, - options: { - postBundleCB: function (err, src, next) { - return next(null, '(function () { var define = undefined; '+src+'; })();') - }, - browserifyOptions: { - 'standalone': "gitbook" - } - } - } - }, - uglify: { - dist: { - files: { - 'gitbook.min.js': ['gitbook.js'] - } - } } }); @@ -116,14 +90,7 @@ module.exports = function (grunt) { 'copy:vendors' ]); - // Bundle the library - grunt.registerTask('bundle', [ - 'browserify', - 'uglify' - ]); - grunt.registerTask('default', [ - 'build', - 'bundle' + 'build' ]); -};
\ No newline at end of file +}; |