summaryrefslogtreecommitdiffstats
path: root/Gruntfile.js
diff options
context:
space:
mode:
Diffstat (limited to 'Gruntfile.js')
-rw-r--r--Gruntfile.js36
1 files changed, 18 insertions, 18 deletions
diff --git a/Gruntfile.js b/Gruntfile.js
index 1a84763..27bf1c1 100644
--- a/Gruntfile.js
+++ b/Gruntfile.js
@@ -1,11 +1,11 @@
module.exports = function (grunt) {
- var path = require("path");
+ 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");
+ grunt.loadNpmTasks('grunt-bower-install-simple');
// Init GRUNT configuraton
grunt.initConfig({
@@ -14,7 +14,7 @@ module.exports = function (grunt) {
options: {
color: true,
production: false,
- directory: "theme/vendors"
+ directory: 'theme/vendors'
}
},
less: {
@@ -25,28 +25,28 @@ module.exports = function (grunt) {
optimization: 2
},
files: {
- "theme/assets/style.css": "theme/stylesheets/website.less",
- "theme/assets/print.css": "theme/stylesheets/ebook.less"
+ '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",
+ name: 'gitbook',
+ baseUrl: 'theme/javascript/',
+ out: 'theme/assets/app.js',
preserveLicenseComments: false,
- optimize: "uglify",
- include: ["requireLib"],
+ 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/'
+ 'jQuery': '../vendors/jquery/dist/jquery',
+ 'lodash': '../vendors/lodash/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': {
@@ -80,7 +80,7 @@ module.exports = function (grunt) {
}
});
- grunt.registerTask("bower-install", [ "bower-install-simple" ]);
+ grunt.registerTask('bower-install', [ 'bower-install-simple' ]);
// Build
grunt.registerTask('build', [