client/bower_components
dist
coverage
+reports
/server/config/local.env.js
/server/components/worker/generator/output
/server/components/worker/generator/input
}
},
+ plato: {
+ complexity: {
+ options: {
+ jshint: false
+ },
+ files: {
+ 'reports': ['server/**/*.js', '!server/**/*.spec.js']
+ }
+ }
+ },
+
protractor: {
options: {
configFile: 'protractor.conf.js'
this.async();
});
+ // These plugins provide necessary tasks for plato
+ grunt.loadNpmTasks('grunt-contrib-qunit');
+ grunt.loadNpmTasks('grunt-qunit-junit');
+ grunt.loadNpmTasks('grunt-plato');
+
+ // Default task for complexity analisys
+ grunt.registerTask('complexity', ['plato', 'qunit_junit', 'qunit']);
+
grunt.registerTask('serve', function (target) {
if (target === 'dist') {
return grunt.task.run(['build', 'env:all', 'env:prod', 'express:prod', 'wait', 'open', 'express-keepalive']);
return grunt.task.run([
'env:all',
'env:test',
- 'mocha_istanbul:coverage'
+ 'mocha_istanbul:coverage',
+ 'complexity'
]);
});
"grunt-contrib-imagemin": "^1.0.0",
"grunt-contrib-jade": "^0.15.0",
"grunt-contrib-jshint": "^0.11.3",
+ "grunt-contrib-qunit": "^0.7.0",
"grunt-contrib-stylus": "^0.22.0",
"grunt-contrib-uglify": "^0.11.0",
"grunt-contrib-watch": "^0.6.1",
"grunt-node-inspector": "^0.4.1",
"grunt-nodemon": "^0.4.1",
"grunt-open": "^0.2.3",
+ "grunt-plato": "^1.2.1",
"grunt-protractor-runner": "^3.0.0",
+ "grunt-qunit-junit": "^0.3.1",
"grunt-rev": "^0.1.0",
"grunt-svgmin": "^3.1.0",
"grunt-usemin": "^3.1.1",