couchdb-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From j..@apache.org
Subject [25/50] [abbrv] git commit: fix addons task
Date Mon, 11 Feb 2013 11:12:14 GMT
fix addons task


Project: http://git-wip-us.apache.org/repos/asf/couchdb/repo
Commit: http://git-wip-us.apache.org/repos/asf/couchdb/commit/139d4a15
Tree: http://git-wip-us.apache.org/repos/asf/couchdb/tree/139d4a15
Diff: http://git-wip-us.apache.org/repos/asf/couchdb/diff/139d4a15

Branch: refs/heads/fauxton
Commit: 139d4a15c65cbafec5d016f556d9887b9973f825
Parents: a3b2141
Author: Simon Metson <simon+github@cloudant.com>
Authored: Sun Jan 27 16:52:02 2013 +0100
Committer: Simon Metson <simon+github@cloudant.com>
Committed: Sun Jan 27 16:52:02 2013 +0100

----------------------------------------------------------------------
 src/fauxton/tasks/fauxton.js |    3 ++-
 1 files changed, 2 insertions(+), 1 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/couchdb/blob/139d4a15/src/fauxton/tasks/fauxton.js
----------------------------------------------------------------------
diff --git a/src/fauxton/tasks/fauxton.js b/src/fauxton/tasks/fauxton.js
index 0ea1045..eb464a6 100644
--- a/src/fauxton/tasks/fauxton.js
+++ b/src/fauxton/tasks/fauxton.js
@@ -20,7 +20,7 @@ module.exports = function(grunt) {
     {
       name: 'base',
       filename: 'base.js',
-      template: 'define([\n  "app",\n  "api",\n  "addons/<%= module.toLowerCase() %>/routes"\n],\n\nfunction(app,
FauxtonAPI, <%= module %>) {\n\tvar <%= module %> = new FauxtonAPI.addon();\n\treturn
<%= module %>;\n});\n'
+      template: 'define([\n  "app",\n  "api",\n  "addons/<%= module.toLowerCase() %>/routes"\n],\n\nfunction(app,
FauxtonAPI, <%= module %>Routes) {\n\tvar <%= module %> = new FauxtonAPI.addon();\n\treturn
<%= module %>;\n});\n'
     },
     {
       name: 'resources',
@@ -42,6 +42,7 @@ module.exports = function(grunt) {
       var module = result.name
       filepath = result.path + '/' + module.toLowerCase() + '/templates';
       grunt.file.mkdir(filepath);
+      filepath = result.path + '/' + module.toLowerCase();
       _.each(addonTemplates, function(file){
         file.module = module.charAt(0).toUpperCase() + module.substr(1);
         var content = grunt.template.process(file.template, file);


Mime
View raw message