Begin testing gulp-beautify

This commit is contained in:
Wes Cossick 2015-09-01 13:32:57 -05:00
parent 1ccc5b434f
commit b43b99e50d
5 changed files with 1168 additions and 12 deletions

File diff suppressed because one or more lines are too long

14
dist/simplemde.min.js vendored

File diff suppressed because one or more lines are too long

View file

@ -3,7 +3,8 @@ var gulp = require('gulp'),
uglify = require('gulp-uglify'),
concat = require('gulp-concat'),
header = require('gulp-header'),
pkg = require('./package.json');
pkg = require('./package.json'),
beautify = require('gulp-beautify');
var banner = ['/**',
' * <%= pkg.name %> v<%= pkg.version %>',
@ -44,5 +45,11 @@ gulp.task('styles', function() {
.pipe(header(banner, {pkg: pkg}))
.pipe(gulp.dest('dist'));
});
gulp.task('beautify', function() {
gulp.src('./src/js/simplemde.js')
.pipe(beautify({indentSize: 4}))
.pipe(gulp.dest('./src/js/test'))
});
gulp.task('default', ['scripts', 'styles']);
gulp.task('default', ['scripts', 'styles', 'beautify']);

View file

@ -19,7 +19,8 @@
"gulp-minify-css": "*",
"gulp-uglify": "*",
"gulp-concat": "*",
"gulp-header": "*"
"gulp-header": "*",
"gulp-beautify": "*"
},
"repository": {
"type": "git",

1150
src/js/test/simplemde.js Normal file

File diff suppressed because it is too large Load diff