-
Notifications
You must be signed in to change notification settings - Fork 231
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* upgraded to webpack 4.x * updated webpack
- Loading branch information
Showing
12 changed files
with
254 additions
and
91 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
module.exports = function(api) { | ||
return { | ||
presets: [ | ||
[ | ||
"@babel/preset-env", | ||
{ | ||
targets: { | ||
chrome: 59, | ||
edge: 13, | ||
firefox: 50, | ||
ie: 11 | ||
}, | ||
// for uglifyjs... | ||
forceAllTransforms: api.env("production"), | ||
}, | ||
], | ||
], | ||
}; | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -2,3 +2,4 @@ | |
/lib | ||
mergely-*.tgz | ||
package-lock.json | ||
*.log |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,8 @@ | ||
# Changes | ||
|
||
## 4.0.8 | ||
* chore: updated webpack | ||
|
||
## 4.0.7 | ||
* chore: updated documentation | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
<!-- | ||
This example demonstrates the minimum amount of code required to use Mergely. | ||
--> | ||
<!DOCTYPE html> | ||
<html lang="en"> | ||
<head> | ||
<meta charset="utf-8" /><title>Mergely - Simple Example</title> | ||
<meta http-equiv="X-UA-Compatible" content="chrome=1, IE=edge"> | ||
<meta http-equiv="content-type" content="text/html; charset=UTF-8"/> | ||
<meta name="description" content="Merge and Diff your documents with diff online and share" /> | ||
<meta name="keywords" content="diff,merge,compare,jsdiff,comparison,difference,file,text,unix,patch,algorithm,saas,longest common subsequence" /> | ||
<meta name="author" content="Jamie Peabody" /> | ||
</head> | ||
<body> | ||
<div class="mergely-full-screen-8"> | ||
<div class="mergely-resizer"> | ||
<div id="mergely"></div> | ||
</div> | ||
</div> | ||
</body> | ||
</html> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
require('codemirror/lib/codemirror.css'); | ||
require('../src/mergely.css'); | ||
|
||
$(document).ready(function () { | ||
$('#mergely').mergely({ | ||
license: 'lgpl', | ||
cmsettings: { | ||
readOnly: false | ||
}, | ||
_debug: '', | ||
lhs: function(setValue) { | ||
setValue('the quick red fox\njumped over the hairy dog'); | ||
}, | ||
rhs: function(setValue) { | ||
setValue('the quick brown fox\njumped over the lazy dog'); | ||
} | ||
}); | ||
}); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
class Timer { | ||
static start() { | ||
Timer.t0 = Date.now(); | ||
} | ||
|
||
static stop() { | ||
var t1 = Date.now(); | ||
var td = t1 - Timer.t0; | ||
Timer.t0 = t1; | ||
return td; | ||
} | ||
} | ||
|
||
Timer.t0 = 0; | ||
|
||
exports = module.exports = Timer; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.