update to latest imba
This commit is contained in:
parent
d2aa91bf48
commit
d93ab1e484
30
README.md
30
README.md
|
@ -2,16 +2,32 @@
|
|||
|
||||
Tiny template for testing out Imba in the browser.
|
||||
|
||||
## Installing Imba
|
||||
## Getting started
|
||||
|
||||
> npm install -g imba
|
||||
### Install Imba
|
||||
```bash
|
||||
npm install -g imba
|
||||
```
|
||||
|
||||
## Compiling files
|
||||
### Clone repository
|
||||
```bash
|
||||
git clone https://github.com/somebee/hello-world-imba.git
|
||||
```
|
||||
|
||||
After installing Imba, navigate to the root directory in your terminal, and type:
|
||||
### Enter repository
|
||||
```bash
|
||||
cd hello-world-imba
|
||||
```
|
||||
|
||||
imba watch src/
|
||||
### Install dependencies
|
||||
```bash
|
||||
npm install
|
||||
```
|
||||
|
||||
This will start watching for .imba-files in src/ and automatically compiling them into lib/.
|
||||
### Watch to recompile
|
||||
```bash
|
||||
npm run watch
|
||||
```
|
||||
|
||||
index.html can be opened in your browser as a file.
|
||||
## Run
|
||||
Open `index.html` in your browser (you should not need a webserver).
|
File diff suppressed because one or more lines are too long
|
@ -4,7 +4,7 @@
|
|||
<title>Hello World</title>
|
||||
<meta charset="utf-8">
|
||||
<!-- include the imba library -->
|
||||
<script src="imba.js"></script>
|
||||
<script src="imba.dev.js"></script>
|
||||
</head>
|
||||
<body>
|
||||
<!-- your script -->
|
||||
|
|
|
@ -2,6 +2,6 @@
|
|||
|
||||
console.log("hello world");
|
||||
|
||||
q$$('body').append(t$('h1').setText("Hello world").end());
|
||||
return q$$('body').append(tag$.$h1().setText("Hello world").end());
|
||||
|
||||
})()
|
|
@ -0,0 +1,28 @@
|
|||
{
|
||||
"name": "hello-world-imba",
|
||||
"description": "Hello World for Imba",
|
||||
"keywords": [
|
||||
"imba",
|
||||
"website"
|
||||
],
|
||||
"author": "Sindre Aarsaether",
|
||||
"bugs": "https://github.com/somebee/hello-world-imba/issues",
|
||||
"version": "1.0.0",
|
||||
"engines": {
|
||||
"node": ">=0.8.0"
|
||||
},
|
||||
"scripts": {
|
||||
"build": "imba compile src/",
|
||||
"watch": "imba watch src/"
|
||||
},
|
||||
"files": [],
|
||||
"directories": {},
|
||||
"homepage": "http://imba.io",
|
||||
"repository": {
|
||||
"type": "git",
|
||||
"url": "git://github.com/somebee/hello-world-imba.git"
|
||||
},
|
||||
"dependencies": {
|
||||
"imba": "^0.14.3"
|
||||
}
|
||||
}
|
Loading…
Reference in New Issue