mirror of
https://github.com/sparksuite/simplemde-markdown-editor.git
synced 2024-06-23 16:00:11 +02:00
Begin testing gulp-beautify
This commit is contained in:
parent
1ccc5b434f
commit
b43b99e50d
2
dist/simplemde.min.css
vendored
2
dist/simplemde.min.css
vendored
File diff suppressed because one or more lines are too long
14
dist/simplemde.min.js
vendored
14
dist/simplemde.min.js
vendored
File diff suppressed because one or more lines are too long
11
gulpfile.js
11
gulpfile.js
|
@ -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']);
|
|
@ -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
1150
src/js/test/simplemde.js
Normal file
File diff suppressed because it is too large
Load diff
Loading…
Reference in a new issue