chore: Prepare package for publication

Construct a proper package.json in the dist file and copy
  the README there for a reasonably complete shipped package.
This commit is contained in:
Glen Whitney 2023-09-04 17:58:42 -07:00
parent 66b24e657b
commit d143299b54
7 changed files with 68 additions and 555 deletions

View file

@ -6,7 +6,23 @@
<script>
(async () => {
const vrml1to97 = await import('../dist/vrml1to97/index.js')
console.log(vrml1to97.convert('if (moo) cows // hurray'))
console.log(vrml1to97.convert( `
#VRML V1.0 ascii
# Example 2 - using the Separator and Material Nodes
# Here comes the Sun
# The Separator node groups everything within it together
Separator {
# The material will affect all subsequent nodes
# The Sun becomes yellow
Material {
diffuseColor 1 1 0 # R G B
}
Sphere {
radius 10 # the Sun is very big
}
}`))
})()
</script>
</head>