-
Notifications
You must be signed in to change notification settings - Fork 44
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #8 from micahscopes/main
simple ESM export and package.json
- Loading branch information
Showing
3 changed files
with
30 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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" | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -621,3 +621,5 @@ function SwissGL(canvas_gl) { | |
}; | ||
return glsl; | ||
} | ||
|
||
self._SwissGL = SwissGL; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
import './swissgl.js' | ||
|
||
const SwissGL = self._SwissGL | ||
|
||
export default SwissGL |