@anansi/generator-js

Fast React Web Apps

Usage no npm install needed!

<script type="module">
  import anansiGeneratorJs from 'https://cdn.skypack.dev/@anansi/generator-js';
</script>

README

Yeoman Generator powering Anansi CLI

CircleCI npm downloads npm version PRs Welcome

Fast React Web Apps

Created by @melissafzhang and @ntucker. Feedback and contributions welcome!

Anansi (/əˈnɑːnsi/ ə-NAHN-see) is an Akan folktale character. He often takes the shape of a spider and is considered to be the god of all knowledge of stories. Anansi uses his knowledge to help JavaScript developers spin new web projects.

Installation

It's recommended to use @anansi/cli to use this generator.

npm install -g @anansi/cli yarn

Then generate your new project:

anansi hatch my-app-name

This creates a my-app-name directory in your current directory and sets up the project there.

Updates

Features can be incrementally adopted by running sub-generators from an existing project directory.

E.g., Adding Testing

cd MyProject
anansi add testing

Sub-Generators

Features

Basics:

  • eslint
  • typescript
  • jest
  • babel
  • webpack
  • storybook
  • precommit hooks

React SPA:

  • Experimental React concurrent mode
  • routing
  • rest-hooks

Library:

  • generate library
  • works within monorepo

Infra:

  • PR checks (salus, test, typecheck, linting)
  • Build & deploy
  • metrics
  • monitoring (sentry)

License

Apache-2.0 © Nathaniel Tucker, Melissa Zhang