UNPKG

780 BJavaScriptView Raw
1module.exports = function (grunt) {
2 grunt.initConfig({
3 nicePackage: {
4 all: {
5 options: {
6 blankLine: true
7 }
8 }
9 },
10
11 'clean-console': {
12 all: {
13 options: {
14 url: 'test/index.html',
15 timeout: 1 // seconds to wait for any errors
16 }
17 }
18 }
19 });
20 grunt.loadNpmTasks('grunt-nice-package');
21 grunt.loadNpmTasks('grunt-clean-console');
22 grunt.registerTask('nice-package', ['nicePackage']);
23 // grunt.registerTask('test-page', ['clean-console']);
24
25 grunt.registerTask('default', function () {
26 var msg = 'DO NOT USE DIRECTLY\n' +
27 'to build this project use "gulp"\n' +
28 'these are just grunt tasks to be used from gulp.';
29 console.error(msg);
30 process.exit(-1);
31 });
32};