Merge pull request #46 from NextStepWebs/development
Restructure to use gulp.js, Value improvements, Fix bugspull/50/head 1.5.1
commit
343b4a8027
@ -1 +1,2 @@
|
|||||||
localtesting/*
|
localtesting/*
|
||||||
|
node_modules/
|
||||||
|
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
@ -0,0 +1,48 @@
|
|||||||
|
var gulp = require('gulp'),
|
||||||
|
minifycss = require('gulp-minify-css'),
|
||||||
|
uglify = require('gulp-uglify'),
|
||||||
|
concat = require('gulp-concat'),
|
||||||
|
header = require('gulp-header'),
|
||||||
|
pkg = require('./package.json');
|
||||||
|
|
||||||
|
var banner = ['/**',
|
||||||
|
' * <%= pkg.name %> v<%= pkg.version %>',
|
||||||
|
' * Copyright <%= pkg.company %>',
|
||||||
|
' * @link <%= pkg.homepage %>',
|
||||||
|
' * @license <%= pkg.license %>',
|
||||||
|
' */',
|
||||||
|
''].join('\n');
|
||||||
|
|
||||||
|
gulp.task('scripts', function() {
|
||||||
|
var js_files = [
|
||||||
|
'./src/js/codemirror/codemirror.js',
|
||||||
|
'./src/js/codemirror/continuelist.js',
|
||||||
|
'./src/js/codemirror/fullscreen.js',
|
||||||
|
'./src/js/codemirror/markdown.js',
|
||||||
|
'./src/js/codemirror/overlay.js',
|
||||||
|
'./src/js/codemirror/gfm.js',
|
||||||
|
'./src/js/codemirror/xml.js',
|
||||||
|
'./src/js/typo.js',
|
||||||
|
'./src/js/spell-checker.js',
|
||||||
|
'./src/js/marked.js',
|
||||||
|
'./src/js/simplemde.js'];
|
||||||
|
|
||||||
|
return gulp.src(js_files)
|
||||||
|
.pipe(header(banner, {pkg: pkg}))
|
||||||
|
.pipe(concat('simplemde.min.js'))
|
||||||
|
.pipe(gulp.dest('dist'))
|
||||||
|
.pipe(uglify())
|
||||||
|
.pipe(header(banner, {pkg: pkg}))
|
||||||
|
.pipe(gulp.dest('dist'));
|
||||||
|
});
|
||||||
|
|
||||||
|
gulp.task('styles', function() {
|
||||||
|
return gulp.src('./src/css/*.css')
|
||||||
|
.pipe(concat('simplemde.min.css'))
|
||||||
|
.pipe(gulp.dest('dist'))
|
||||||
|
.pipe(minifycss())
|
||||||
|
.pipe(header(banner, {pkg: pkg}))
|
||||||
|
.pipe(gulp.dest('dist'));
|
||||||
|
});
|
||||||
|
|
||||||
|
gulp.task('default', ['scripts', 'styles']);
|
@ -0,0 +1,28 @@
|
|||||||
|
{
|
||||||
|
"name": "simplemde",
|
||||||
|
"version": "1.5.1",
|
||||||
|
"description": "A simple, beautiful, and embeddable JavaScript markdown editor. Features autosaving and spell checking.",
|
||||||
|
"keywords": ["embeddable", "markdown", "editor", "javascript", "wysiwyg"],
|
||||||
|
"homepage": "https://github.com/NextStepWebs/simplemde-markdown-editor",
|
||||||
|
"main": "gulpfile.js",
|
||||||
|
"license": "MIT",
|
||||||
|
"company": "Next Step Webs, Inc.",
|
||||||
|
"author": {
|
||||||
|
"name": "Wes Cossick",
|
||||||
|
"url": "http://www.WesCossick.com"
|
||||||
|
},
|
||||||
|
"bugs": {
|
||||||
|
"url": "https://github.com/NextStepWebs/simplemde-markdown-editor/issues"
|
||||||
|
},
|
||||||
|
"dependencies": {
|
||||||
|
"gulp": "*",
|
||||||
|
"gulp-minify-css": "*",
|
||||||
|
"gulp-uglify": "*",
|
||||||
|
"gulp-concat": "*",
|
||||||
|
"gulp-header": "*"
|
||||||
|
},
|
||||||
|
"repository": {
|
||||||
|
"type": "git",
|
||||||
|
"url": "https://github.com/NextStepWebs/simplemde-markdown-editor"
|
||||||
|
}
|
||||||
|
}
|
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
@ -1,20 +0,0 @@
|
|||||||
# How to compile
|
|
||||||
Minify the JS in this order:
|
|
||||||
|
|
||||||
1. `codemirror/codemirror.js`
|
|
||||||
1. `codemirror/continuelist.js`
|
|
||||||
1. `codemirror/fullscreen.js`
|
|
||||||
1. `codemirror/markdown.js`
|
|
||||||
1. `codemirror/overlay.js`
|
|
||||||
1. `codemirror/gfm.js`
|
|
||||||
1. `codemirror/xml.js`
|
|
||||||
1. `typo/typo.js`
|
|
||||||
1. `spell-checker/spell-checker.js`
|
|
||||||
1. `marked.js`
|
|
||||||
1. `simplemde.js`
|
|
||||||
|
|
||||||
Minify the CSS in this order:
|
|
||||||
|
|
||||||
1. `codemirror/codemirror.css`
|
|
||||||
1. `simplemde.css`
|
|
||||||
1. `spell-checker/spell-checker.css`
|
|
Loading…
Reference in New Issue