summaryrefslogtreecommitdiffstats
path: root/Gruntfile.js
diff options
context:
space:
mode:
authorSamy Pessé <samypesse@gmail.com>2014-08-09 23:26:54 -0700
committerSamy Pessé <samypesse@gmail.com>2014-08-11 07:36:51 -0700
commit786c4f147d959916736ae58e795f4eb85d6550e4 (patch)
tree91645f00e70a7bc4c93dcb688360c3ec7beb3a07 /Gruntfile.js
parent7028fc71180fdebd4edb0f7cdc68009d84ec2f8a (diff)
downloadgitbook-786c4f147d959916736ae58e795f4eb85d6550e4.zip
gitbook-786c4f147d959916736ae58e795f4eb85d6550e4.tar.gz
gitbook-786c4f147d959916736ae58e795f4eb85d6550e4.tar.bz2
Use fontawesome from bower
Diffstat (limited to 'Gruntfile.js')
-rw-r--r--Gruntfile.js35
1 files changed, 25 insertions, 10 deletions
diff --git a/Gruntfile.js b/Gruntfile.js
index 06e3f78..244a2bc 100644
--- a/Gruntfile.js
+++ b/Gruntfile.js
@@ -2,6 +2,7 @@ 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");
@@ -13,7 +14,7 @@ module.exports = function (grunt) {
options: {
color: true,
production: false,
- directory: "theme/javascript/vendors"
+ directory: "theme/vendors"
}
},
less: {
@@ -36,16 +37,16 @@ module.exports = function (grunt) {
baseUrl: "theme/javascript/",
out: "theme/assets/app.js",
preserveLicenseComments: false,
- optimize: "uglify", //"uglify",
+ 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',
- "URI": 'vendors/URIjs/src/URI',
- "ace": 'vendors/ace-builds/src-noconflict/'
+ "jQuery": '../vendors/jquery/dist/jquery',
+ "lodash": '../vendors/lodash/dist/lodash',
+ "requireLib": '../vendors/requirejs/require',
+ "Mousetrap": '../vendors/mousetrap/mousetrap',
+ "lunr": '../vendors/lunr.js/lunr',
+ "URI": '../vendors/URIjs/src/URI',
+ "ace": '../vendors/ace-builds/src-noconflict/'
},
shim: {
'jQuery': {
@@ -63,6 +64,19 @@ module.exports = function (grunt) {
}
}
}
+ },
+ copy: {
+ vendors: {
+ files: [
+ {
+ expand: true,
+ cwd: 'theme/vendors/fontawesome/fonts/',
+ src: ['**'],
+ dest: 'theme/assets/fonts/fontawesome/',
+ filter: 'isFile'
+ }
+ ]
+ }
}
});
@@ -72,7 +86,8 @@ module.exports = function (grunt) {
grunt.registerTask('build', [
'bower-install',
'less',
- 'requirejs'
+ 'requirejs',
+ 'copy:vendors'
]);
grunt.registerTask('default', [