mirror of
https://github.com/sparksuite/simplemde-markdown-editor.git
synced 2024-06-18 05:35:03 +02:00
add es2015 & optimize banner
This commit is contained in:
parent
6abda7ab68
commit
3303ecd4ab
|
@ -94,8 +94,14 @@
|
|||
|
||||
.cm-tab { display: inline-block; text-decoration: inherit; }
|
||||
|
||||
.CodeMirror-rulers {
|
||||
position: absolute;
|
||||
left: 0; right: 0; top: -50px; bottom: -20px;
|
||||
overflow: hidden;
|
||||
}
|
||||
.CodeMirror-ruler {
|
||||
border-left: 1px solid #ccc;
|
||||
top: 0; bottom: 0;
|
||||
position: absolute;
|
||||
}
|
||||
|
||||
|
@ -206,9 +212,6 @@ div.CodeMirror span.CodeMirror-nonmatchingbracket {color: #f22;}
|
|||
display: inline-block;
|
||||
vertical-align: top;
|
||||
margin-bottom: -30px;
|
||||
/* Hack to make IE7 behave */
|
||||
*zoom:1;
|
||||
*display:inline;
|
||||
}
|
||||
.CodeMirror-gutter-wrapper {
|
||||
position: absolute;
|
||||
|
@ -252,8 +255,8 @@ div.CodeMirror span.CodeMirror-nonmatchingbracket {color: #f22;}
|
|||
position: relative;
|
||||
overflow: visible;
|
||||
-webkit-tap-highlight-color: transparent;
|
||||
-webkit-font-variant-ligatures: none;
|
||||
font-variant-ligatures: none;
|
||||
-webkit-font-variant-ligatures: contextual;
|
||||
font-variant-ligatures: contextual;
|
||||
}
|
||||
.CodeMirror-wrap pre {
|
||||
word-wrap: break-word;
|
||||
|
@ -297,7 +300,10 @@ div.CodeMirror span.CodeMirror-nonmatchingbracket {color: #f22;}
|
|||
visibility: hidden;
|
||||
}
|
||||
|
||||
.CodeMirror-cursor { position: absolute; }
|
||||
.CodeMirror-cursor {
|
||||
position: absolute;
|
||||
pointer-events: none;
|
||||
}
|
||||
.CodeMirror-measure pre { position: static; }
|
||||
|
||||
div.CodeMirror-cursors {
|
||||
|
@ -324,9 +330,6 @@ div.CodeMirror-dragcursors {
|
|||
background: rgba(255, 255, 0, .4);
|
||||
}
|
||||
|
||||
/* IE7 hack to prevent it from returning funny offsetTops on the spans */
|
||||
.CodeMirror span { *vertical-align: text-bottom; }
|
||||
|
||||
/* Used to force a border model for a node */
|
||||
.cm-force-border { padding-right: .1px; }
|
||||
|
||||
|
|
18537
debug/simplemde.debug.js
18537
debug/simplemde.debug.js
File diff suppressed because one or more lines are too long
18535
debug/simplemde.js
18535
debug/simplemde.js
File diff suppressed because it is too large
Load diff
2
dist/simplemde.min.css
vendored
2
dist/simplemde.min.css
vendored
File diff suppressed because one or more lines are too long
18
dist/simplemde.min.js
vendored
18
dist/simplemde.min.js
vendored
File diff suppressed because one or more lines are too long
|
@ -1,26 +1,25 @@
|
|||
"use strict";
|
||||
import babelify from 'babelify'
|
||||
import gulp from 'gulp'
|
||||
import minifycss from 'gulp-clean-css'
|
||||
import uglify from 'gulp-uglify'
|
||||
import concat from 'gulp-concat'
|
||||
import header from 'gulp-header'
|
||||
import buffer from 'vinyl-buffer'
|
||||
import pkg from './package.json'
|
||||
import debug from 'gulp-debug'
|
||||
import eslint from 'gulp-eslint'
|
||||
import prettify from 'gulp-jsbeautifier'
|
||||
import browserify from 'browserify'
|
||||
import source from 'vinyl-source-stream'
|
||||
import rename from 'gulp-rename'
|
||||
|
||||
var gulp = require("gulp"),
|
||||
minifycss = require("gulp-clean-css"),
|
||||
uglify = require("gulp-uglify"),
|
||||
concat = require("gulp-concat"),
|
||||
header = require("gulp-header"),
|
||||
buffer = require("vinyl-buffer"),
|
||||
pkg = require("./package.json"),
|
||||
debug = require("gulp-debug"),
|
||||
eslint = require("gulp-eslint"),
|
||||
prettify = require("gulp-jsbeautifier"),
|
||||
browserify = require("browserify"),
|
||||
source = require("vinyl-source-stream"),
|
||||
rename = require("gulp-rename");
|
||||
|
||||
var banner = ["/**",
|
||||
" * <%= pkg.name %> v<%= pkg.version %>",
|
||||
" * Copyright <%= pkg.company %>",
|
||||
" * @link <%= pkg.homepage %>",
|
||||
" * @license <%= pkg.license %>",
|
||||
" */",
|
||||
""].join("\n");
|
||||
const banner = `/**
|
||||
* <%= pkg.name %> v<%= pkg.version %>
|
||||
* Copyright <%= pkg.company %>
|
||||
* @link <%= pkg.homepage %>
|
||||
* @license <%= pkg.license %>
|
||||
*/\n`
|
||||
|
||||
gulp.task("prettify-js", [], function() {
|
||||
return gulp.src("./src/js/simplemde.js")
|
||||
|
@ -44,6 +43,7 @@ gulp.task("lint", ["prettify-js"], function() {
|
|||
|
||||
function taskBrowserify(opts) {
|
||||
return browserify("./src/js/simplemde.js", opts)
|
||||
.transform("babelify", {presets: ['es2015', 'stage-3']})
|
||||
.bundle();
|
||||
}
|
||||
|
10
package.json
10
package.json
|
@ -26,20 +26,24 @@
|
|||
"marked": "*"
|
||||
},
|
||||
"devDependencies": {
|
||||
"babel-core": "^6.21.0",
|
||||
"babel-preset-es2015": "^6.18.0",
|
||||
"babel-preset-stage-3": "^6.17.0",
|
||||
"babelify": "^7.3.0",
|
||||
"browserify": "*",
|
||||
"debug": "*",
|
||||
"eslint": "*",
|
||||
"gulp": "*",
|
||||
"gulp-clean-css": "*",
|
||||
"gulp-concat": "*",
|
||||
"gulp-debug": "*",
|
||||
"gulp-eslint": "*",
|
||||
"gulp-header": "*",
|
||||
"gulp-jsbeautifier": "*",
|
||||
"gulp-clean-css": "*",
|
||||
"gulp-rename": "*",
|
||||
"gulp-uglify": "*",
|
||||
"vinyl-source-stream": "*",
|
||||
"vinyl-buffer": "*"
|
||||
"vinyl-buffer": "*",
|
||||
"vinyl-source-stream": "*"
|
||||
},
|
||||
"repository": {
|
||||
"type": "git",
|
||||
|
|
Loading…
Reference in a new issue