# overd

> a configurable building tool

Latest version **1.0.32-1** (published 2022-02-17) · MIT license · 0 weekly downloads

## Install

```sh
npm install overd
pnpm add overd
yarn add overd
bun add overd
```

Provides the command `overd`.

## 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.32-1 |
| Published | 2022-02-17 |
| First published | 2021-06-10 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Node | >=14.17.0 |
| Dependencies | 38 |
| Unpacked size | 17.4 KB |
| Known vulnerabilities | 0 (+10 in 2 direct dependencies) |
| Install scripts | no |
| GitHub stars | 2 |
| Author | Jeremy Wu |
| Maintainers | army-u |

## Links

- npm: https://www.npmjs.com/package/overd
- Repository: https://github.com/Army-U/over-design
- npm.io page: https://npm.io/package/overd

## Dependencies (38)

- [chalk](https://npm.io/package/chalk.md) 4.1.2
- [yargs](https://npm.io/package/yargs.md) 17.3.1
- [nodemon](https://npm.io/package/nodemon.md) 2.0.15
- [ts-node](https://npm.io/package/ts-node.md) 10.5.0
- [webpack](https://npm.io/package/webpack.md) 5.69.0
- [cross-env](https://npm.io/package/cross-env.md) 7.0.3
- [css-loader](https://npm.io/package/css-loader.md) 6.6.0
- [typescript](https://npm.io/package/typescript.md) 4.5.5
- [@types/node](https://npm.io/package/@types/node.md) 17.0.18
- [webpack-cli](https://npm.io/package/webpack-cli.md) 4.9.2
- [babel-loader](https://npm.io/package/babel-loader.md) 8.2.3
- [style-loader](https://npm.io/package/style-loader.md) 3.3.1
- [react-refresh](https://npm.io/package/react-refresh.md) 0.11.0
- [thread-loader](https://npm.io/package/thread-loader.md) 3.0.4
- [webpack-merge](https://npm.io/package/webpack-merge.md) 5.8.0
- [dotenv-webpack](https://npm.io/package/dotenv-webpack.md) 7.1.0
- [esbuild-loader](https://npm.io/package/esbuild-loader.md) 2.18.0
- [dotenv-defaults](https://npm.io/package/dotenv-defaults.md) 5.0.0
- [react-dev-utils](https://npm.io/package/react-dev-utils.md) 12.0.0
- [webpack-dev-server](https://npm.io/package/webpack-dev-server.md) 4.7.4
- [copy-webpack-plugin](https://npm.io/package/copy-webpack-plugin.md) 10.2.4
- [html-webpack-plugin](https://npm.io/package/html-webpack-plugin.md) 5.5.0
- [@types/dotenv-webpack](https://npm.io/package/@types/dotenv-webpack.md) 7.0.3
- [@types/react-dev-utils](https://npm.io/package/@types/react-dev-utils.md) 9.0.10
- [workbox-webpack-plugin](https://npm.io/package/workbox-webpack-plugin.md) 6.4.2
- [mini-css-extract-plugin](https://npm.io/package/mini-css-extract-plugin.md) 2.5.3
- [webpack-bundle-analyzer](https://npm.io/package/webpack-bundle-analyzer.md) 4.5.0
- [@types/webpack-dev-server](https://npm.io/package/@types/webpack-dev-server.md) 4.7.2
- [@types/copy-webpack-plugin](https://npm.io/package/@types/copy-webpack-plugin.md) 10.1.0
- [@types/workbox-webpack-plugin](https://npm.io/package/@types/workbox-webpack-plugin.md) 5.1.8
- [@types/mini-css-extract-plugin](https://npm.io/package/@types/mini-css-extract-plugin.md) 2.5.1
- [@types/webpack-bundle-analyzer](https://npm.io/package/@types/webpack-bundle-analyzer.md) 4.4.1
- [script-ext-html-webpack-plugin](https://npm.io/package/script-ext-html-webpack-plugin.md) 2.1.5
- [@intervolga/optimize-cssnano-plugin](https://npm.io/package/@intervolga/optimize-cssnano-plugin.md) 1.0.6
- [@pmmmwh/react-refresh-webpack-plugin](https://npm.io/package/@pmmmwh/react-refresh-webpack-plugin.md) 0.5.4
- [@types/script-ext-html-webpack-plugin](https://npm.io/package/@types/script-ext-html-webpack-plugin.md) 2.1.3
- [duplicate-package-checker-webpack-plugin](https://npm.io/package/duplicate-package-checker-webpack-plugin.md) 3.0.0
- [@types/duplicate-package-checker-webpack-plugin](https://npm.io/package/@types/duplicate-package-checker-webpack-plugin.md) 2.1.2

## Recent versions

- 1.0.32-1 (latest) — 2022-02-17
- 1.0.32-0 — 2022-02-17
- 1.0.31 — 2021-12-13
- 1.0.30 — 2021-12-13
- 1.0.29 — 2021-12-10
- 1.0.28 — 2021-10-22
- 1.0.27 — 2021-10-08
- 1.0.26 — 2021-10-08
- 1.0.25 — 2021-09-30
- 1.0.24 — 2021-09-30
- 1.0.23 — 2021-09-28
- 1.0.22 — 2021-09-28
- 1.0.21 — 2021-09-28
- 1.0.20 — 2021-09-28
- 1.0.19 — 2021-09-28
- … 22 more at https://npm.io/package/overd/versions

## README

<h1 align="center">Overd</h1>

<p align="center">
  <a href="https://www.npmjs.com/package/overd"><img src="https://flat.badgen.net/npm/v/overd" alt="Version" /></a>
  <a href="https://packagephobia.com/result?p=overd"><img src="https://flat.badgen.net/packagephobia/install/overd" alt="Dependencies" /></a>
  <a href="https://david-dm.org/army-u/over-design"><img src="https://flat.badgen.net/david/dep/army-u/over-design" alt="Dependencies" /></a>
</p>

<img src="./docs/screenshot.png" />

### Introduction

A configurable building tool that based on webpack@5.

### Quick Start

```bash
$ yarn add overd -D
```

```
$ prepare your own babel.config.js
```

### What's the difference between create-react-app?

- Overd don't provide babel configuration
- Overd don't provide eslint configuration
- Revise webpack config easily without eject

### Features

| Feature              | Status |
| -------------------- | ------ |
| Persistent cache     | ✅     |
| React Refresh        | ✅     |
| Thread-loader        | ✅     |
| Configurable webpack | ✅     |
| Lazy compilation     | ✅     |
| Auto restart         | ✅     |
| Yarn pnp             | Todo   |

### FAQ

#### Override default config

Put a **webpack-overd.ts** under your project's workspace, and then you can revise the webpack config easily with the help of automatic reload.

```ts
import type { Configuration } from 'webpack';

export default function (config: Configuration) {
  if (config.mode === 'development') {
    config.experiments = {
      lazyCompilation: false, // disable lazyCompilation
    };
  }
  console.log(config);
}
```

#### Dotenv configuration

Dotenv configuration is a more cheap way to revise common webpack configuration than by **webpack-overd.ts** files.

`overd` support multiple configuration files:

- .env.defaults
- .env
- .env.development
- .env.test
- .env.production

And you can use the below fields:

| Key         | Default Value | Description                                                                                                                                                                                                           |
| ----------- | ------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| PUBLIC_PATH | /             | Set publicPath for webpack.                                                                                                                                                                                           |
| PORT        | 3000          | Port for webpack dev server.                                                                                                                                                                                          |
| REPORT      | false         | Enable webpack-bundle-analyzer plugin.                                                                                                                                                                                |
| UNIQUE_NAME | undefined     | Same as webpack out uniqueName, and it's used for [ReactRefresh](https://github.com/pmmmwh/react-refresh-webpack-plugin/blob/main/docs/TROUBLESHOOTING.md#running-multiple-instances-of-react-refresh-simultaneously) |

#### Clear webpack cache

By default, we used webpack persistent cache to improve the building performance. If you find that your modification is not working, you can try to use `rm -rf node_modules/.cache` command and restart the server to remove the stale cache.

### License

[MIT](https://opensource.org/licenses/MIT)

Copyright (c) 2021-present, Army-U

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