Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@superset-ui/build-config

Package Overview
Dependencies
Maintainers
12
Versions
21
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@superset-ui/build-config

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

  • 0.2.1
  • latest
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
1
decreased by-50%
Maintainers
12
Weekly downloads
 
Created
Source

@superset-ui/build-config

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

Install

npm install --save-dev @superset-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). @superset-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": "@superset-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

Keywords

FAQs

Package last updated on 03 Dec 2019

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc