Extension:SkelJS

SkelJS aims to be a reference implementation of a JavaScript-centric MediaWiki extension, embodying best practices.

Features

 * QUnit test stub
 * Proper ResourceLoader integration
 * Automatic linting of JavaScript files
 * Command-line build tool (grunt.js)

Todos
SkelJS is currently a very rough draft. More input and refinements are necessary before it is ready for public consumption.


 * TestSwarm integration
 * Top / bottom module setup (see ResourceLoader/Migration guide for extension developers )
 * Sample JS code, using mw.loader
 * Maybe: grunt.js syntaxCheck.php integration
 * Maybe: Parse module configuration from JSON file so that no edits to PHP code are required

Usage
First, install the requirements:,  ,   and.

Add the following line to :

Run  in the extension's root directory to lint your JavaScript code and run unit tests.