Software: Apache/2.4.41 (Ubuntu). PHP/8.0.30 uname -a: Linux apirnd 5.4.0-204-generic #224-Ubuntu SMP Thu Dec 5 13:38:28 UTC 2024 x86_64 uid=33(www-data) gid=33(www-data) groups=33(www-data) Safe-mode: OFF (not secure) /var/www/html/node-red/node_modules/grunt-simple-nyc/ drwxr-xr-x | |
| Viewing file: Select action/file-type: module.exports = function(grunt) {
grunt.loadNpmTasks('grunt-contrib-watch');
grunt.loadNpmTasks('grunt-open');
grunt.loadNpmTasks('grunt-mocha-test');
grunt.loadNpmTasks('grunt-travis-matrix');
grunt.loadNpmTasks('grunt-eslint');
grunt.loadNpmTasks('grunt-simple-istanbul');
grunt.loadNpmTasks('grunt-shell');
grunt.loadNpmTasks('grunt-contrib-clean');
grunt.loadTasks('./tasks');
grunt.initConfig({
clean: {
coverage: ['coverage']
},
eslint: {
tasks: {
options: {
configFile: '.eslint.json',
format: 'node_modules/eslint-codeframe-formatter'
},
src: ['tasks/**/*.js']
}
},
shell: {
codeclimate: 'npm run codeclimate'
},
travisMatrix: {
v8: {
test: function() {
return /^v8/.test(process.version);
},
tasks: ['istanbul:unit', 'shell:codeclimate']
}
},
mochaTest: {
options: {
reporter: 'list',
require: ['should', 'should-sinon'],
timeout: 3000
},
test: {
src: ['test/**/*.js']
},
watch: {
options: {
reporter: 'dot'
},
src: ['test/**/*.js']
}
},
istanbul: {
unit: {
options: {
root: 'tasks',
dir: 'coverage',
simple: {
cmd: 'cover',
args: ['grunt', 'mocha'],
rawArgs: ['--', '--color']
}
}
}
},
open: {
coverage: {
path: 'coverage/lcov-report/index.html'
}
},
watch: {
tests: {
files: ['tasks/**/*.js', 'test/**/*.js'],
tasks: ['eslint:tasks', 'mochaTest:watch'],
options: {
atBegin: true
}
}
}
});
grunt.registerTask('mocha', ['mochaTest:test']);
grunt.registerTask('test', ['mochaTest:test']);
grunt.registerTask('default', ['eslint:tasks', 'mocha']);
grunt.registerTask('cover', ['istanbul:unit', 'open:coverage']);
grunt.registerTask('travis', ['eslint:tasks', 'mocha', 'travisMatrix']);
};
|
:: Command execute :: | |
--[ c99shell v. 2.5 [PHP 8 Update] [24.05.2025] | Generation time: 0.0044 ]-- |