UNPKG

930 BJavaScriptView Raw
1module.exports = function (grunt) {
2 grunt.loadNpmTasks('grunt-browserify');
3 grunt.loadNpmTasks('grunt-contrib-watch');
4 grunt.loadNpmTasks('grunt-git-authors');
5 grunt.loadNpmTasks('grunt-retire');
6 grunt.loadNpmTasks('grunt-nsp');
7
8 grunt.initConfig({
9
10 browserify: {
11 plugin: {
12 src: ['client/security.coffee'],
13 dest: 'client/security.js',
14 options: {
15 transform: ['coffeeify'],
16 browserifyOptions: {
17 extentions: ".coffee"
18 }
19 }
20 }
21 },
22
23 watch: {
24 all: {
25 files: ['client/*.coffee'],
26 tasks: ['build']
27 }
28 },
29
30 retire: {
31 node: ['.'],
32 options: {packageOnly: true}
33 },
34
35 nsp: {
36 package: grunt.file.readJSON('package.json')
37 }
38 });
39
40 grunt.registerTask('check', ['nsp', 'retire']);
41 grunt.registerTask('build', ['browserify']);
42 grunt.registerTask('default', ['build']);
43
44};