Skip to content

Commit

Permalink
Merge branch 'pr/72' into 0.3.1
Browse files Browse the repository at this point in the history
Conflicts:
	app/tests/user.server.model.test.js
	public/modules/articles/config/articles.client.config.js
	public/modules/core/controllers/home.client.controller.js
	public/modules/core/services/menus.client.service.js
  • Loading branch information
amoshaviv committed May 20, 2014
2 parents a7aa199 + 9067499 commit 6354178
Show file tree
Hide file tree
Showing 2 changed files with 125 additions and 2 deletions.
124 changes: 123 additions & 1 deletion gruntfile.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
'use strict';

module.exports = function(grunt) {
<<<<<<< HEAD
// Project Configuration
grunt.initConfig({
pkg: grunt.file.readJSON('package.json'),
Expand Down Expand Up @@ -118,6 +119,118 @@ module.exports = function(grunt) {
}
}
});
=======
// Project Configuration
grunt.initConfig({
pkg: grunt.file.readJSON('package.json'),
watch: {
serverViews: {
files: ['app/views/**'],
options: {
livereload: true,
}
},
serverJS: {
files: ['gruntfile.js', 'server.js', 'config/**/*.js', 'app/**/*.js'],
tasks: ['jshint'],
options: {
livereload: true,
}
},
clientViews: {
files: ['public/modules/**/views/*.html'],
options: {
livereload: true,
}
},
clientJS: {
files: ['public/js/**/*.js', 'public/modules/**/*.js'],
tasks: ['jshint'],
options: {
livereload: true,
}
},
clientCSS: {
files: ['public/**/css/*.css'],
tasks: ['csslint'],
options: {
livereload: true,
}
}
},
jshint: {
all: {
src: ['gruntfile.js', 'server.js', 'config/**/*.js', 'app/**/*.js', 'public/js/**/*.js', 'public/modules/**/*.js'],
options: {
jshintrc: true
}
}
},
csslint: {
options: {
csslintrc: '.csslintrc',
},
all: {
src: ['public/modules/**/css/*.css']
}
},
ngmin: {
production: {
files: {
'public/dist/application.js': '<%= applicationJavaScriptFiles %>'
}
}
},
uglify: {
production: {
options: {
mangle: false
},
files: {
'public/dist/application.min.js': 'public/dist/application.js'
}
}
},
cssmin: {
combine: {
files: {
'public/dist/application.min.css': '<%= applicationCSSFiles %>'
}
}
},
nodemon: {
dev: {
script: 'server.js',
options: {
nodeArgs: ['--debug']
}
}
},
concurrent: {
tasks: ['nodemon', 'watch'],
options: {
logConcurrentOutput: true
}
},
env: {
test: {
NODE_ENV: 'test'
}
},
mochaTest: {
src: ['app/tests/**/*.js'],
options: {
reporter: 'spec',
require: 'server.js'
}
},
karma: {
unit: {
configFile: 'karma.conf.js'
}
}
});
>>>>>>> pr/72

// Load NPM tasks
require('load-grunt-tasks')(grunt);
Expand All @@ -140,6 +253,7 @@ module.exports = function(grunt) {
// Debug task.
grunt.registerTask('debug', ['jshint', 'csslint', 'concurrent:debug']);

<<<<<<< HEAD
// Lint task(s).
grunt.registerTask('lint', ['jshint', 'csslint']);

Expand All @@ -148,4 +262,12 @@ module.exports = function(grunt) {

// Test task.
grunt.registerTask('test', ['env:test', 'mochaTest', 'karma:unit']);
};
};
=======
// Build task(s).
grunt.registerTask('build', ['jshint', 'csslint', 'loadConfig', 'ngmin', 'uglify', 'cssmin']);

// Test task.
grunt.registerTask('test', ['env:test', 'mochaTest', 'karma:unit']);
};
>>>>>>> pr/72
3 changes: 2 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -56,6 +56,7 @@
"grunt-nodemon": "~0.2.1",
"grunt-concurrent": "~0.5.0",
"grunt-mocha-test": "~0.10.0",
"grunt-ngmin": "0.0.3",
"grunt-karma": "~0.8.2",
"load-grunt-tasks": "~0.4.0",
"karma": "~0.12.0",
Expand All @@ -65,4 +66,4 @@
"karma-firefox-launcher": "~0.1.3",
"karma-phantomjs-launcher": "~0.1.2"
}
}
}

0 comments on commit 6354178

Please sign in to comment.