Skip to content

Commit

Permalink
Merge pull request #8 from micahscopes/main
Browse files Browse the repository at this point in the history
simple ESM export and package.json
  • Loading branch information
znah authored Mar 27, 2023
2 parents fa5e77a + 8e16c2a commit f252d92
Show file tree
Hide file tree
Showing 3 changed files with 30 additions and 0 deletions.
23 changes: 23 additions & 0 deletions package.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
{
"name": "swissgl",
"version": "0.0.1",
"description": "SwissGL is a minimalistic wrapper on top of WebGL2 JS API. It's designed to reduce the amount of boilerplate code required to manage GLSL shaders, textures and framebuffers when making procedural visualizations or simulations.",
"main": "swissgl.js",
"module": "swissgl.mjs",
"directories": {
"doc": "docs"
},
"scripts": {
"test": "echo \"Error: no test specified\" && exit 1"
},
"repository": {
"type": "git",
"url": "git+https://github.com/google/swissgl.git"
},
"author": "Alexander Mordvintsev",
"license": "Apache-2.0",
"bugs": {
"url": "https://github.com/google/swissgl/issues"
},
"homepage": "https://github.com/google/swissgl#readme"
}
2 changes: 2 additions & 0 deletions swissgl.js
Original file line number Diff line number Diff line change
Expand Up @@ -621,3 +621,5 @@ function SwissGL(canvas_gl) {
};
return glsl;
}

self._SwissGL = SwissGL;
5 changes: 5 additions & 0 deletions swissgl.mjs
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
import './swissgl.js'

const SwissGL = self._SwissGL

export default SwissGL

0 comments on commit f252d92

Please sign in to comment.