22/*jshint devel:true */
33module . exports = function ( grunt ) {
44 'use strict' ;
5-
5+
66 // Tasks
77 grunt . registerTask ( 'default' , [ 'jshint' , 'build' , 'jasmine' ] ) ;
88 grunt . registerTask ( 'build' , [ 'concat:development' , 'umd' , 'uglify:production' ] ) ;
99 grunt . registerTask ( 'test' , [ 'build' , 'jasmine' ] ) ;
1010 grunt . registerTask ( 'doc' , "Builds the documentation." , [ 'jshint' , 'jsduck' ] ) ;
1111 grunt . registerTask ( 'serve' , [ 'connect:server:keepalive' ] ) ;
12-
13-
12+
13+
1414 // Project configuration
1515 var exec = require ( 'child_process' ) . exec ,
1616 banner = createBanner ( ) ,
1717 distPath = 'dist/Autolinker.js' ,
1818 minDistPath = 'dist/Autolinker.min.js' ;
19-
19+
2020 grunt . initConfig ( {
2121 pkg : grunt . file . readJSON ( 'package.json' ) ,
22-
22+
2323 connect : {
2424 server : {
2525 options : {
@@ -29,13 +29,13 @@ module.exports = function(grunt) {
2929 }
3030 }
3131 } ,
32-
32+
3333 jshint : {
3434 files : {
3535 src : [ 'src/**/*.js' , 'tests/**/*.js' ]
3636 }
3737 } ,
38-
38+
3939 jasmine : {
4040 dist : {
4141 options : {
@@ -44,7 +44,7 @@ module.exports = function(grunt) {
4444 src : minDistPath
4545 }
4646 } ,
47-
47+
4848 concat : {
4949 development : {
5050 options : {
@@ -65,13 +65,14 @@ module.exports = function(grunt) {
6565 'src/matchParser/MatchValidator.js' ,
6666 'src/match/Match.js' ,
6767 'src/match/Email.js' ,
68+ 'src/match/Phone.js' ,
6869 'src/match/Twitter.js' ,
6970 'src/match/Url.js'
7071 ] ,
7172 dest : distPath
7273 }
7374 } ,
74-
75+
7576 uglify : {
7677 production : {
7778 options : {
@@ -81,17 +82,17 @@ module.exports = function(grunt) {
8182 dest : minDistPath
8283 }
8384 } ,
84-
85+
8586 jsduck : {
8687 main : {
8788 // source paths with your code
8889 src : [
8990 'src/**/*.js'
9091 ] ,
91-
92+
9293 // docs output dir
9394 dest : 'gh-pages/docs' ,
94-
95+
9596 // extra options
9697 options : {
9798 'title' : 'Autolinker API Docs'
@@ -117,11 +118,11 @@ module.exports = function(grunt) {
117118 grunt . loadNpmTasks ( 'grunt-contrib-jshint' ) ;
118119 grunt . loadNpmTasks ( 'grunt-jsduck' ) ;
119120 grunt . loadNpmTasks ( 'grunt-umd' ) ;
120-
121-
121+
122+
122123 /**
123124 * Creates the banner comment with license header that is placed over the concatenated/minified files.
124- *
125+ *
125126 * @private
126127 * @return {String }
127128 */
0 commit comments