kogosoftwarellc / alle

Monorepo management inspired by boennemann.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Create alle.create-dependency-tree

jsdevel opened this issue · comments

It should accept an array of package names along with each package's dependencies, then it should output a dependency tree. The idea is that we can control the order of publishing.

e.g.

import createDependencyTree from 'alle.create-dependency-tree';

createDependencyTree([
  {
    name: 'alle.is-package',
    dependencies: {
      /* deps not under packages/ */
    }
  },
  {
    name: 'alle.is-repo',
    dependencies: {
      /* deps not under packages/ */
    }
  },
  {
    name: 'alle.list-packages',
    dependencies: {
      /* deps not under packages */,
      'alle.is-package'
    }
]) // -> {'alle.is-package': {'alle.list-packages': true}, 'alle.is-repo': true}

That way we can publish alle.is-package, then alle.list-packages, then alle.is-repo in that order.