move populate_template_cache.js into dist and add dist to .gitignore

This commit is contained in:
Sam 2016-04-23 18:07:34 +03:00
parent 6c7cf0601f
commit 5335703f4b
3 changed files with 9 additions and 8 deletions

5
.gitignore vendored
View file

@ -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

4
config/env/all.js vendored
View file

@ -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'
],

View file

@ -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']);