-
Notifications
You must be signed in to change notification settings - Fork 57
Development
This page will give you a short overview about the project and how it is built.
Log4js is currently one JavaScript file (in release). In the sources it is splitted into several files wich can be modified by any editor.
All the environment around will support us in having stable processes in
- verify sources using jsLint
- run unit tests to have stable versions using JSUnit
- regenerate API documetnations from sources using JSDoc
- generate the fully website for publishing
- generate the archives for releases
To build the JavaScript library we use npm and grunt.
cd log4js
npm install
grunt build
Include then include the target/log4js.min.js
file in your project.
This section may be outdated
Coming from Java development, the Apache Ant is used building the project. Ant supports several targets which can be invoked.
To use Ant it is first required to have installed JavaTM first. After that, you can download Ant from the download section of the project pages. Please follow the given installation instructions there.
Task | Description |
---|---|
clean | Cleans the project from generated files. |
dist | distributes and compiles to target directory /build . |
doc | Create the JSDoc files to the directory /build/doc/api . |
release | Creates release archives. |
download-dependencies | tries to download all required libraries, like JSDoc, JSLint and extract them to the /tools directory. |
There are only some coding guidelines:
- Use tabs for intentions to save characters.
- Use descreptive names
- appropriate JSDoc is required
- jsLint should not raise errors
- in future all should be unit tested
Tracis CI is used to build all published changes: https://travis-ci.org/stritti/log4js
Every contribution is welcome! There are several ways. For example create a pull requestor provide updates for the project.