Last active
May 29, 2019 17:51
-
-
Save askucher/62cd3215c6c8e8668f0028bca55b1071 to your computer and use it in GitHub Desktop.
LSX Boostrap
This file contains hidden or 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
require! { | |
\react | |
} | |
module.exports = ({ store })-> | |
.pug Hello world |
This file contains hidden or 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
<!DOCTYPE html> | |
<html lang="en-us"> | |
<head> | |
<meta charset="utf-8"> | |
<title>Web3 Wallet</title> | |
<meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=0" /> | |
<link href="https://fonts.googleapis.com/css?family=Open+Sans" rel="stylesheet"> | |
<style>body { margin: 0; padding: 0; font-family: Open Sans; }</style> | |
<dynamicCSS/> | |
</head> | |
<body> | |
<div id="app"></div> | |
<dynamicHTML/> | |
<script type="text/javascript"> | |
window.onload = function() { window.bootstrap(document.getElementById("app")); } | |
</script> | |
</body> | |
</html> |
This file contains hidden or 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
require! { | |
\mobx-react : { observer } | |
\mobx : { observable } | |
\react-dom : { render } | |
\react | |
\./app.ls | |
} | |
store = observable {} | |
Main = observer ({store})-> | |
app { store } | |
export bootstrap = (root)-> | |
store.root = root | |
render do | |
Main.pug( store=store ) | |
root | |
window <<<< out$ |
This file contains hidden or 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
lsxc -a landing -t index.html -wsfkibhc main.ls |
This file contains hidden or 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
npm i lsxc -g —unsafe-perm | |
mkdir project | |
cd project | |
npm init | |
npm i react react-dom mobx mobx-react --save |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment