ee-project

Loads config.js files in the project roo directory, provides infos about git

Downloads in past

Stats

StarsIssuesVersionUpdatedCreatedSize
ee-project
010.2.49 years ago10 years agoMinified + gzip package size for ee-project in KB

Readme

ee-project
Loads config.js files in the project roo directory, provides infos about git

installation

npm install ee-project

build status

Build Status

usage

importing

var project = require('ee-project');

project.root

returns the projects root path
log(project.root);

project.config

returns the contents of the config.sj file in the project root path, if available
log(project.config);

project.git.revision()

returns the current revision of HEAD of the git repository found in the project.root directory
project.git.revision(function(err, revision){
	log(revision); // 324...
});

project.git.remote()

returns the remote of the git repository found in the project.root directory
project.git.remote(function(err, remote){
	log(remote); // git@github.com:eventEmitter/ee-project
});

project.git.remoteRepository()

returns the remoteRepository of the git repository found in the project.root directory
project.git.revision(function(err, remoteRepository){
	log(remoteRepository); // eventEmitter/ee-project
});