jentil
TypeScript icon, indicating that this package has built-in type declarations

0.0.1-alpha.10 • Public • Published

Jentil

Jentil is a set of (typescript) tools to use in a monorepo.

Cli

jentil bootstrap

Add dependancies to tsconfig.base.json.

jentil run [command]

Run command on all packages or one if called relative from a app or lib.

Options

---scope

jentil node [file]

Run or build node with all dependancies resolved.

Options

---project

Path to tsconfig.json to use.

---watch

If this is given we watch & run, if not given we build only.

---out

File to compile to.

jentil convert

Collect packages from

Compared to other tools

Lerna

Lerna is build for libraries publisched to npm. Jentil is for applications, no need for multiple package.json, which makes it easier to manage dependancies.

Nrwl

The problem with Nrwl is that you are dependent on what it supports. Jentil is only a set of tools you can use, you are in control of your build setup.

How to use

And run jentil bootstrap everytime you add a app/library.

Make shoure you add "extends": "../../tsconfig.base.json", to every tsconfig.json.

API

Next

const withJentil = require("jentil/next")
const path = require('path')

module.exports = withJentil({
  jentil: {
    root: path.resolve(__dirname, "..", "..")
  }
})

Webpack


const getWebpack = require("jentil/webpack")
const path = require('path')

const { rule, alias } = getWebpack(path.resolve(__dirname, "..", ".."))

module.exports = {
  module: {
    rules: [
      rule
    ]
  }
  //...
  resolve: {
    // configuration options
    alias
  }
};

Readme

Keywords

none

Package Sidebar

Install

npm i jentil

Weekly Downloads

9

Version

0.0.1-alpha.10

License

MIT

Unpacked Size

49.4 kB

Total Files

35

Last publish

Collaborators

  • steijn