3.2.4 • Published 4 years ago

reactful v3.2.4

Weekly downloads
73
License
MIT
Repository
github
Last release
4 years ago

Reactful

An opinionated practical CLI for developing full-stack server-rendered React applications. You can use it to generate an independent React application (optionally with TypeScript) that's fully-configured to render on both client and server. You can also use it to render simple client-only applications (without SSR).

npm version

This CLI requires Node >= 10.x.

Creating New App

npx reactful create my-awesome-react-app

This will create a new reactful project using the default template (webpack, babel, express, with support for SSR).

You can also use a few different templates using:

npx reactful create -t <template_name> my-awesome-react-app

Supported templates:

  • default: A babel-based configuration (with support for SSR and production build)
  • typescript: A typescript-based configuration (with support for SSR and production build)
  • simple: A simple Parcel-based configuration (no SSR, no production config)

Once a project is created you can use the "start" command to start it in development mode:

cd my-awesome-react-app

# To start the dev server and dev bundler watchers
npm start

On the "default" and "typescript" templates, the "start" command will run 2 commands concurrently, you can also run them separately with:

npm dev:server # runs on port 1234 by default

npm dev:bundler # this will re-bundle on save

To run all the tests:

npm test

To build and start the app in production:

npm build:all

npm prod:start

If you keep the folder structure initialized by the package, you can use reactful to generate component files. For example:

npx reactful gc ComponentName   # Create a new function component
npx reactful gcc ComponentName  # Create a new class component

These commands will also create a jest snapshot test for the generated component.

Updating Existing React App

While in a React application that's created with this tool, you can always revert things back to the default configurations with the init command. You can also use this command in an empty directory.

cd my-awesome-react-app
npx reactful init

If that directory already has files, reactful will ask you if you want to override them.

License

Reactful is MIT licensed.

3.2.4

4 years ago

3.2.2

4 years ago

3.2.3

4 years ago

3.2.1

4 years ago

3.2.0

4 years ago

3.1.4

4 years ago

3.1.3

4 years ago

3.1.1

4 years ago

3.1.0

4 years ago

3.0.1

4 years ago

3.0.0

4 years ago

3.0.0-rc.3

4 years ago

3.0.0-rc.2

4 years ago

3.0.0-rc.1

4 years ago

2.2.0

5 years ago

2.1.0

5 years ago

2.0.6

5 years ago

2.0.5

6 years ago

2.0.4

6 years ago

2.0.3

6 years ago

2.0.2

6 years ago

2.0.1

6 years ago

2.0.0

6 years ago

1.0.1

6 years ago

0.5.3

6 years ago

0.5.1

7 years ago

0.4.0

7 years ago

0.3.12

7 years ago

0.3.11

7 years ago

0.3.10

7 years ago

0.3.9

7 years ago

0.3.8

7 years ago

0.3.7

7 years ago

0.3.5

7 years ago

0.3.1

7 years ago

0.3.0

7 years ago

0.1.0

8 years ago

1.0.0

8 years ago