Skip to content

Instantly share code, notes, and snippets.

@eladb
Created September 1, 2012 08:11
Show Gist options
  • Save eladb/3566988 to your computer and use it in GitHub Desktop.
Save eladb/3566988 to your computer and use it in GitHub Desktop.
Hello uijs
#!/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
#!/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