# hyperapp-scripts

> Hyperapp expansion pack for create-react-app

Latest version **0.7.0** (published 2023-06-19) · MIT license · 0 weekly downloads

## Install

```sh
npm install hyperapp-scripts
pnpm add hyperapp-scripts
yarn add hyperapp-scripts
bun add hyperapp-scripts
```

Provides the command `hyperapp-scripts`.

## Health

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

Positive: esm support; no vulnerabilities.

Warnings: low downloads; no types; pre 1.0.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 0.7.0 |
| Published | 2023-06-19 |
| First published | 2018-09-29 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | ESM + CommonJS |
| Dependencies | 1 |
| Unpacked size | 25.5 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 39 |
| Author | Wolfgang Wedemeyer |
| Maintainers | okwolf |

## Links

- npm: https://www.npmjs.com/package/hyperapp-scripts
- Repository: https://github.com/okwolf/hyperapp-scripts
- Issues: https://github.com/okwolf/hyperapp-scripts/issues
- npm.io page: https://npm.io/package/hyperapp-scripts

## Dependencies (1)

- [react-scripts](https://npm.io/package/react-scripts.md) =5.0.1

## Recent versions

- 0.7.0 (latest) — 2023-06-19
- 0.6.0 — 2023-06-17
- 0.5.0 — 2020-10-31
- 0.4.0 — 2020-04-08
- 0.3.0 — 2019-04-29
- 0.2.2 — 2019-03-10
- 0.2.1 — 2018-11-10
- 0.2.0 — 2018-11-10
- 0.0.0 — 2018-09-29

## README

# Zero-configuration [create-react-app](https://github.com/facebook/create-react-app) style projects with [Hyperapp](https://github.com/hyperapp/hyperapp)

This package offers a wrapper around the `start`, `build`, and `test` scripts from [`react-scripts`](https://github.com/facebook/create-react-app/tree/master/packages/react-scripts) with customizations to make them work with Hyperapp.

Note: if you want to quickly get started with Hyperapp, you probably want [`create-hyperapp`](https://github.com/okwolf/create-hyperapp) instead.

## Starting a new project from scratch

Start by creating a new folder for your awesome new Hyperapp project and initialize a new project with [npm](https://nodejs.org/en/download).

```console
mkdir my-awesome-project
cd my-awesome-project
mkdir public src
npm init -y
```

Install your dependencies (they're good for your health).

```console
npm i hyperapp
npm i -D hyperapp-scripts
```

Then open your `package.json` in your favorite text editor and add your scripts.

```diff
"scripts": {
+  "start": "hyperapp-scripts",
+  "build": "hyperapp-scripts build",
+  "test": "hyperapp-scripts test"
},
```

Create a `public/index.html` file.

```html
<!DOCTYPE html>
<html>
  <head>
    <title>My awesome app!</title>
  </head>
  <body>
    <div id="app"></div>
  </body>
</html>
```

Next create a `src/index.js` file with a basic hello world app.

```jsx
import { h, app } from "hyperapp";

const state = { title: "Hi." };
const view = state => <h1>{state.title}</h1>;

app({
  init: () => state,
  view,
  node: document.getElementById("app")
});
```

Finally start your app and gaze upon its glory.

```console
npm start
```

Congratulations! Your app is now ready to make even more awesome! 😎

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