Skip to content

Commit

Permalink
#76, #74
Browse files Browse the repository at this point in the history
  • Loading branch information
scniro committed Apr 22, 2018
1 parent 3250f58 commit b91ffbb
Show file tree
Hide file tree
Showing 9 changed files with 1,142 additions and 843 deletions.
8 changes: 7 additions & 1 deletion .babelrc
Original file line number Diff line number Diff line change
@@ -1,3 +1,9 @@
{
"presets": ["react", "es2015"]
"presets": [
"react",
"es2015"
],
"plugins": [
"transform-object-assign"
]
}
5 changes: 5 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,8 @@
4.3.0
==================
* #74 => add support for more DOM events => onContextMenu | onCopy | onCut | onDblClick | onDragLeave | onDragStart | onMouseDown | onPaste | onTouchStart
* #76 => babel-ify index.js package for out of the box runtime support e.g. `Object.assign`

4.2.0
==================
* add notion of UnControlled#detach => [`editorDidAttach`, `editorDidDetach`] (related to #37)
Expand Down
2 changes: 1 addition & 1 deletion docs/app.min.js

Large diffs are not rendered by default.

12 changes: 8 additions & 4 deletions gulpfile.js
Original file line number Diff line number Diff line change
@@ -1,17 +1,21 @@
const gulp = require('gulp');
const replace = require('gulp-replace');
const rimraf = require('rimraf');
const beautify = require('gulp-beautify');
const babel = require('gulp-babel');

gulp.task('ts-scrub:index', () => {
return gulp.src('./.ts/index.js')
.pipe(replace('var codemirror = require("codemirror");', ''))
.pipe(replace('"', '\''))
.pipe(gulp.dest('.'));
.pipe(replace('var codemirror = require("codemirror");', ''))
.pipe(replace('"', '\''))
.pipe(babel())
.pipe(beautify({indent_size: 2}))
.pipe(gulp.dest('.'));
});

gulp.task('ts-scrub:declaration', () => {
return gulp.src('./.ts/index.d.ts')
.pipe(gulp.dest('.'));
.pipe(gulp.dest('.'));
});

gulp.task('ts-scrub', ['ts-scrub:index', 'ts-scrub:declaration'], (done) => {
Expand Down
28 changes: 20 additions & 8 deletions index.d.ts

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading

0 comments on commit b91ffbb

Please sign in to comment.