This library aims to provide a lightweight Common Language Infrastructure for web applications without the need for browser plugins or server-side execution.
This library was developed as a standalone dependency for a commercial project which enables regular .Net applications to run as responsive web applications without having to rewrite them completely.
- Download the latest stable release here
- Extract the contents of the archive and copy the contents of the
dist
folder to your project's public assets folder.
- Include the comila.min.js script on the page
- Run an application by invoking
comilajs.run('path/to/application.exe')
<!DOCTYPE html>
<html>
<head>
<title>Application Name</title>
<meta charset="utf-8"/>
<script src="assets/comila.min.js"></script>
</head>
<body>
<script>
comilajs.run('path/to/application.exe');
</script>
</body>
</html>
An application must use P/Invoke in order to access the JavaScript engine in the
browser. This is achieved by targeting javascript.dll
.
This library provides only the virtual execution system (VES) and as such, it
cannot directly run applications which rely on classes from mscorlib
. However,
custom implementations of these classes can be provided by the applications.
- Fork the repository
- Create your feature branch:
git checkout -b feature/my-new-feature
- Commit your changes:
git commit -am 'Add some feature'
- Push to the branch:
git push origin feature/my-new-feature
- Submit a pull request
This library is licensed under the GNU Lesser General Public License - see the LICENSE file for details.