vega-lite-dev-config
Version-controlled build config for easy re-use and sharing using Beemo.
Install
yarn add --dev vega-lite-dev-configBefore 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). vega-lite-dev-config will handle these dependencies, and it will auto-generate the config files for you.
Using drivers
This project is built with "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": "vega-lite-dev-config",
"drivers": [
"babel",
"prettier",
"eslint",
"jest",
{
"driver": "typescript",
"buildFolder": "build"
}
],
"jest": { // you can augment generated config
"transformIgnorePatterns": [
"<rootDir>/node_modules/(?!(vega-lite/))"
]
}
}
}Executing drivers
Executing a driver will initialize .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 in your package.json:
// package.json
{
"scripts": {
"prepare": "beemo create-config --react", // Remove --react if you do not use React
"prettierbase": "beemo prettier '{src,test,types}/**/*.{md,css}' # eslint takes care of tsx?/jsx?",
"eslintbase": "beemo eslint '{src,test,types}/**/*.{ts,tsx,js,jsx}'",
"format": "yarn eslintbase --fix && yarn prettierbase --write",
"lint": "yarn eslintbase && yarn prettierbase --check",
"tsc": "beemo typescript",
"tsc:watch": "yarn run tsc --watch"
}
}or for a monorepo, you may want to include ./packages/*/ in the path:
"prettierbase": "beemo prettier './packages/*/{src,test,types}/**/*.{md,css}' # eslint takes care of tsx?/jsx?",
"eslintbase": "beemo eslint './packages/*/{src,test,types}/**/*.{ts,tsx,js,jsx}'",Acknowledgement
This README is adapted from @superset-ui/build-config.

Formed in 2009, the Archive Team (not to be confused with the archive.org Archive-It Team) is a rogue archivist collective dedicated to saving copies of rapidly dying or deleted websites for the sake of history and digital heritage. The group is 100% composed of volunteers and interested parties, and has expanded into a large amount of related projects for saving online and digital history.
