@data-ui/build-config
Version-controlled build config for easy re-use and sharing
Last updated 7 months ago by data-ui .
MIT · Repository · Bugs · Original npm · Tarball · package.json
$ cnpm install @data-ui/build-config 
SYNC missed versions from official npm registry.

@data-ui/build-config

Version-controlled build config for easy re-use and sharing ????

Install

npm install --save-dev @data-ui/build-config

Before leveraging the build config provided you should remove any older dependencies or config files for the drivers you intend to use (e.g., remove eslint and .eslintrc). @data-ui/build-config will handle these dependencies, and it will auto-generate the config files for you.

Using drivers

This project is built with ????beemo, and therefore requires a "beemo" configuration block in your package.json with a list of drivers you want to enable. You can optionally configure drivers as shown below:

{
  "beemo": {
    "module": "@data-ui/build-config",
    "drivers": [
      "babel",
      {
        "driver": "eslint",
        "args": ["--color", "--report-unused-disable-directives"]
      },
      {
        "driver": "jest",
        "env": { "NODE_ENV": "test" }
      },
      "prettier"
    ]
  }
}

Executing drivers

Executing a driver will initialize ???? Beemo's pipeline, generate configuration files (e.g., it will generate a .eslintrc or prettier.config.js, and execute the underlying driver binary and logging to the console.

All arguments passed to Beemo are passed to the driver's underlying binary.

You may define these commands as scripts:

// package.json
{
  "scripts": {
    "babel": "beemo babel ./src --out-dir ./lib",
    "eslint": "beemo eslint ./src ./tests",
    "jest": "beemo jest",
    "prettier": "beemo prettier --write \"./{src,tests}/**/*.{js,json,md}\""
  }
}

Driver documentation

Coming ????!

Jest
Babel
Prettier
Eslint

Dotfiles

Because ???? Beemo generates config files such as .eslintrc, prettier.config.js, etc., it's useful to ignore these files. Running the following will add the appropriate .gitignore files for you:

beemo sync-dotfiles --filter=gitignore

Current Tags

  • 0.0.40                                ...           latest (7 months ago)

50 Versions

  • 0.0.40                                ...           7 months ago
  • 0.0.39                                ...           7 months ago
  • 0.0.38                                ...           7 months ago
  • 0.0.37                                ...           8 months ago
  • 0.0.36                                ...           9 months ago
  • 0.0.35                                ...           9 months ago
  • 0.0.34                                ...           9 months ago
  • 0.0.33                                ...           10 months ago
  • 0.0.32                                ...           10 months ago
  • 0.0.31                                ...           10 months ago
  • 0.0.30                                ...           10 months ago
  • 0.0.29                                ...           10 months ago
  • 0.0.29-rc9                                ...           10 months ago
  • 0.0.29-rc8                                ...           10 months ago
  • 0.0.29-rc7                                ...           10 months ago
  • 0.0.29-rc6                                ...           10 months ago
  • 0.0.29-rc5                                ...           10 months ago
  • 0.0.29-rc4                                ...           10 months ago
  • 0.0.29-rc3                                ...           10 months ago
  • 0.0.29-rc2                                ...           10 months ago
  • 0.0.29-rc1                                ...           10 months ago
  • 0.0.28-rc1                                ...           10 months ago
  • 0.0.28                                ...           10 months ago
  • 0.0.27                                ...           10 months ago
  • 0.0.26                                ...           a year ago
  • 0.0.25                                ...           a year ago
  • 0.0.24                                ...           a year ago
  • 0.0.23                                ...           a year ago
  • 0.0.22                                ...           a year ago
  • 0.0.21                                ...           a year ago
  • 0.0.20                                ...           a year ago
  • 0.0.19                                ...           a year ago
  • 0.0.18                                ...           a year ago
  • 0.0.17                                ...           a year ago
  • 0.0.16                                ...           a year ago
  • 0.0.15                                ...           a year ago
  • 0.0.14                                ...           a year ago
  • 0.0.13                                ...           a year ago
  • 0.0.12                                ...           a year ago
  • 0.0.11                                ...           a year ago
  • 0.0.10                                ...           a year ago
  • 0.0.9                                ...           a year ago
  • 0.0.8                                ...           a year ago
  • 0.0.7                                ...           a year ago
  • 0.0.6                                ...           a year ago
  • 0.0.5                                ...           a year ago
  • 0.0.4                                ...           a year ago
  • 0.0.3                                ...           a year ago
  • 0.0.2                                ...           a year ago
  • 0.0.1                                ...           a year ago

Copyright 2014 - 2016 © taobao.org |