This post was written by Josh Rennert, Program Manager, Windows Ecosystem & Frameworks team
Combining WinJS and Apache Cordova offers you a set of UI controls with high polish and performance, in addition to a cohesive set of components and utilities, which spans not only Windows but other leading platforms as well. To see an example of how the two can interact together, be sure to check out the WinJS/Cordova Stocks sample app.
Creating a Cordova project today is fairly straightforward. There are two workflows you can take. The first provides cross-platform compatibility. By taking advantage of your shared web assets, using the Command-Line Interface (CLI) lets you target multiple platforms, abstracting away from the lower-level project implementations. The second focuses more on platform-specific concentration. Targeting a single platform allows for additional customization and specialization you wouldn’t normally achieve with the cross-platform workflow.
Regardless of which path you choose, developing a Cordova app normally requires using a combination of the CLI and your favorite integrated development environment (IDE). But if you’re developing on a Windows device, there’s an easier way.
Released as a preview alongside the Visual Studio 2013 Update 2 earlier this year, the Multi-Device Hybrid Apps extension (MDD) provides tooling support for Apache Cordova from within Visual Studio. It offers the same great end-to-end development experience—complete with IntelliSense, cross-platform debugging and emulation—while abstracting project configuration away from the command line. The MDD minimizes the barrier to entry, eliminating many of the initial steps necessary to create your first Cordova project.
With Apache Cordova and WinJS you can develop a truly cross-platform application using one consistent set of programming languages, leveraging a plethora of native features which light up on any device. Visitthe following links to learn more about using Apache Cordova and WinJS today:
- MS Open Tech blog: Apache Cordova gains Windows 8.1 and Windows Phone 8.1 support
- Apache Cordova: Windows Platform Guide
- WinJS/Cordova Stocks sample app
- Try WinJS
- WinJS GitHub repository
- Multi-Device Hybrid Apps extension for Visual Studio
Updated November 7, 2014 11:24 pm