diff --git a/dist/Please.js b/dist/Please.min.js similarity index 100% rename from dist/Please.js rename to dist/Please.min.js diff --git a/gulpfile.js b/gulpfile.js index f806769..d2c9be6 100644 --- a/gulpfile.js +++ b/gulpfile.js @@ -2,13 +2,15 @@ var gulp = require('gulp'), jshint = require('gulp-jshint'), uglify = require('gulp-uglify'), watch = require('gulp-watch'), - bump = require('gulp-bump'); + bump = require('gulp-bump'), + rename = require('gulp-rename'); gulp.task('uglify', function(){ gulp.src('src/Please.js') .pipe(uglify({ preserveComments: 'some', })) + .pipe(rename({extname: ".min.js"})) .pipe(gulp.dest('dist')); }); gulp.task('lint', function(){ @@ -39,4 +41,4 @@ gulp.task('watch', function(){ gulp.task('default', [], function(){ gulp.start('uglify'); gulp.start('lint'); -}); \ No newline at end of file +}); diff --git a/package.json b/package.json index 2c767a1..722d81c 100644 --- a/package.json +++ b/package.json @@ -25,6 +25,7 @@ "gulp": "^3.8.9", "gulp-bump": "^0.1.11", "gulp-jshint": "^1.7.1", + "gulp-rename": "^1.2.2", "gulp-uglify": "^0.3.2", "gulp-watch": "^0.6.10", "jshint-stylish": "^0.4.0"