# umeboshi-config-jamstack

> Umeboshi config to render JAMstack-like websites

Latest version **0.1.1-16** (published 2018-06-27) · MIT license · 0 weekly downloads

## Install

```sh
npm install umeboshi-config-jamstack
pnpm add umeboshi-config-jamstack
yarn add umeboshi-config-jamstack
bun add umeboshi-config-jamstack
```

## Health

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

Positive: no vulnerabilities.

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

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 0.1.1-16 |
| Published | 2018-06-27 |
| First published | 2018-06-06 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Node | >=6.9.0 |
| Dependencies | 12 |
| Unpacked size | 18.2 KB |
| Known vulnerabilities | 0 (+1 in 1 direct dependencies) |
| Install scripts | no |
| GitHub stars | 0 |
| Author | Marco Solazzi @dwightjack |
| Maintainers | dwightjack |
| Keywords | umeboshi |

## Links

- npm: https://www.npmjs.com/package/umeboshi-config-jamstack
- Repository: https://github.com/dwightjack/umeboshi/tree/master/packages/umeboshi-config-jamstack
- Issues: https://github.com/dwightjack/umeboshi/issues
- npm.io page: https://npm.io/package/umeboshi-config-jamstack

## Dependencies (12)

- [chalk](https://npm.io/package/chalk.md) ^2.4.1
- [execa](https://npm.io/package/execa.md) ^0.10.0
- [lodash](https://npm.io/package/lodash.md) ^4.17.10
- [make-dir](https://npm.io/package/make-dir.md) ^1.3.0
- [koa-connect](https://npm.io/package/koa-connect.md) ^2.0.1
- [sse-channel](https://npm.io/package/sse-channel.md) ^3.0.1
- [require-uncached](https://npm.io/package/require-uncached.md) ~1.0.0
- [umeboshi-dev-utils](https://npm.io/package/umeboshi-dev-utils.md) ^0.4.3-14
- [html-webpack-plugin](https://npm.io/package/html-webpack-plugin.md) ^3.0.0
- [umeboshi-config-spa](https://npm.io/package/umeboshi-config-spa.md) ^0.1.1-14
- [webpack-node-externals](https://npm.io/package/webpack-node-externals.md) ^1.7.2
- [html-webpack-harddisk-plugin](https://npm.io/package/html-webpack-harddisk-plugin.md) ^0.2.0

## Recent versions

- 0.1.1-16 (latest) — 2018-06-27
- 1.0.0-rc.2 (next) — 2018-12-21
- 1.0.0-rc.1 — 2018-12-11
- 1.0.0-rc.0 — 2018-10-24
- 0.1.1-15 — 2018-06-25
- 0.1.1-14 — 2018-06-25
- 0.1.1-13 — 2018-06-21
- 0.1.1-12 — 2018-06-21
- 0.1.1-11 — 2018-06-20
- 0.1.1-10 — 2018-06-06
- 0.1.1-9 — 2018-06-06
- 0.1.1-8 — 2018-06-06
- 0.1.1-7 — 2018-06-06

## README

# umeboshi-config-jamstack

> Umeboshi config to render JAMstack-like websites

## Install

With [npm](https://www.npmjs.com):

```sh
npm install --save-dev umeboshi-config-jamstack
```

Or [yarn](https://yarnpkg.com):

```sh
yarn add umeboshi-config-jamstack -D
```

## Usage

Add the config to `umeboshi.config.js` file in your project's root folder.

Note: add the config **after** all other configurations!

```js
module.exports = {
    extends: {
        'umeboshi-config': {},
        // ... other configurations...
        'umeboshi-config-jamstack': {}
    }
};
```

## Configuration options

* `port`: Port at which the server-side rendering server will run. Defaults to `9000`. If the port is unavailable it will search the next available port. 

```js
module.exports = {
    extends: {
        'umeboshi-config': {},
        // ... other configurations...
        'umeboshi-config-jamstack': {
            //listen on port 8080
            port: 8080
        }
    }
};
```

## Usage

In some scenarios you would want your application to work differently whether you're rendering in the client or on the server. 

To that end, the config exposes a global `__SERVER__` variable which is `true` on server and `false` on the client.

### Eslint configuration

To prevent _undefined variable_ error in Eslint just add the following lines to your project's `eslintrc.json` file

```json
{
    "globals": {
        "__SERVER__": true
    }
}
```

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