industry-include
Provides a dependency tree object to your method parameters.
Last updated 4 years ago by winton .
MIT · Repository · Bugs · Original npm · Tarball · package.json
$ cnpm install industry-include 
SYNC missed versions from official npm registry.

IndustryInclude Build Status

Provides a dependency tree object to your method parameters.

Usage

Given you have files/files.test.js at ${__dirname}:

import { factory } from "industry"
import { instance } from "industry-instance"
import { include } from "industry-include"
import { standard_io } from "industry-standard-io"

class Test {
  constructor() {
    this.include(`${__dirname}`)
  }

  hello({ include: { files: { test } } }) {
    test // import test from `${__dirname}/files/files.test.js`
  }
}

let test = factory(Test)
  .set("instance", instance)
  .set("include", include)
  .set("standard_io", standard_io)

test().hello()

Current Tags

  • 1.2.0                                ...           latest (4 years ago)

16 Versions

  • 1.2.0                                ...           4 years ago
  • 1.1.0                                ...           4 years ago
  • 1.0.2                                ...           4 years ago
  • 1.0.1                                ...           4 years ago
  • 1.0.0                                ...           4 years ago
  • 0.2.1                                ...           4 years ago
  • 0.2.0                                ...           5 years ago
  • 0.1.1                                ...           5 years ago
  • 0.1.0                                ...           5 years ago
  • 0.0.10                                ...           5 years ago
  • 0.0.9                                ...           5 years ago
  • 0.0.8                                ...           5 years ago
  • 0.0.7                                ...           5 years ago
  • 0.0.6                                ...           5 years ago
  • 0.0.5                                ...           5 years ago
  • 0.0.2                                ...           5 years ago
Maintainers (1)
Downloads
Today 0
This Week 0
This Month 0
Last Day 0
Last Week 0
Last Month 0
Dependencies (1)
Dependents (1)

Copyright 2014 - 2016 © taobao.org |