Skip to content

Commit f8f79a6

Browse files
committed
Remove manual indenting (grunt-umd does this already)
1 parent 1d6f34a commit f8f79a6

File tree

1 file changed

+5
-13
lines changed

1 file changed

+5
-13
lines changed

Gruntfile.js

Lines changed: 5 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ module.exports = function(grunt) {
3131
jasmine: {
3232
dist: {
3333
options: {
34-
specs: 'tests/*Spec.js',
34+
specs: 'tests/*Spec.js'
3535
},
3636
src: minDistPath
3737
}
@@ -41,14 +41,9 @@ module.exports = function(grunt) {
4141
development: {
4242
options: {
4343
banner : banner,
44-
nonull : true,
45-
46-
process : function( src, filepath ) {
47-
return '\t' + src.replace( /\n/g, '\n\t' ); // indent each source file, which is placed inside the UMD block
48-
}
44+
nonull : true
4945
},
5046
src: [
51-
'src/umdBegin.js',
5247
'src/Autolinker.js',
5348
'src/Util.js',
5449
'src/HtmlParser.js',
@@ -58,10 +53,9 @@ module.exports = function(grunt) {
5853
'src/match/Email.js',
5954
'src/match/Twitter.js',
6055
'src/match/Url.js',
61-
'src/umdEnd.js'
6256
],
63-
dest: distPath,
64-
},
57+
dest: distPath
58+
}
6559
},
6660

6761
uglify: {
@@ -70,7 +64,7 @@ module.exports = function(grunt) {
7064
banner: banner
7165
},
7266
src: [ distPath ],
73-
dest: minDistPath,
67+
dest: minDistPath
7468
}
7569
},
7670

@@ -117,8 +111,6 @@ module.exports = function(grunt) {
117111
grunt.registerTask( 'doc', "Builds the documentation.", [ 'jshint', 'jsduck' ] );
118112
grunt.registerTask( 'serve', [ 'connect:server:keepalive' ] );
119113

120-
121-
122114
/**
123115
* Creates the banner comment with license header that is placed over the concatenated/minified files.
124116
*

0 commit comments

Comments
 (0)