From 5335703f4bb935a082ffe04ace9bd49a6bc5fef7 Mon Sep 17 00:00:00 2001 From: Sam Date: Sat, 23 Apr 2016 18:07:34 +0300 Subject: [PATCH] move populate_template_cache.js into dist and add dist to .gitignore --- .gitignore | 5 +++-- config/env/all.js | 4 ++-- gruntfile.js | 8 ++++---- 3 files changed, 9 insertions(+), 8 deletions(-) diff --git a/.gitignore b/.gitignore index 3598aac8..09b8766c 100755 --- a/.gitignore +++ b/.gitignore @@ -27,12 +27,13 @@ app/tests/coverage/ # ====================== config/sslcerts/*.pem access.log -#public/dist/ +public/dist/ +public/dist/populate_template_cache.js uploads/ # API keys file api_keys.js *.env - + # Sublime editor # ============== .sublime-project diff --git a/config/env/all.js b/config/env/all.js index c24e28a0..19d4467b 100755 --- a/config/env/all.js +++ b/config/env/all.js @@ -45,7 +45,7 @@ module.exports = { /* * Upload Configuration */ - //Global upload path + //Global upload path uploadPath : 'uploads/', //PDF storage path pdfUploadPath: 'uploads/pdfs/', @@ -70,7 +70,7 @@ module.exports = { js: [ 'public/config.js', 'public/application.js', - 'public/populate_template_cache.js', + 'public/dist/populate_template_cache.js', 'public/modules/*/*.js', 'public/modules/*/*[!tests]*/*.js' ], diff --git a/gruntfile.js b/gruntfile.js index 2985e31a..7ccb1f2c 100755 --- a/gruntfile.js +++ b/gruntfile.js @@ -2,7 +2,7 @@ module.exports = function(grunt) { require('jit-grunt')(grunt); - + // Unified Watch Object var watchFiles = { serverViews: ['app/views/**/*.*'], @@ -157,7 +157,7 @@ module.exports = function(grunt) { src: watchFiles.serverTests, options: { reporter: 'spec', - quiet: false, + quiet: false, require: 'server.js', ui: 'bdd' } @@ -247,7 +247,7 @@ module.exports = function(grunt) { }, main: { src: ['public/modules/**/views/**.html', 'public/modules/**/views/**/*.html'], - dest: 'public/populate_template_cache.js' + dest: 'public/dist/populate_template_cache.js' } } }); @@ -285,7 +285,7 @@ module.exports = function(grunt) { // Default task(s). grunt.registerTask('default', ['lint', 'html2js:main', 'env', 'concurrent:default']); - + // Debug task. grunt.registerTask('debug', ['lint', 'html2js:main', 'concurrent:debug']);