Please read Features section to see the whole feature of this tern plugin.
If you wish to use Eclipse as IDE, see Eclipse AlloyUI support.
tern-aui2.0.x works with the NodeJS tern-server, and within a browser. It depends on :
ecma5JSON Type Definitions coming from the tern.
- yui3 tern plugin.
$ npm install tern-aui2.0.x
Or, if you're not sure where Tern was installed, you can try
$ npm install -g tern-aui2.0.x
See INSTALL.md for instructions tailored to each editor.
In order for Tern to load the tern-aui2.0.x plugin once it is installed, you must
aui2.0.x in the
plugins section of your Tern configuration
file. The configuration file can be either a file named
.tern-project in your project's root directory, or
.tern-config in your home directory.
Here is a minimal example
.tern-project configuration file:
Note that yui3 tern plugin must be declared before
"Project directory" and
Tern looks for
.tern-project first, walking up the directory tree, and uses
its location as the "project directory". If no
.tern-project is found, your
.tern-config is loaded instead, and the working directory of the Tern server
process is used as the "project directory".
With WebBrowser (CodeMirror)
How to generate aui2.0.x?
- generate JSON Type Definition from api.json (YUIDoc format) by using the transformer aui2tern.js. Note that you can debug with Chrome this transformer by opening aui2tern.html.
- generate the tern plugin by using the generated JSON Type Definition by calling :
Here the steps :
- open cmd
- Generate the tern plugin aui2.0.x from api.json, by launching :
- You can execute tests with
The basic structure of the project is given in the following way:
aui2.0.x.jsthe tern plugin.
aui2.0.xtern plugin which use CodeMirror.