Skip to content
Snippets Groups Projects
Commit 3c5f5d3a authored by arose's avatar arose
Browse files

wip, started mol-gl

parent 501f5a22
No related branches found
No related tags found
No related merge requests found
......@@ -49,9 +49,11 @@
"@types/jest": "^22.1.3",
"@types/node": "^9.4.6",
"@types/node-fetch": "^1.6.7",
"argparse": "^1.0.10",
"@types/react": "^16.0.4",
"@types/react-dom": "^16.0.4",
"benchmark": "^2.1.4",
"jest": "^22.4.2",
"regl": "git+https://github.com/regl-project/regl.git#45c6ec570232420fca21567499c9c5a2a054432e",
"rollup": "^0.56.2",
"rollup-plugin-buble": "^0.19.2",
"rollup-plugin-commonjs": "^8.3.0",
......@@ -65,7 +67,10 @@
"util.promisify": "^1.0.0"
},
"dependencies": {
"argparse": "^1.0.10",
"express": "^4.16.2",
"node-fetch": "^2.0.0"
"node-fetch": "^2.0.0",
"react": "^16.2.0",
"react-dom": "^16.2.0"
}
}
/**
* Copyright (c) 2018 mol* contributors, licensed under MIT, See LICENSE file for more info.
*
* @author Alexander Rose <alexander.rose@weirdbyte.de>
*/
import UI from './ui'
import * as React from 'react'
import * as ReactDOM from 'react-dom'
ReactDOM.render(<UI/>, document.getElementById('app'));
\ No newline at end of file
/**
* Copyright (c) 2018 mol* contributors, licensed under MIT, See LICENSE file for more info.
*
* @author Alexander Rose <alexander.rose@weirdbyte.de>
*/
import * as React from 'react'
export default class Root extends React.Component {
render() {
return <div style={{ position: 'absolute', top: 0, right: 0, left: 0, bottom: 0, overflow: 'hidden' }}>
</div>
}
}
\ No newline at end of file
/**
* Copyright (c) 2018 mol* contributors, licensed under MIT, See LICENSE file for more info.
*
* @author Alexander Rose <alexander.rose@weirdbyte.de>
*/
import REGL = require('regl');
import { InitializationOptions } from 'regl'
export function create(params: InitializationOptions) {
return REGL(params)
}
......@@ -9,6 +9,7 @@
"strictNullChecks": true,
"strictFunctionTypes": true,
//"downlevelIteration": true,
"jsx": "react",
"lib": [ "es6", "dom", "esnext.asynciterable", "es2016" ],
"outDir": "build/node_modules",
"baseUrl": "src",
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment