arnaucube
arnaucube/comunicationLeapPublic Self-hosted repository
comunicationLeap/node_modules/shortid/Gruntfile.js
node_modules/shortid/Gruntfile.jsRaw
 1'use strict';
 2
 3module.exports = function (grunt) {
 4
 5    require('time-grunt')(grunt);
 6
 7    grunt.initConfig({
 8        browserify: {
 9            browser: {
10                src: [ require('./package.json').main ],
11                dest: './browser/shortid.js'
12            },
13            tests: {
14                src: [
15                    './test/**/*.test.js'
16                ],
17                dest: './browser/shortid.test.js'
18            }
19        },
20
21        open: {
22            test: {
23                path: './test/index.html',
24                app: 'Google Chrome'
25            }
26        },
27
28        mochaTest: {
29            notify: {
30                src: 'test/**/*.test.js',
31                options: {
32                    reporter: 'spec',
33                    timeout: 50000
34                }
35            }
36        },
37
38        jshint: {
39            options: {
40                jshintrc: '.jshintrc'
41            },
42            all: [
43                'Gruntfile.js',
44                'lib/**/*.js',
45                'tests/*'
46            ]
47        }
48
49    });
50    require('load-grunt-tasks')(grunt);
51
52    grunt.registerTask('build', [
53        'browserify'
54    ]);
55
56    grunt.registerTask('test', [
57        'jshint',
58        'mochaTest'
59    ]);
60
61    grunt.registerTask('default', [
62        'build',
63        'test'
64    ]);
65};