-
Notifications
You must be signed in to change notification settings - Fork 15
/
Copy pathGruntfile.js
49 lines (45 loc) · 1.25 KB
/
Gruntfile.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
//
// hypeengine
// Copyright (C) 2013 - 2017, Hüseyin Uslu, Int6ware - http://www.int6ware.com
//
'use strict';
module.exports = function (grunt) {
require('time-grunt')(grunt);
grunt.initConfig({
pkg: grunt.file.readJSON('package.json'),
shell: {
semistandard: 'semistandard src/**/*.js --verbose | snazzy',
cover: 'npm run cover'
},
mochaTest: {
options: {
reporter: 'mochawesome',
reporterOptions: {
reportDir: 'build/test/mocha/',
reportName: 'result',
inlineAssets: true
},
quiet: false
},
src: ['test/**/*.js']
},
eslint: {
target: ['src/**/*.js', 'assets/js/**/*.js', 'test/**/*.js', 'contrib/**/*.js'],
options: {
configFile: '.eslintrc.yaml',
ingorePath: '.eslintignore',
format: 'html',
outputFile: 'build/lint/eslint/result.html',
maxWarnings: -1
}
}
});
// load all plugins.
require('load-grunt-tasks')(grunt);
// tasks.
grunt.registerTask('test', ['mochaTest']);
grunt.registerTask('lint', ['eslint']);
grunt.registerTask('cover', 'shell:cover');
grunt.registerTask('semistandard', 'shell:semistandard');
grunt.registerTask('default', ['test']);
};