--- /dev/null
+{
+ "tagname-lowercase": true,
+ "attr-lowercase": true,
+ "attr-value-double-quotes": true,
+ "attr-value-not-empty": false,
+ "attr-no-duplication" : true,
+ "doctype-first": true,
+ "tag-pair": true,
+ "tag-self-close": false,
+ "spec-char-escape": true,
+ "id-unique": true,
+ "src-not-empty": true,
+ "head-script-disabled": false
+}
\ No newline at end of file
main + 'stubs/**/*.js'
],
index: main + 'index.html',
- jshintConfigurationFile: '.jshintrc',
+ jsHintConfigurationFile: '.jshintrc',
jscsConfigurationFile: '.jscsrc',
+ htmlHintConfigurationFile: '.jshintrc',
karmaConf: 'karma.conf.js',
gulp.task('help', plugins.taskListing);
gulp.task('default', ['help']);
+
/**
* @ngdoc function
*
*
* @returns {stream}
*/
-gulp.task('vet', function() {
+gulp.task('vet', ['vet-js', 'vet-html']);
- log('*** Checking source files with JSHint and JSCS ***');
+/**
+ * @ngdoc function
+ *
+ * @description
+ * vet (evaluate) the JavaScript code and create coverage report.
+ *
+ * @returns {stream}
+ */
+gulp.task('vet-js', function() {
+
+ log('*** Checking JavaScript source files with JSHint and JSCS ***');
return gulp.src(config.jsAllFiles)
.pipe(plugins.if(args.verbose, plugins.print()))
- .pipe(plugins.jshint(config.jshintConfigurationFile))
+ .pipe(plugins.jshint(config.jsHintConfigurationFile))
.pipe(plugins.jshint.reporter('jshint-stylish', {verbose: true}))
.pipe(plugins.jshint.reporter('fail'))
.pipe(plugins.jscs({
* @ngdoc function
*
* @description
+ * vet (evaluate) the HTML code and create coverage report.
+ *
+ * @returns {stream}
+ */
+gulp.task('vet-html', function() {
+
+ log('*** Checking HTML source files with HTMLHint ***');
+
+ return gulp.src(config.templates)
+ .pipe(plugins.if(args.verbose, plugins.print()))
+ .pipe(plugins.htmlhint(config.htmlHintConfigurationFile))
+ .pipe(plugins.htmlhint.failReporter());
+
+});
+
+/**
+ * @ngdoc function
+ *
+ * @description
* wire up bower dependencies and inject files in index.html
*
* @returns {Stream}