update to latest imba

This commit is contained in:
somebee 2016-01-16 10:29:42 +01:00
parent d2aa91bf48
commit d93ab1e484
6 changed files with 4110 additions and 2722 deletions

View File

@ -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).

4057
imba.dev.js Normal file

File diff suppressed because one or more lines are too long

2713
imba.js

File diff suppressed because it is too large Load Diff

View File

@ -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 -->

View File

@ -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());
})()

28
package.json Normal file
View File

@ -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"
}
}