Created
September 1, 2012 08:11
-
-
Save eladb/3566988 to your computer and use it in GitHub Desktop.
Hello uijs
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
#!/bin/bash | |
mkdir -p ~/uijsdev | |
cd ~/uijsdev | |
git clone [email protected]:eladb/uijs | |
git clone [email protected]:eladb/uijs-controls | |
git clone [email protected]:eladb/uijs-devtools | |
cd uijs-devtools | |
npm install -g . | |
cd ../uijs | |
npm link | |
cd ../uijs-controls | |
npm link | |
echo uijs installation complete |
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
#!/bin/bash | |
mkdir -p ~/uijsdev/hello | |
cd ~/uijsdev/hello | |
npm link uijs | |
npm link uijs-controls | |
cat > hello.js <<HERE | |
var uijs = require('uijs'); | |
var controls = require('uijs-controls'); | |
var app = uijs.box(); | |
app.add(controls.label({ | |
x: 10, y: 10, width: 100, height: 50, | |
color: 'black', | |
text: 'hello hello', | |
})); | |
module.exports = app; | |
HERE | |
uijs build hello.js | |
open dist/hello.uijs.html |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment