Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 0 additions & 1 deletion src/Makefile.am
Original file line number Diff line number Diff line change
Expand Up @@ -251,7 +251,6 @@ FAUXTON_FILES = \
fauxton/assets/js/libs/backbone.js \
fauxton/assets/js/libs/bootstrap.js \
fauxton/assets/js/libs/d3.js \
fauxton/assets/js/libs/d3.global.js \
fauxton/assets/js/libs/jquery.js \
fauxton/assets/js/libs/lodash.js \
fauxton/assets/js/libs/nv.d3.js \
Expand Down
8 changes: 2 additions & 6 deletions src/fauxton/Gruntfile.js
Original file line number Diff line number Diff line change
Expand Up @@ -349,11 +349,6 @@ module.exports = function(grunt) {
}
},
gen_initialize: templateSettings,
/*gen_initialize: {
"default": {
src: "settings.json"
}
},*/

mkcouchdb: couch_config,
rmcouchdb: couch_config,
Expand Down Expand Up @@ -448,6 +443,7 @@ module.exports = function(grunt) {
grunt.registerTask('watchRun', ['clean:watch', 'dependencies', 'jshint']);
// build a release
grunt.registerTask('release', ['clean' ,'dependencies', "gen_initialize:release", 'jshint', 'build', 'minify', 'copy:dist', 'copy:ace']);
grunt.registerTask('couchapp_release', ['clean' ,'dependencies', "gen_initialize:couchapp", 'jshint', 'build', 'minify', 'copy:dist', 'copy:ace']);

/*
* Install into CouchDB in either debug, release, or couchapp mode
Expand All @@ -457,7 +453,7 @@ module.exports = function(grunt) {
// make a minimized install that is server by mochiweb under _utils
grunt.registerTask('couchdb', ['release', 'copy:couchdb']);
// make an install that can be deployed as a couchapp
grunt.registerTask('couchapp_setup', ['release']);
grunt.registerTask('couchapp_setup', ['couchapp_release']);
// install fauxton as couchapp
grunt.registerTask('couchapp_install', ['rmcouchdb:fauxton', 'mkcouchdb:fauxton', 'couchapp:fauxton']);
// setup and install fauxton as couchapp
Expand Down
5 changes: 1 addition & 4 deletions src/fauxton/app/config.js
Original file line number Diff line number Diff line change
Expand Up @@ -30,8 +30,7 @@ require.config({
spin: "../assets/js/libs/spin.min",
d3: "../assets/js/libs/d3",
"nv.d3": "../assets/js/libs/nv.d3",
"ace":"../assets/js/libs/ace",
"d3.global": "../assets/js/libs/d3.global"
"ace":"../assets/js/libs/ace"
},

baseUrl: '/',
Expand All @@ -55,8 +54,6 @@ require.config({
exports: "Bootstrap"
},

"nv.d3": ["d3.global"],

"plugins/prettify": [],
"plugins/beautify": [],

Expand Down
18 changes: 0 additions & 18 deletions src/fauxton/assets/js/libs/d3.global.js

This file was deleted.

7 changes: 6 additions & 1 deletion src/fauxton/assets/js/libs/nv.d3.js
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
//this is a hacky fix because nv.d3 doesn't support requirejs
define("nvd3", ["d3"], function (d3) {
(function(){

var nv = window.nv || {};
Expand Down Expand Up @@ -14366,4 +14368,7 @@ nv.models.stackedAreaChart = function() {

return chart;
}
})();
})();

return window.nv;
});
16 changes: 16 additions & 0 deletions src/fauxton/settings.json.default
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,23 @@
"host": "../..",
"version": "1.0"
}
},
"couchapp": {
"src": "assets/index.underscore",
"dest": "dist/debug/index.html",
"variables": {
"requirejs": "./js/require.js",
"css": "./css/index.css",
"base": null,
"cachebuster": "?v1.0"
},
"app": {
"root": "/",
"host": "../../..",
"version": "1.0"
}
}

},

"couch_config": {
Expand Down