summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGarren Smith <garren.smith@gmail.com>2013-03-18 15:00:10 +0200
committerGarren Smith <garren.smith@gmail.com>2013-03-19 09:24:25 +0200
commit4f5234ce83e568c7a0700049e1fe2b6d8ba71134 (patch)
treef67dfd57a13e2d5806355103e9a6862341d38197
parent10cf9c5f9eb151923a1c9ec9d623b4ffe3ff9c95 (diff)
downloadcouchdb-4f5234ce83e568c7a0700049e1fe2b6d8ba71134.tar.gz
remove BBB dependancy COUCHDB-1712
-rw-r--r--src/fauxton/grunt.js29
-rw-r--r--src/fauxton/package.json2
-rw-r--r--src/fauxton/readme.md8
3 files changed, 22 insertions, 17 deletions
diff --git a/src/fauxton/grunt.js b/src/fauxton/grunt.js
index 875316b50..26a65bc2c 100644
--- a/src/fauxton/grunt.js
+++ b/src/fauxton/grunt.js
@@ -188,23 +188,26 @@ module.exports = function(grunt) {
watch: {
files: './app/**/*',
- tasks: ['debug', 'template:server']
+ tasks: ['debug', 'template']
},
- // This task uses James Burke's excellent r.js AMD build tool. In the
- // future other builders may be contributed as drop-in alternatives.
requirejs: {
- // Include the main configuration file.
- mainConfigFile: "app/config.js",
+ compile: {
+ options: {
+ baseUrl: 'app',
+ // Include the main configuration file.
+ mainConfigFile: "app/config.js",
- // Output file.
- out: "dist/debug/require.js",
+ // Output file.
+ out: "dist/debug/require.js",
- // Root application module.
- name: "config",
+ // Root application module.
+ name: "config",
- // Do not wrap everything in an IIFE.
- wrap: false
+ // Do not wrap everything in an IIFE.
+ wrap: false
+ }
+ }
},
// The headless QUnit testing environment is provided for "free" by Grunt.
@@ -284,9 +287,11 @@ module.exports = function(grunt) {
grunt.loadNpmTasks('grunt-couchapp');
// Load the copy task
grunt.loadNpmTasks('grunt-contrib-copy');
+ grunt.loadNpmTasks('grunt-contrib');
// Load the exec task
grunt.loadNpmTasks('grunt-exec');
-
+ // Load Require.js task
+ grunt.loadNpmTasks('grunt-requirejs');
// clean out previous build artefacts, lint and unit test
grunt.registerTask('test', 'clean lint'); //qunit
// Fetch dependencies (from git or local dir), lint them and make load_addons
diff --git a/src/fauxton/package.json b/src/fauxton/package.json
index a5fc56772..8d2493569 100644
--- a/src/fauxton/package.json
+++ b/src/fauxton/package.json
@@ -9,13 +9,13 @@
"dependencies": {
"async": "~0.1.22",
"grunt": "~0.3.17",
- "bbb": "0.1.16",
"couchapp": "0.9.1",
"grunt-contrib": "0.0.8",
"grunt-contrib-copy": "~0.3.2",
"grunt-couchapp": "~0.1.0",
"grunt-exec": "~0.3.0",
"grunt-jasmine-task": "~0.2.0",
+ "grunt-requirejs": "0.3.1",
"underscore": "~1.4.2",
"url": "~0.7.9",
"urls": "~0.0.3",
diff --git a/src/fauxton/readme.md b/src/fauxton/readme.md
index 0cc24c8e7..e00b8a7d5 100644
--- a/src/fauxton/readme.md
+++ b/src/fauxton/readme.md
@@ -39,19 +39,19 @@ A recent of [node.js](http://nodejs.org/) and npm is required.
# Or just use the wrappers in ./bin/
# Development mode, non minified files
- ./bin/bbb couchdebug
+ ./bin/grunt couchdebug
# Or fully compiled install
- # ./bin/bbb couchdb
+ # ./bin/grunt couchdb
### Dev Server
Using the dev server is the easiest way to use fauxton, specially when developing for it.
- bbb dev
+ grunt dev
### To Deploy Fauxton
- ./bin/bbb couchapp_deploy - to deploy to your local [Couchdb instance] (http://localhost:5984/fauxton/_design/fauxton/index.html)
+ ./bin/grunt couchapp_deploy - to deploy to your local [Couchdb instance] (http://localhost:5984/fauxton/_design/fauxton/index.html)
## Understang Fauxton Code layout