diff --git a/.gitignore b/.gitignore index 0138a8330c..46114451b8 100644 --- a/.gitignore +++ b/.gitignore @@ -3,8 +3,8 @@ .sass-cache/ npm-debug.log node_modules/ -public/lib -app/tests/coverage/ +public/lib/ +public/dist/ .bower-*/ .idea/ uploads @@ -21,6 +21,7 @@ Outset-Logo_*.png scratchpad.* public log +app/tests/coverage/ # Elastic Beanstalk Files .elasticbeanstalk/* diff --git a/.slugignore b/.slugignore index e4e50baab8..4611d35f44 100644 --- a/.slugignore +++ b/.slugignore @@ -1 +1 @@ -/app/tests \ No newline at end of file +/app/tests diff --git a/.travis.yml b/.travis.yml index 0abd7e4bb2..32edf2495e 100644 --- a/.travis.yml +++ b/.travis.yml @@ -4,4 +4,4 @@ node_js: env: - NODE_ENV=travis services: - - mongodb \ No newline at end of file + - mongodb diff --git a/Procfile b/Procfile old mode 100755 new mode 100644 diff --git a/config/assets/test.js b/config/assets/test.js index ecc4cac91d..29ffa89c9e 100644 --- a/config/assets/test.js +++ b/config/assets/test.js @@ -6,4 +6,4 @@ module.exports = { server: ['modules/*/tests/server/**/*.js'], e2e: ['modules/*/tests/e2e/**/*.js'] } -}; \ No newline at end of file +}; diff --git a/config/config.js b/config/config.js index 501cc7b2c6..dcdfd7715b 100644 --- a/config/config.js +++ b/config/config.js @@ -91,7 +91,7 @@ var initGlobalConfigFolders = function (config, assets) { }; // Setting globbed client paths - config.folders.client = getGlobbedPaths(path.join(process.cwd(), 'modules/*/client/'), process.cwd()); + config.folders.client = getGlobbedPaths(path.join(process.cwd(), 'modules/*/client/'), process.cwd().replace(new RegExp(/\\/g),'/')); }; /** diff --git a/config/lib/express.js b/config/lib/express.js old mode 100755 new mode 100644 diff --git a/fig.yml b/fig.yml index 4726a15100..967ac7d1d1 100644 --- a/fig.yml +++ b/fig.yml @@ -9,4 +9,4 @@ web: db: image: mongo ports: - - "27017:27017" \ No newline at end of file + - "27017:27017" diff --git a/modules/articles/client/articles.client.module.js b/modules/articles/client/articles.client.module.js old mode 100755 new mode 100644 index 7435fc78a8..3c94d0cb57 --- a/modules/articles/client/articles.client.module.js +++ b/modules/articles/client/articles.client.module.js @@ -1,4 +1,4 @@ 'use strict'; // Use Applicaion configuration module to register a new module -ApplicationConfiguration.registerModule('articles'); \ No newline at end of file +ApplicationConfiguration.registerModule('articles'); diff --git a/modules/articles/client/config/articles.client.routes.js b/modules/articles/client/config/articles.client.routes.js old mode 100755 new mode 100644 diff --git a/modules/articles/client/controllers/articles.client.controller.js b/modules/articles/client/controllers/articles.client.controller.js index 364987eb9e..2ea4e2a856 100644 --- a/modules/articles/client/controllers/articles.client.controller.js +++ b/modules/articles/client/controllers/articles.client.controller.js @@ -55,4 +55,4 @@ angular.module('articles').controller('ArticlesController', ['$scope', '$statePa }); }; } -]); \ No newline at end of file +]); diff --git a/modules/articles/server/models/article.server.model.js b/modules/articles/server/models/article.server.model.js index 3f6fd0df1f..f2b89db815 100644 --- a/modules/articles/server/models/article.server.model.js +++ b/modules/articles/server/models/article.server.model.js @@ -31,4 +31,4 @@ var ArticleSchema = new Schema({ } }); -mongoose.model('Article', ArticleSchema); \ No newline at end of file +mongoose.model('Article', ArticleSchema); diff --git a/modules/articles/tests/client/articles.client.controller.tests.js b/modules/articles/tests/client/articles.client.controller.tests.js index 859a967e47..326a9b45c8 100644 --- a/modules/articles/tests/client/articles.client.controller.tests.js +++ b/modules/articles/tests/client/articles.client.controller.tests.js @@ -167,4 +167,4 @@ expect(scope.articles.length).toBe(0); })); }); -}()); \ No newline at end of file +}()); diff --git a/modules/articles/tests/server/article.server.model.tests.js b/modules/articles/tests/server/article.server.model.tests.js index ee5fd067b5..b4b76b8a93 100644 --- a/modules/articles/tests/server/article.server.model.tests.js +++ b/modules/articles/tests/server/article.server.model.tests.js @@ -57,8 +57,8 @@ describe('Article Model Unit Tests:', function() { }); afterEach(function(done) { - Article.remove().exec(); - User.remove().exec(); - done(); + Article.remove().exec(function() { + User.remove().exec(done); + }); }); }); diff --git a/modules/articles/tests/server/article.server.routes.tests.js b/modules/articles/tests/server/article.server.routes.tests.js index f6588c2057..de039cbbc9 100644 --- a/modules/articles/tests/server/article.server.routes.tests.js +++ b/modules/articles/tests/server/article.server.routes.tests.js @@ -270,8 +270,8 @@ describe('Article CRUD tests', function() { }); afterEach(function(done) { - User.remove().exec(); - Article.remove().exec(); - done(); + User.remove().exec(function() { + Article.remove().exec(done); + }); }); }); diff --git a/modules/chat/tests/client/chat.client.controller.tests.js b/modules/chat/tests/client/chat.client.controller.tests.js index e842322891..8a31f1930f 100644 --- a/modules/chat/tests/client/chat.client.controller.tests.js +++ b/modules/chat/tests/client/chat.client.controller.tests.js @@ -7,4 +7,4 @@ describe('ChatController', function() { // TODO: Add chat client controller tests }); -}()); \ No newline at end of file +}()); diff --git a/modules/chat/tests/e2e/chat.e2e.tests.js b/modules/chat/tests/e2e/chat.e2e.tests.js index 06f5fc6226..d3fd973c29 100644 --- a/modules/chat/tests/e2e/chat.e2e.tests.js +++ b/modules/chat/tests/e2e/chat.e2e.tests.js @@ -5,4 +5,4 @@ */ describe('Chat E2E Tests:', function() { // TODO: Add chat e2e tests -}); \ No newline at end of file +}); diff --git a/modules/chat/tests/server/chat.socket.tests.js b/modules/chat/tests/server/chat.socket.tests.js index 8a82c74ea2..f900e2f626 100644 --- a/modules/chat/tests/server/chat.socket.tests.js +++ b/modules/chat/tests/server/chat.socket.tests.js @@ -5,4 +5,4 @@ */ describe('Chat Socket Tests:', function() { // TODO: Add chat socket tests -}); \ No newline at end of file +}); diff --git a/modules/core/client/core.client.module.js b/modules/core/client/core.client.module.js old mode 100755 new mode 100644 diff --git a/modules/core/server/views/layout.server.view.html b/modules/core/server/views/layout.server.view.html index 42bb5a2364..a760fe1793 100644 --- a/modules/core/server/views/layout.server.view.html +++ b/modules/core/server/views/layout.server.view.html @@ -2,49 +2,49 @@ - {{title}} - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - + {{title}} + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + {% for cssFile in cssFiles %} - {% endfor %} + + {% endfor %} - - + @@ -53,31 +53,34 @@
-
+
- {% block content %}{% endblock %} -
+ {% block content %}{% endblock %} +
- - - - - - - + + + + + + + {% for jsFile in jsFiles %} - {% endfor %} {% if process.env.NODE_ENV === 'development' %} - - - {% endif %} + + {% endfor %} - - + {% endif %} + + + +