summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--Gruntfile.js10
-rw-r--r--bower.json11
-rw-r--r--package.json3
3 files changed, 23 insertions, 1 deletions
diff --git a/Gruntfile.js b/Gruntfile.js
index 536e3e6..cf33e17 100644
--- a/Gruntfile.js
+++ b/Gruntfile.js
@@ -4,10 +4,18 @@ module.exports = function (grunt) {
// Load NPM tasks
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/javascript/vendors"
+ }
+ },
less: {
development: {
options: {
@@ -56,6 +64,8 @@ module.exports = function (grunt) {
}
});
+ grunt.registerTask("bower-install", [ "bower-install-simple" ]);
+
// Build
grunt.registerTask('build', [
'less',
diff --git a/bower.json b/bower.json
new file mode 100644
index 0000000..7820908
--- /dev/null
+++ b/bower.json
@@ -0,0 +1,11 @@
+{
+ "name": "GitBook",
+ "version": "1.0.0",
+ "dependencies": {
+ "jquery": "2.1.1",
+ "lodash": "2.4.1",
+ "requirejs": "2.1.11",
+ "URIjs": "1.13.1",
+ "mousetrap": "1.4.6"
+ }
+} \ No newline at end of file
diff --git a/package.json b/package.json
index c4124f9..ed41a96 100644
--- a/package.json
+++ b/package.json
@@ -30,7 +30,8 @@
"grunt": "~0.4.2",
"grunt-cli": "0.1.11",
"grunt-contrib-less": "~0.5.0",
- "grunt-contrib-requirejs": "0.4.1"
+ "grunt-contrib-requirejs": "0.4.1",
+ "grunt-bower-install-simple": "0.9.2"
},
"scripts": {
"test": "export TESTING=true; mocha --reporter list"