1.0.0 • Published 6 years ago

reactful-commands v1.0.0

Weekly downloads
3
License
MIT
Repository
github
Last release
6 years ago

Reactful

An opinionated CLI for full-stack server-rendered React applications. You can use it to generate an independent React application that's fully-configured to render on both client and server.

npm version

This CLI requires Node >= 8.x.

Creating New App

npx reactful my-awesome-react-app

Once created, you'll see instructions on how to use it:

cd my-awesome-react-app

# To start the app for development (watchers for node/webpack)
npm start

# To open the app in browser (default is localhost:4242)
npx reactful open

# To run all tests
npm test

# To build for production
npm run build-all

# To start the app for production
npm run prod-start

The generated app is completely independent from the reactful package. At this point you can part ways with the package and do your own thing.

If you keep the folder structure initialized by the package, you can use a few handy commands. For example:

  • Create a New (Function) Component: npx reactful c ComponentName
  • Create a New Class Component: npx reactful cc ComponentName
  • Create a New Pure Component: npx reactful pc ComponentName

All of 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.

1.0.0

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.9

7 years ago

0.3.8

7 years ago

0.3.7

7 years ago

0.3.5

7 years ago

0.2.0

7 years ago

0.1.0

7 years ago