electrode-bolt
Opinionated meta config runner for react components
Last updated 4 years ago by chaseadamsio .
MIT · Repository · Bugs · Original npm · Tarball · package.json
$ cnpm install electrode-bolt 
SYNC missed versions from official npm registry.

bolt

An opinionated meta config runner for react components, doing the heavy lifting so you don't have to.

Provides CLI access to things such as:

  • webpack
  • eslint
  • karma

through bolt.

Install

within an electrode package, run:

$ npm install electrode-bolt --save
  1. in your package.json, replace existing scripts with bolt <task> where the task is the name of the task being replaced. For instance: "cov-frontend": "istanbul check-coverage 'coverage/client/*/coverage.json'" would be replaced with "cov-frontend": "bolt cov-frontend".
  2. Enjoy seamless integration with pre-existing configs for your opininated electrode component!

Run bolt within your package to see the scripts that are available to you.

Usage

Once you've followed the steps above, you should be able to not worry about using it. bolt does the work for you.

Unique Configuration

So you don't want to the bolt command out of the box? No problem!

You can override a command in your package.json and run bolt <cmd> and bolt will opt for your script over the script it provides.

For example, say you run:

$ bolt clean-dist

bolt will run rimraf on your dist directory. If you wanted it to do something else such as echo "I love electricity!", you can put the following script in your scripts object:

"scripts": {
  "clean-dist": "echo 'I love electricity!'"
  ...
}

Now when you run bolt clean-dist, rather than it running rimraf dist, it will echo "I love electricity!".

Why?

Going through and modifying *.config* files in every react component library you have (which correlates 1:1 to a git repository) is a huge pain in the butt, it's a lot of copy/pasta and no one should 1) have to do that and 2) have to endure the possible degradation over time of human copy/pasta.

This package tries to solve the problem of creating a "meta-monolith" that stands behind our components so people can just build cool stuff and not worry about all the config that goes into keeping a component up to date.

Maybe one day it won't be opinionated. But this day? Not this day.

Opinionated Directory Structure

|-- my_project
|   |-- package.json
|   |-- demo
|   |   |-- index.html
|   |   |-- demo.jsx
|   |-- dist
|   |-- src
|   |   |-- components
|   |   |   |-- component.jsx
|   |   |-- index.js
|   |-- docs
|   |-- test
|       |-- client
|           |-- component
|               |-- component.spec.jsx

Current Tags

  • 1.0.12                                ...           latest (4 years ago)

59 Versions

  • 1.0.12                                ...           4 years ago
  • 1.0.9                                ...           4 years ago
  • 1.0.8                                ...           4 years ago
  • 1.0.6                                ...           4 years ago
  • 1.0.5                                ...           4 years ago
  • 1.0.4                                ...           4 years ago
  • 1.0.3                                ...           4 years ago
  • 1.0.2                                ...           4 years ago
  • 1.0.1                                ...           4 years ago
  • 1.0.0                                ...           4 years ago
  • 0.4.31                                ...           4 years ago
  • 0.4.30                                ...           4 years ago
  • 0.4.28                                ...           4 years ago
  • 0.4.27                                ...           4 years ago
  • 0.4.26                                ...           4 years ago
  • 0.4.25                                ...           4 years ago
  • 0.4.24                                ...           4 years ago
  • 0.4.23                                ...           4 years ago
  • 0.4.22                                ...           4 years ago
  • 0.4.21                                ...           4 years ago
  • 0.4.20                                ...           4 years ago
  • 0.4.19                                ...           4 years ago
  • 0.4.18                                ...           4 years ago
  • 0.4.17                                ...           4 years ago
  • 0.4.16                                ...           4 years ago
  • 0.4.15                                ...           4 years ago
  • 0.4.14                                ...           4 years ago
  • 0.4.13                                ...           4 years ago
  • 0.4.12                                ...           4 years ago
  • 0.4.11                                ...           4 years ago
  • 0.4.10                                ...           4 years ago
  • 0.4.9                                ...           4 years ago
  • 0.4.8                                ...           4 years ago
  • 0.4.7                                ...           4 years ago
  • 0.4.6                                ...           4 years ago
  • 0.4.5                                ...           4 years ago
  • 0.4.4                                ...           4 years ago
  • 0.4.3                                ...           4 years ago
  • 0.4.2                                ...           4 years ago
  • 0.4.1                                ...           4 years ago
  • 0.4.0                                ...           4 years ago
  • 0.3.0                                ...           4 years ago
  • 0.2.4                                ...           4 years ago
  • 0.2.3                                ...           4 years ago
  • 0.2.2                                ...           4 years ago
  • 0.2.1                                ...           4 years ago
  • 0.2.0                                ...           4 years ago
  • 0.1.12                                ...           5 years ago
  • 0.1.11                                ...           5 years ago
  • 0.1.10                                ...           5 years ago
  • 0.1.9                                ...           5 years ago
  • 0.1.8                                ...           5 years ago
  • 0.1.6                                ...           5 years ago
  • 0.1.5                                ...           5 years ago
  • 0.1.4                                ...           5 years ago
  • 0.1.3                                ...           5 years ago
  • 0.1.2                                ...           5 years ago
  • 0.1.1                                ...           5 years ago
  • 0.1.0                                ...           5 years ago
Maintainers (1)
Downloads
Today 0
This Week 0
This Month 0
Last Day 0
Last Week 0
Last Month 60
Dependencies (50)
Dev Dependencies (2)
Dependents (0)
None

Copyright 2014 - 2016 © taobao.org |