Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
SkelJS aims to be a reference implementation of a JavaScript-centric MediaWiki extension, embodying best practices.
JavaScript PHP
branch: master

Fetching latest commit…

Cannot retrieve the latest commit at this time

Failed to load latest commit information.
modules
tests
.gitignore
LICENSE
README.mkd
SkelJS.hooks.php
SkelJS.i18n.php
SkelJS.php
grunt.js
package.json

README.mkd

SkelJS

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

Out of the box, you get:

  • QUnit test scaffold
  • ResourceLoader integration
  • MediaWiki-compatible JSHint config
  • Command-line build tool (grunt)

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
  • 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: node, npm, grunt and phantomjs'.

Add the following line to LocalSettings.php:

require_once( "$IP/extensions/SkelJS/SkelJS.php" );

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

Something went wrong with that request. Please try again.