Introducing Socket Firewall: Free, Proactive Protection for Your Software Supply Chain.Learn More
Socket
Book a DemoInstallSign in
Socket

tern-qunit

Package Overview
Dependencies
Maintainers
1
Versions
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

tern-qunit

A Tern plugin adding support for QUnit.

latest
Source
npmnpm
Version
0.1.0
Version published
Maintainers
1
Created
Source

tern-qunit

Build Status NPM version

tern-qunit is a plugin which adds support for qunit.js to the JavaSript code intelligence system Tern.

tern-qunit provides :

  • the tern qunit plugin qunit.js

Demo

You can play with online demo which uses CodeMirror ((inside Web Browser).

You can see demos in this git project with CodeMirror in demos/qunit.html :

Here a screenshot with completion with CodeMirror QUnit completion :

CodeMirror & Tern Qunit

Here a screenshot with completion with Eclipse IDE QUnit completion :

Eclipse & Tern QUnit

If you wish to use Eclipse as IDE, see Eclipse support for QUnit.

Installation

tern-qunit works with the NodeJS [Tern Server][tern-server], and within a browser.

The easiest way to install tern-qunit is to use a recent version of [npm][npm]. In the directory where you installed the [tern package][tern-npm], simply run

$ npm install tern-qunit

Configuration

qunit support QUnit.

With Node.js

In order for Tern to load the tern-qunit plugin once it is installed, you must include qunit in the plugins section of your [Tern configuration file][tern-config].

Here is a minimal example .tern-project configuration file:

{
  "libs":["ecma5"],
  "plugins": {
    "qunit": {}
  }
}

With WebBrowser (CodeMirror)

See demos/qunit.html

Structure

The basic structure of the project is given in the following way:

  • qunit.js the tern plugin.
  • demos/ demos with QUnit tern plugin which use CodeMirror.
  • test test of the tern plugin.

Keywords

tern

FAQs

Package last updated on 31 May 2015

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts