COLT 2.0 released with support for Angular.js, node-webkit
Today we are releasing a new version of our product. COLT 2.0. This release will be interesting JavaScript developers.
Main news. Short
Support for node-webkit, support for working with remote or local servers (live-proxy). Console version of COLT (running without UI on the server). Angular support. New HTML delivery mechanism. Improved work with Sublime Text (JSDocs and more). Performance improvement. New interface on node-webkit. Improved support for Linux. New demo mode (as in Sublime). Significant reduction in the size of the distribution.
Flash
For someone sad news. We no longer support Flash. Flash version will be supported by the community. Flash sources will be available soon on github. We decided to concentrate fully on JS. Node, web, node-webkit, phonegap. The new address of our project will be COLT.IO. ')
Angular.js
1. Recompile directives after live-update HTML. That is, if you change the directive somehow, for example {{myData}} after the change, you will not see the curly braces, but you will see the data from $ scope. Our HTML recompilation is smart enough, we understand that the directives are inside the ng-repeater and “reassemble” the part inside the “repeater”. To visually track the recompilation and which area was affected during the update, we show a red box around the updated item.
2. Loading HTML changes and recompiling directives will work with loaded HTML. You can edit the template that uploaded the main page via ng-router and immediately see what your compiled HTML will look like.
Check out the demo how it works.
Live proxy
Now in the main document address in the project settings you can specify the address of the page not on the server. Either site. In this case, COLT will load pages and resources from the server, and transform them to work in live mode. As soon as the resource is changed on the server, COLT will react to this change and deliver the new JS and HTML changes to all connected clients. Now no matter what server programming languages ​​you use. Sublime will also receive a new state, comment, output values ​​to the console. You only need to ensure the synchronization of the files of your project to the server, for which there are already quite a lot of tools and instruments. We expect that this innovation should help embed COLT and livecoding in large projects with a complex stack of server solutions.
Console version
Now, to start a live session, you do not need to start the interface. You can run the jar from the console by passing the first path to the xml project.
For example:
$ java jar colt.jar myProject.colt
This mode is very well suited for server installation in live-proxy mode.
New HTML Update Engine
New approaches to application development suggest that the application may consist of a large number of html files. One Page Application. Now, each tag in your project is assigned a unique identifier that helps to find it in the downloaded application, from any document. And now, when you change any tag in any file in the project, its new state will be displayed at run-time. To help visually monitor changes, a gray box style will be temporarily added to such a tag. Recall that our mechanism for delivering HTML and JS works in any browser and on any device, mobile, TV, and so on.
Support node-webkit
Now livecoding, integration with Sublime works not only for browsers and node.js. Now there is another execution environment that we support. You can start the application from Sublime or from the project interface and any HTML changes will be updated. Sublime retrieves data for autolite directly from the application.
Demonstration video:
Sublime
Here are the improvements in Sublime.
1. Better display of runtime errors and syntax. 2. Support JS Docs. 3. Automatic generation of the COLT project for node and node.webkit. 4. Improving autocomplete. 5. Improved output of values ​​to the console - “show value” has been improved and the output to the Sublime console is now duplicated with console.log () output to the browser - it is easier to disassemble objects with a complex structure. 6. A large number of bugs and “go to function declaration” issues have been resolved.
Separately by JS Docs, you can watch the video.
Webstorm
Many Webstorm users like some of the features that we have implemented for Sublime. The Webstrom has never had any problems with the content, but it’s still necessary to recognize that our delivery of HTML and JS is better. I also like the ability to display the value of any variable without starting the session.
These features will soon appear in the plugin to Webstorm.
Expect an updated Webstorm plugin next week.
New interface
Now our interface is created using node-webkit. The past interface on java-fx has shown itself in a number of ways not in the best way. Now the start has become faster, the distribution has significantly lost weight, we use our own tools to develop our product.
We have laid out the source code of our interface in open access, if you have a task to make an application for win / mac / linux without much effort and expense, you can use our project as a starting point.
We copied the idea of ​​a demo mode from Sublime. Now at the start of COLT you will not be asked to enter the serial number. Just when working with COLT, you will be notified that you are working with an unregistered version.
We also added a purchase option for a year with a good discount.
Plans for the near future -
1. Move post- and pre-compile scripts from gradle to grunt (they are now temporarily locked)
2. Improve Angular support in Sublime. Autocommit directives. Autofit functions and $ scope fields inside tag attributes and binding-brackets. Go to directive declaration. Smart Snippets Angular.
3. Reduce the startup speed of node.js projects and node-webkit. The mechanism of dependencies. Transformation of the code on demand as we implemented it for web projects.
4. Find function usages in Sublime.
5. Updated Webstorm Plugin
6. Improve performance on large scripts.
We also plan to support other frameworks - not just Angular. If you have ideas for what you need, for example, where HTML recompilation is needed - write.
Ask questions. We are not waiting for your feedback.
the site of the project codeorchestra.com and the domain COLT.IO will also be available soon