# bootstrap-builder

> Building custom bootstrap

Latest version **1.0.2** (published 2021-08-25) · ISC license · 0 weekly downloads

## Install

```sh
npm install bootstrap-builder
pnpm add bootstrap-builder
yarn add bootstrap-builder
bun add bootstrap-builder
```

Provides the command `bootstrap-builder`.

## Health

**Score 15/100 (F)** — status: abandoned.

Positive: no vulnerabilities.

Warnings: low downloads; no types; no esm support.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 1.0.2 |
| Published | 2021-08-25 |
| First published | 2021-08-25 |
| Weekly downloads | 0 |
| License | ISC |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 6 |
| Unpacked size | 5.5 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| Author | Juhwan Han |
| Maintainers | juhwan |

## Links

- npm: https://www.npmjs.com/package/bootstrap-builder
- npm.io page: https://npm.io/package/bootstrap-builder

## Dependencies (6)

- [sass](https://npm.io/package/sass.md) ^1.38.0
- [shelljs](https://npm.io/package/shelljs.md) ^0.8.4
- [fs-extra](https://npm.io/package/fs-extra.md) ^10.0.0
- [bootstrap](https://npm.io/package/bootstrap.md) ^4.1.3
- [commander](https://npm.io/package/commander.md) ^8.0.0
- [live-server](https://npm.io/package/live-server.md) ^1.2.1

## Recent versions

- 1.0.2 (latest) — 2021-08-25
- 1.0.1 — 2021-08-25
- 1.0.0 — 2021-08-25

## README

# Build bootstrap scss to css #

* Building custom bootstrap
* Automatically build scss to css
* Help to make custom css with Live server

---

## Prerequisites

* **Node.js(12.20.1)**
* **npm(7.19.1)**

## Getting started

### 1. Installation 

```sh
## Clone repository by git
git clone git@bitbucket.org:ellexiinc/bootstrap-builder.git

## Install package.json
cd bootstrap-builder
npm install
```

### 2. How to use

#### Bootstrap Builder
##### Usage

```
Usage: bs-build [options]

Options:
  -i, --input [FILEPATH]   input file for compile to css file
  -o, --output [FILEPATH]  output file to rendered css filePath
  -m, --minify             minify output css render file
  -h, --help               display help for command
```

##### Config default FilePath

```json
// config.json
{
    // Config default FilePath
    "inputFile":"./node_modules/bootstrap/scss/bootstrap.scss",
    "outputFile":"./custom-css/custom.css",
    "base":"./node_modules/bootstrap/scss",
    .
    .
    .
}
```

##### Example

```sh
npm run build
npm run build -- -m
npm run build -- -i ./examples/dist/custom.scss
npm run build -- -o ./examples/dist/custom.css
npm run build -- -i ./examples/dist/custom.scss -o ./examples/dist/css/custom.css -m
npm run build -- -b ./examples/dist/scss -i ./examples/dist/custom.scss -o ./examples/dist/css/custom.css -m
```

#### LiveServer
##### Usage

```
Usage: liveServer [options]

Options:
  -l, --liveServer [filePath]  Test your custom css with liveServer
  -h, --help                   display help for command
```

##### Config server

```json
// config.json
{
    .
    .
    .
    // Config Server status
    "port": 8181,
    "host": "0.0.0.0",
    "root": "./",
    "open": true,
    "wait": 500
}
```

##### Example

```sh
npm run liveServer -l
npm run liveServer -l ./examples/
```

---

## References

* [https://www.npmjs.com/package/sass](https://www.npmjs.com/package/sass)

---
_Source: https://npm.io/package/bootstrap-builder · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
