ace/README.md

61 строка
2.7 KiB
Markdown
Исходник Обычный вид История

2016-02-05 22:11:19 +03:00
![Ace Logo](http://microsoft.github.io/ace/assets/images/logo/ace.png) Visit our [homepage](http://microsoft.github.io/ace/) & [get started](http://microsoft.github.io/ace/docs/getting-started/) in minutes!
2016-01-28 00:42:58 +03:00
2016-01-31 21:42:22 +03:00
## WHAT IS ACE?
2016-01-28 00:42:58 +03:00
An Apache Cordova plugin that enables you to easily add native UI and native code to your JavaScript and HTML.
* Mix native UI with HTML
* Use a cross-platform native UI framework
* Call native code without additional plugins
2016-02-05 22:11:19 +03:00
![Ace Diagram](http://microsoft.github.io/ace/assets/images/github/intro.png)
2016-01-31 21:42:22 +03:00
## QUICK START
2016-01-28 00:42:58 +03:00
2016-02-01 01:29:23 +03:00
### RUNNING THE EXAMPLES
**From a Command Prompt (Windows) or Terminal (Mac):**
2016-02-01 01:40:30 +03:00
* Install NPM, which is [included in the Node.js installation](https://nodejs.org/en/download/), if you haven't already
2016-02-01 01:29:23 +03:00
* Install Cordova using NPM (this might require executing with sudo on a Mac):
2016-01-28 00:42:58 +03:00
```
2016-02-01 01:29:23 +03:00
npm install -g cordova
2016-01-28 00:42:58 +03:00
```
2016-02-01 01:29:23 +03:00
* Go to the examples/AceExamples subfolder, then run:
2016-01-31 21:42:22 +03:00
```
cordova prepare
cordova run android
cordova run ios
```
2016-02-01 01:29:23 +03:00
**Or, Using Visual Studio:**
* Ensure you have [Tools for Apache Cordova](https://www.visualstudio.com/en-us/features/cordova-vs.aspx) installed
* Open examples/AceExamples/AceExamples.sln
2016-02-26 21:32:58 +03:00
* Deploy to either an Android emulator or device (KitKat or later, ideally Marshmallow), or an iOS remote device
* If you need a Marshmallow Android emulator, run the "Visual Studio Emulator for Android" program from the Start menu to download one.
2016-02-01 01:29:23 +03:00
### ADDING TO A NEW OR EXISTING CORDOVA PROJECT
**Just add the plugin to your Cordova project.** Whether you use Visual Studio or command-line tools, Windows or Mac, you can add this plugin the standard way. For example:
```
cordova plugin add cordova-plugin-ace
```
2016-02-05 22:28:50 +03:00
or, in Visual Studio, open **config.xml** then add the plugin under **Plugins**, **Custom**. You can point it at https://github.com/microsoft/ace.git or a local copy that you download.
2016-02-01 01:29:23 +03:00
Then follow the examples and docs. You can find examples in the examples folder of this repository.
2016-01-31 21:42:22 +03:00
## COMMUNITY
2016-01-28 00:42:58 +03:00
2016-01-28 00:51:17 +03:00
* Have a question that's not a feature request or bug report? [Discuss on Stack Overflow](https://stackoverflow.com/questions/tagged/ace-plugin)
2016-02-05 22:28:50 +03:00
* Have a feature request or find a bug? [Submit an issue](https://github.com/microsoft/ace/issues)
* Please [contribute](https://github.com/microsoft/ace/blob/master/CONTRIBUTING.md) to the source code!
2016-01-28 00:42:58 +03:00
2016-02-01 01:05:45 +03:00
## DEVELOPMENT
The easiest way to test plugin code changes is to copy the examples/AceExamples folder *outside of* the plugin folder,
remove the Ace plugin from the project, and then add it back using a path to your local ace folder with your code changes.
Just remember to copy any enhancements you make to the AceExamples project back to the original location!
2016-01-28 00:42:58 +03:00
## LICENSE
2016-02-12 22:14:44 +03:00
Ace is licensed under the MIT Open Source license.