diff options
author | Samy Pessé <samypesse@gmail.com> | 2015-10-06 09:42:49 +0200 |
---|---|---|
committer | Samy Pessé <samypesse@gmail.com> | 2015-10-06 09:42:49 +0200 |
commit | ce1e0e187339976fc3cae7ef70bcfdd0eaf68981 (patch) | |
tree | c71ab2b8badd7a54759790bde083cab721796d92 /Gruntfile.js | |
parent | bcb224d1cb0add4285538f03956f6f6a1574e49a (diff) | |
parent | c2775b3b63e92a7047f019a9d56851ce4fdd6c02 (diff) | |
download | gitbook-ce1e0e187339976fc3cae7ef70bcfdd0eaf68981.zip gitbook-ce1e0e187339976fc3cae7ef70bcfdd0eaf68981.tar.gz gitbook-ce1e0e187339976fc3cae7ef70bcfdd0eaf68981.tar.bz2 |
Merge pull request #964 from GitbookIO/features/plugin_api
Better APIs for Plugins
Diffstat (limited to 'Gruntfile.js')
-rw-r--r-- | Gruntfile.js | 96 |
1 files changed, 0 insertions, 96 deletions
diff --git a/Gruntfile.js b/Gruntfile.js deleted file mode 100644 index 1a84763..0000000 --- a/Gruntfile.js +++ /dev/null @@ -1,96 +0,0 @@ -module.exports = function (grunt) { - var path = require("path"); - - // Load NPM tasks - grunt.loadNpmTasks('grunt-contrib-copy'); - grunt.loadNpmTasks('grunt-contrib-less'); - grunt.loadNpmTasks('grunt-contrib-requirejs'); - grunt.loadNpmTasks("grunt-bower-install-simple"); - - // Init GRUNT configuraton - grunt.initConfig({ - pkg: grunt.file.readJSON('package.json'), - 'bower-install-simple': { - options: { - color: true, - production: false, - directory: "theme/vendors" - } - }, - less: { - development: { - options: { - compress: true, - yuicompress: true, - optimization: 2 - }, - files: { - "theme/assets/style.css": "theme/stylesheets/website.less", - "theme/assets/print.css": "theme/stylesheets/ebook.less" - } - } - }, - requirejs: { - compile: { - options: { - name: "gitbook", - baseUrl: "theme/javascript/", - out: "theme/assets/app.js", - preserveLicenseComments: false, - optimize: "uglify", - include: ["requireLib"], - paths: { - "jQuery": '../vendors/jquery/dist/jquery', - "lodash": '../vendors/lodash/dist/lodash', - "requireLib": '../vendors/requirejs/require', - "Mousetrap": '../vendors/mousetrap/mousetrap', - "lunr": '../vendors/lunr.js/lunr', - "URIjs": '../vendors/URIjs/src/', - "ace": '../vendors/ace-builds/src-noconflict/' - }, - shim: { - 'jQuery': { - exports: '$' - }, - 'lodash': { - exports: '_' - }, - 'Mousetrap': { - exports: 'Mousetrap' - }, - 'lunr': { - exports: 'lunr' - } - } - } - } - }, - copy: { - vendors: { - files: [ - { - expand: true, - cwd: 'theme/vendors/fontawesome/fonts/', - src: ['**'], - dest: 'theme/assets/fonts/fontawesome/', - filter: 'isFile' - } - ] - } - } - }); - - grunt.registerTask("bower-install", [ "bower-install-simple" ]); - - // Build - grunt.registerTask('build', [ - 'bower-install', - 'less', - 'requirejs', - 'copy:vendors' - ]); - - grunt.registerTask('default', [ - 'build' - ]); -}; |