Begin testing gulp-beautify

patch-ionaru
Wes Cossick 9 years ago
parent 1ccc5b434f
commit b43b99e50d

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

@ -3,7 +3,8 @@ var gulp = require('gulp'),
uglify = require('gulp-uglify'), uglify = require('gulp-uglify'),
concat = require('gulp-concat'), concat = require('gulp-concat'),
header = require('gulp-header'), header = require('gulp-header'),
pkg = require('./package.json'); pkg = require('./package.json'),
beautify = require('gulp-beautify');
var banner = ['/**', var banner = ['/**',
' * <%= pkg.name %> v<%= pkg.version %>', ' * <%= pkg.name %> v<%= pkg.version %>',
@ -44,5 +45,11 @@ gulp.task('styles', function() {
.pipe(header(banner, {pkg: pkg})) .pipe(header(banner, {pkg: pkg}))
.pipe(gulp.dest('dist')); .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']);

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

File diff suppressed because it is too large Load Diff
Loading…
Cancel
Save