npm install -g imba
Regular code will run fine without any dependencies, but if you intend to use tags and selectors, remember to include the Imba library. On the server you should do
npm install imba --save in your project, and
require 'imba' in your application. For a simple example see hello-world
Imba ships with a basic node wrapper for running imba-scripts. Use
imba the same way you would use
imba without arguments to see available options.
imba app.imbawill compile and execute app.imba
imbapack utility is a convenient wrapper around
webpack, which preprocesses your config to include the necessary configurations for loading .imba files. It supports all the same options as
webpack and will work with
webpack.config.js files directly. When you use
imbapack you do not need to declare an imba-loader and resolveExtensions in your configs.
imbapack app.imba bundle.jscompiles the file app.imba, and all required files into a webpack bundle named bundle.js. This file can be included in a html page like any other js-file. See webpack for more details.
imbapack --watch app.imba bundle.jssame as above, but recompiles whenever app.imba or any related files change.
imbac utility is for compiling your scripts to js. When working on client-side projects you should rather use
imbapack (see above). Call
imbac without arguments to see available options. If you are not able to use
imba to run your project, or you really need to precompile the code (for running on node), you can use
We currently recommend Sublime Text for Imba, since this is the only editor with a solid plugin so far. The sublime-plugin can be installed through Sublime Package Manager. It is highly recommended to use Sublime Text 3 for best highlighting and annotations.
Contributors are always welcome. To start with, you should clone the repository and try to get somewhat familiar with the codebase. Please shoot me a message on github if you have any comments or questions, and I will try to get back to you asap.