Skip to content

Commit

Permalink
Add bundling code for browserify
Browse files Browse the repository at this point in the history
  • Loading branch information
eliben committed Jul 11, 2020
1 parent ff8b573 commit 6b8bc83
Show file tree
Hide file tree
Showing 4 changed files with 3,249 additions and 1 deletion.
5 changes: 4 additions & 1 deletion Makefile
Original file line number Diff line number Diff line change
@@ -1,8 +1,11 @@
.PHONY: lint test
.PHONY: lint test bundle

lint:
# jshint uses .jshintignore and .jshintrc
jshint .

test:
npm test

bundle:
browserify src/bundleMain.js --s js8080sim -o js8080simBundle.js
36 changes: 36 additions & 0 deletions index.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
<!doctype html>
<style>
#spacerheader {
width: 60px;
}
th, td {
text-align: left;
padding-left: 15px;
}
.stored {
background-color: #d4eed4;
}
#status {
width: 240px;
}
</style>

<body>
<table>
<tr>
<td><button id="run">Run code</button></td>
<td><div id="status"></div></td>
<td><button id="clear">Clear</button></td>
</tr>
</table>
<hr/>
<table id="codetable">
<tr>
<th>Addr</th>
<th>RAM</th>
<th id="spacerheader"></th>
<th>Result</th>
</tr>
</table>
<script src="js8080simBundle.js"></script>
</body>
Loading

0 comments on commit 6b8bc83

Please sign in to comment.