Comments (6)
👍
How much time does it takes for a module?
from tern.java.
You mean time loading for a module? For the moment I have one big JSON Tern def for YUI and the loads is good.
from tern.java.
I mead developing time.
Is it easy to add more modules?
What time is needed to add one?
from tern.java.
Tern provides JSON Type Def which is a JSON which describes your structure (ex : document has getElementById whicg returns an Element). It's very easy to write it. See https://github.com/marijnh/tern/blob/master/defs/browser.json for instance for browser structure.
If your JS Framework is complex like angular, require.js which manages injection, you must write tern plugins. For instance if you wish to manage
var fs = require('fs');
the require must return an instance of fs. It is done in https://github.com/marijnh/tern/blob/master/plugin/node.js#L88 with infer.registerFunction("nodeRequire", function(_self, _args, argNodes)
Once you have understood the ast of acorn and feature of tern like propagation, developping tern plugin is not very difficult. And as tern can be executed in browser, I develop tern plugin with Chrome.
from tern.java.
Well, this now became as thing worth to be in a new issue. But I am not ready yet.
from tern.java.
For info I have created https://github.com/angelozerr/tern.yuidoc which generates tern def from YUI and AlloyUI sources by using yuidoc.
You can see online demo :
Those 2 tern plugin are integrated too into tern.java to use it with Eclipse IDE.
I close this issue. Those plugins must be improved. Please create issues at https://github.com/angelozerr/tern.yuidoc/issues
from tern.java.
Related Issues (20)
- java.lang.RuntimeException: java.lang.NullPointerException HOT 6
- Errors when selecting some JS modules in project properties
- No type hinting
- Trouble installing Tern 1.2.0 and 1.3.0 Snapshot on Eclipse Luna HOT 1
- Tern IDE not working with Spring's STS HOT 4
- Unable to install with eclipse neon.3 HOT 6
- Feature request: async/await support HOT 5
- how to remove the function reference of the content assist?
- Upgrade to tern 0.21
- The console does not appear in the Tern project property, HOT 1
- NullPointerException TernOutlineContentProvider.java:182 HOT 3
- How about embed the latest version of node.js?
- latest ESLint support. HOT 3
- Support for navigator.getUserMedia HOT 1
- “Error while launching client file ,Cannot find node install path node-native” wrt protractor in eclipse
- Error why installing tern eclipse plugin in eclipse photon
- nodeclipse auto-complete not working on installed packages (aws-sdk) // Tern.java?
- Can't install Tern Eclipse IDE on Eclipse 4.10
- add react module HOT 1
- tern of eclipse not dose work that calculating completion proposals… HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from tern.java.