@tractor/config-loader
Config loader for tractor
Last updated 5 months ago by mzollner .
MIT · Repository · Bugs · Original npm · Tarball · package.json
$ cnpm install @tractor/config-loader 
SYNC missed versions from official npm registry.

@tractor/config-loader

A configuration loader utility for tractor.

npm version

API

loadConfig (cwd: string, configPath?: string): TractorConfig

Load a tractor configuration file from a given directory and path (defaults to ./tractor.conf.js), before falling back to the default configuration.

import { loadConfig } from '@tractor/config-loader';

const config = loadConfig(process.cwd(), './path/to/tractor.conf.js');

getConfig (): TractorConfig

Retrieves the current config for the running Tractor instance. loadConfig() must be called befere calling getConfig().

import { getConfig } from '@tractor/config-loader';

const config = getConfig();

Current Tags

  • 1.7.8                                ...           latest (5 months ago)
  • 1.7.8-alpha.2                                ...           next (5 months ago)

33 Versions

  • 1.7.8                                ...           5 months ago
  • 1.7.8-alpha.2                                ...           5 months ago
  • 1.7.8-alpha.1                                ...           5 months ago
  • 1.7.8-alpha.0                                ...           5 months ago
  • 1.7.6-alpha.0                                ...           6 months ago
  • 1.7.0                                ...           a year ago
  • 1.3.0                                ...           a year ago
  • 1.1.2                                ...           a year ago
  • 1.1.0                                ...           2 years ago
  • 1.0.10                                ...           2 years ago
  • 1.0.9                                ...           2 years ago
  • 1.0.7                                ...           2 years ago
  • 1.0.1                                ...           2 years ago
  • 1.0.1-beta.10                                ...           2 years ago
  • 1.0.1-beta.9                                ...           2 years ago
  • 1.0.1-beta.8                                ...           2 years ago
  • 1.0.1-beta.7                                ...           2 years ago
  • 1.0.1-beta.3                                ...           2 years ago
  • 1.0.1-beta.2                                ...           2 years ago
  • 1.0.1-beta.1                                ...           2 years ago
  • 1.0.1-beta.0                                ...           2 years ago
  • 1.0.0-alpha.15                                ...           3 years ago
  • 1.0.0-alpha.14                                ...           3 years ago
  • 1.0.0-alpha.13                                ...           3 years ago
  • 1.0.0-alpha.12                                ...           3 years ago
  • 1.0.0-alpha.11                                ...           3 years ago
  • 1.0.0-alpha.10                                ...           3 years ago
  • 1.0.0-alpha.7                                ...           3 years ago
  • 1.0.0-alpha.6                                ...           3 years ago
  • 1.0.0-alpha.5                                ...           3 years ago
  • 1.0.0-alpha.4                                ...           3 years ago
  • 1.0.0-alpha.2                                ...           3 years ago
  • 1.0.0-alpha.1                                ...           3 years ago
Downloads
Today 0
This Week 0
This Month 0
Last Day 0
Last Week 0
Last Month 1
Dependencies (0)
None
Dev Dependencies (3)

Copyright 2014 - 2016 © taobao.org |