-
-
Notifications
You must be signed in to change notification settings - Fork 1.6k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
7 changed files
with
80 additions
and
0 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,3 @@ | ||
|
||
build: | ||
../node_modules/.bin/uglifyjs --source-map=file.sourcemap.js -c -o file.min.js file1.js file2.js |
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
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,4 @@ | ||
function add(a, b) { | ||
"use strict"; | ||
return a + b; | ||
} |
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,12 @@ | ||
function multiply(a, b) { | ||
"use strict"; | ||
return a * b; | ||
} | ||
function divide(a, b) { | ||
"use strict"; | ||
try { | ||
return multiply(add(a, b), a, b) / c; | ||
} catch (e) { | ||
Raven.captureException(e); | ||
} | ||
} |
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,30 @@ | ||
<!doctype html> | ||
<html> | ||
<head> | ||
<title>Scratch Disk</title> | ||
</head> | ||
<script src="../src/vendor/TraceKit/tracekit.js"></script> | ||
<script src="../src/raven.js"></script> | ||
<!-- <script src="scratch.min.js"></script> --> | ||
<script src="scratch.js" crossorigin></script> | ||
<script src="file.min.js" crossorigin></script> | ||
<script> | ||
//cool | ||
//really cool | ||
//awesome | ||
Raven.config('http://50dbe04cd1224d439e9c49bf1d0464df@localhost:8000/1').install(); | ||
|
||
Raven.setUser({ | ||
email: 'matt@ydekproductions.com', | ||
id: 5 | ||
}) | ||
|
||
|
||
</script> | ||
<body> | ||
<button id="test">Break me</button> | ||
<script>ready()</script> | ||
|
||
<button onclick="divide(1, 0)">Sourcemap breakage</button> | ||
</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,28 @@ | ||
function foo() { | ||
console.log("lol, i don't do anything") | ||
} | ||
|
||
function foo2() { | ||
foo() | ||
console.log('i called foo') | ||
} | ||
|
||
function broken() { | ||
try { | ||
/*fkjdsahfdhskfhdsahfudshafuoidashfudsa*/ fdasfds[0]; // i throw an error h sadhf hadsfdsakf kl;dsjaklf jdklsajfk ljds;klafldsl fkhdas;hf hdsaf hdsalfhjldksahfljkdsahfjkl dhsajkfl hdklsahflkjdsahkfj hdsjakhf dkashfl diusafh kdsjahfkldsahf jkdashfj khdasjkfhdjksahflkjdhsakfhjdksahfjkdhsakf hdajskhf kjdash kjfads fjkadsh jkfdsa jkfdas jkfdjkas hfjkdsajlk fdsajk fjkdsa fjdsa fdkjlsa fjkdaslk hfjlkdsah fhdsahfui | ||
}catch(e) { | ||
Raven.captureException(e); | ||
} | ||
} | ||
|
||
function ready() { | ||
document.getElementById('test').onclick = broken; | ||
} | ||
|
||
function foo3() { | ||
document.getElementById('crap').value = 'barfdasjkfhoadshflkaosfjadiosfhdaskjfasfadsfads'; | ||
} | ||
|
||
function somethingelse() { | ||
document.getElementById('somethingelse').value = 'this is some realy really long message just so our minification is largeeeeeeeeee!'; | ||
} |