Skip to content

Latest commit

 

History

History
68 lines (44 loc) · 1.53 KB

building.md

File metadata and controls

68 lines (44 loc) · 1.53 KB

Building

If you are looking to contribute to the project, come aboard! Otherwise, I don't find this documentation to be of any use to you.

This project uses Jasmine (testing framework), and Karma (our test runner).

* Note that the following code blocks will contain $ only to indicate that it is a terminal command. Omit it when copying the command (e.g., run brew install node npm instead of $ brew install node npm).

Requirements

You don't need really anything besides node.js and npm.

Debian-based distro

Ubuntu, Linux Mint, etc..):

$ sudo apt-get install nodejs-legacy npm

OSX (Homebrew)

$ brew install node npm

Windows

You can grab node.js installer (which bundle comes along with npm) at the node.js website.

Setup

Clone the repository

$ git clone https://github.com/srph/angular-timestamp-filter.git

## don't forget to switch directory to the cloned repository!
$ cd angular-timestamp-filter

Install dependencies

$ npm install

# only if you haven't installed bower (asset package manager)
$ npm install bower -g

$ bower install

Automation

$ npm test # run the tests
$ npm run uglify # uglify the script

Style Guide

  • Use semicolons;
  • Commas last,
  • 2 spaces for indentation (no tabs)
  • Prefer ' over "
  • "use strict";
  • 80 character line length
  • "Attractive"