Skip to content

Commit

Permalink
fix: Cleanup build, turn on DCE, add another example with langgen, cl…
Browse files Browse the repository at this point in the history
…eanup seed.
  • Loading branch information
vantreeseba committed Nov 24, 2020
1 parent 769133e commit 00321c4
Show file tree
Hide file tree
Showing 7 changed files with 1,528 additions and 4,154 deletions.
14 changes: 6 additions & 8 deletions build.hxml
Original file line number Diff line number Diff line change
@@ -1,15 +1,13 @@
## JS
# DEFINES / MACROS
-D dce=full
-D js-es=6

-lib munit
-lib seedyrng

-cp src
--macro include('', true, null, ['src'])

--each

## JS
# DEFINES / MACROS
-D dce=no
-D js-es=6
-D source-map-content

# OUTPUT
-js dist/js/storygen.js
13 changes: 8 additions & 5 deletions docs/index.html
Original file line number Diff line number Diff line change
@@ -1,9 +1,13 @@
<html>

<head>
<meta charset="utf-8" />
<title>Story Gen Example.</title>
<link rel="stylesheet" type="text/css" href="index.css" </head>
<link rel="stylesheet" type="text/css" href="neumorphic.css" </head>
<link rel="stylesheet" type="text/css" href="index.css" />
<link rel="stylesheet" type="text/css" href="neumorphic.css" />
<script src='./storygen.js'></script>
<script src='./langgen.js'></script>
</head>

<body class="dark">
<a href="https://github.com/dropecho/storygen"><img loading="lazy" width="149" height="149"
Expand All @@ -19,14 +23,13 @@
</div>
</div>
</body>
<script src='./storygen.js'></script>
<script src='./index.js'></script>
<script src='./example0.js'></script>
<script src='./example1.js'></script>
<script src='./example2.js'></script>
<script src='./example3.js'></script>
<script src='./example4.js'></script>
<script src='./example_memory.js'></script>
<script src='./example5.js'></script>

<script src='./spirit_generator.js'></script>
<script src='./spirit_generator_langgen.js'></script>
</html>
Loading

0 comments on commit 00321c4

Please sign in to comment.