diff --git a/Gruntfile.js b/Gruntfile.js index 989fa0b..c1c7a26 100644 --- a/Gruntfile.js +++ b/Gruntfile.js @@ -16,7 +16,7 @@ module.exports = function (grunt) { options: { sourceMap: true, banner: ';/*! <%= pkg.name %> <%= grunt.template.today("dd-mm-yyyy") %> */\n(function(){\n', - footer: '}).call(this);' + footer: '}).call(this);\n' }, dist: { src: [ @@ -52,6 +52,15 @@ module.exports = function (grunt) { } }, + endline: { + dist: { + files: { + 'dist/<%= pkg.name %>.js': 'dist/<%= pkg.name %>.js', + 'dist/<%= pkg.name %>.min.js': 'dist/<%= pkg.name %>.min.js' + } + } + }, + jshint: { options: { jshintrc: '.jshintrc' @@ -97,7 +106,7 @@ module.exports = function (grunt) { changelogOpts: { preset: 'angular' } - }, + } } }, @@ -180,7 +189,7 @@ module.exports = function (grunt) { grunt.registerTask('lint', ['jshint', 'jscs']); grunt.registerTask('test', ['clean', 'lint', 'concat:test', 'simplemocha:node', 'clean']); - grunt.registerTask('build', ['test', 'concat:dist', 'uglify']); + grunt.registerTask('build', ['test', 'concat:dist', 'uglify', 'endline']); grunt.registerTask('prep-release', ['build', 'conventionalChangelog']); // Default task(s). diff --git a/dist/showdown.js b/dist/showdown.js index 4a43bb0..f91e710 100644 Binary files a/dist/showdown.js and b/dist/showdown.js differ diff --git a/dist/showdown.js.map b/dist/showdown.js.map index 817e9aa..1e3cb20 100644 Binary files a/dist/showdown.js.map and b/dist/showdown.js.map differ diff --git a/dist/showdown.min.js b/dist/showdown.min.js index 27525e1..3ddb9d0 100644 Binary files a/dist/showdown.min.js and b/dist/showdown.min.js differ diff --git a/package.json b/package.json index 6538acd..fa9693a 100644 --- a/package.json +++ b/package.json @@ -47,6 +47,7 @@ "grunt-contrib-uglify": "^0.6.0", "grunt-conventional-changelog": "^4.0.0", "grunt-conventional-github-releaser": "^0.3.0", + "grunt-endline": "^0.4.0", "grunt-jscs": "^1.2.0", "grunt-simple-mocha": "^0.4.0", "js-beautify": "^1.5.6",