Skip to content

Commit

Permalink
Use webpack to bundle for web
Browse files Browse the repository at this point in the history
  • Loading branch information
benjaminaaron committed Apr 20, 2024
1 parent 2216986 commit ffc6501
Show file tree
Hide file tree
Showing 8 changed files with 1,301 additions and 5 deletions.
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
.DS_Store
.idea/
node_modules/

dist/
2 changes: 1 addition & 1 deletion .npmignore
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
.DS_Store
.idea/
node_modules/
dev/

dev/
Dockerfile
13 changes: 13 additions & 0 deletions dev/index.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>Dev</title>
</head>
<body>
<script src="../dist/bundle.js"></script>
<script>
console.log(MatchingEngine.dev())
</script>
</body>
</html>
15 changes: 15 additions & 0 deletions global.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
import {
ValidationResult,
validateUserProfile,
validateOne,
validateAll,
dev
} from "./src/index.js"

window.MatchingEngine = {
ValidationResult,
validateUserProfile,
validateOne,
validateAll,
dev
}
Loading

0 comments on commit ffc6501

Please sign in to comment.