node package manager

kronos

Kronos

A dead simple project scheme maker to initialize project in node.js

Installation

$ npm install kronos -g

Then:

$ kronos PROJECTNAME
$ cd PROJECTNAME
$ node index

Go to localhost:8000 and it should respond

" I'm PROJECTNAME and you"

Usage:

Usage: kronos [options] <name>

  Options:

    -h, --help     output usage information
    -V, --version  output the version number
    -e, --empty    empty project just the squeleton without git init or files
    -g, --git      Use git for initiliaze project
    -a, --all      Default config setup git project with squeleton and everything
    -f, --force    Force the operation, deletes dir that already exists

Squeleton

\
 |- lib/
     \
      |- PROJECTNAME.js
 |- bin/
     \
      |- BINFILE
 |- examples/
 |- test/
 |- index.js
 |- package.json
 |- README.md

Example

When no params or f is passed some files are created with the follow header

#!/usr/bin/env node

/*
 * PROJECTNAME
 * @date:Fri Jan 06 2012 16:04:52 GMT-0600 (CST)
 * @name: index.js
 * @licence: MIT
*/

By default a git repo it's been set. If you pass g as params with e only the squeleton is generated and added to the repo

The initial commit looks like this:

* 46180b9 2012-01-06 | [kronos] Initial Commit (HEAD, master) [alejandromg]

Tests

> npm install kronos tap
> node test/test

// Should Return this
1..49
# tests 49
# pass  49

# ok

Contributors

Licence

MIT