Fork me on GitHub

inputEx

Jump to Table of Contents

Developer's Guide

inputEx is a library, so it is meant to be used by developers. Here are some of the prerequisites before starting to use the library :

  • You should be able to serve the files locally (setup a local HTTP server or embed into your application)
  • Have a good knowledge of Javascript
  • Have a good knowledge of the YUI library
  • It is strongly recommanded to have Node.js installed

Building components

We use shifter to build inputEx's modules.

To install shifter :

$ [sudo] npm install -g shifter

To build the 'container' module :

$ cd src/container
$ shifter

To build all modules at once :

$ cd src
$ shifter --walk

Building user guides and examples pages

We are using selleck to build the examples and user guide pages.

To install shifter :

$ [sudo] npm install -g selleck

To build all docs :

$ selleck --out docs

Building the API documentation

The API documentation is build using YUIDocJS.

To install YUIDocJS :

$ [sudo] npm install -g yuidocjs

From the main directory, type :

$ yuidoc src

It should generate the doc in the api/ folder.

How to run the tests

Tests are executed with Yeti.

To install Yeti :

$ [sudo] npm install -g yeti

From the main directory, type :

$ yeti src/*/tests/unit/*.html

This command creates a one shot server and return you an adress which you have to connect a browser in order to run the tests. You can also invoke the same command with "--server" in order to have a persistent server

$ yeti src/*/tests/unit/*.html --server

Testing with coverage :

$ yeti src/*/tests/unit/*.html --server --query 'filter=coverage'

inputEx

The inputEx library is a form and field library for YUI.

It is included in lib/inputex/ so that it easier for people to checkout the project