npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

Iโ€™ve always been into building performant and accessible sites, but lately Iโ€™ve been taking it extremely seriously. So much so that Iโ€™ve been building a tool to help me optimize and monitor the sites that I build to make sure that Iโ€™m making an attempt to offer the best experience to those who visit them. If youโ€™re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, ๐Ÿ‘‹, Iโ€™m Ryan Hefnerย  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If youโ€™re interested in other things Iโ€™m working on, follow me on Twitter or check out the open source projects Iโ€™ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soonโ€“ish.

Open Software & Tools

This site wouldnโ€™t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you ๐Ÿ™

ยฉ 2024 โ€“ย Pkg Stats / Ryan Hefner

reexjs-cli

v1.2.2

Published

An interactive CLI automation tool ๐Ÿ› ๏ธ for creating react.js and next.js projects most fast and efficiently. โš›๏ธ

Downloads

13

Readme

npm MIT License

About โ„น๏ธ

ReexJs CLI is an interactive CLI that automates the process of creating a React / Next App. Usually developers we spent a lot of time installing dependencies, creating folders, etc., before having our initial configuration and start working on the application.

The goal of ReexJs CLI It is that we can start working on our application without worrying about the initial configuration.

Features ๐ŸŽ‰

  • Create a react.js or next.js app. โš›๏ธ
  • Choose from commonly used folders (assets, components, hooks, services, utils, e.t.c.) to create.
  • Or create folders with custom names.๐Ÿ“‚
  • Setup routing with user defined routes if you choose react.js.
  • Or create pages for nextjs.
  • Add supports popularly used CSS preprocessor SASS! ๐Ÿ‘“
  • And installs dependencies and dev dependencies.

Requirements ๐Ÿ“

  • Node.js installed on your system.
  • An active internet connection for CLI to work.

Installation ๐Ÿš€

From your terminal run:

# install the package with NPM
$ npx reexjs-cli
# or install it with YARN
$ yarn reexjs-cli

Documentation ๐Ÿ“˜

ReexJs CLI installs reexjs-cli command in your system. To run the tool, you need to invoke this command from your terminal:

# if you install it globally
$ reexjs-cli

As soon as run the command you are greeted by the CLI and you must choose between the options, the most approached your desired configuration.

Then you have to answer some questions to configure your react.js or next.js app

Config โš™๏ธ

Depending on the fact that Framework is chosen, different questions will be asked:

  • App Name: Enter your app name. By default it fallbacks to reexjs-app. โœ… Valid App Names:

    • my-app
    • onl1n3
    • one-2-three

    โŒ Invalid App Names:

    • My-App
    • Onl1n3
    • One-2-Three
  • Framework: Choose the Framework of your application. Next.js or React.js.

  • Pages Names: (Next.Js) Enter space separated pages for next.js application.

  • React Routing: (React.Js) Choose if react routes is needed. Yes or No. If required, enter space separated routes names.

    โœ… Valid Route Names:

    • my-route
    • one-two-three

    โŒ Invalid Route Names:

    • My-Route:
    • one-2-three
    • some-route/
    • some.route
    • some?route
  • Create Folders:

    • Predefined:

      • You can choose from commonly use folders to create: assets, components, utils, lib.
    • Custom:

      • You can enter space separated folders. The conventions would be same as routes in react routing. E.g. context hooks
  • Style scripting: Choose if you want use SASS preprocessor in your styles. SCSS, SASS or CSS.

  • Dependencies: (npm i <dependencies>) You can enter space separated dependencies. The conventions would be same as routes in react routing. E.g. react-bootstrap lodash moment. This script run the code

  • Dev Dependencies: (npm i -D <devDependencies>) You can enter separated dev dependencies. The conventions would be same as routes in react routing. E.g. prettier husky lint-staged.

Examples ๐Ÿค–

  • npx reexjs-cli. Run reexjs normally.
  • npx reexjs-cli -n Run reexjs with next default configuration.
  • npx reexjs-cli -r Run reexjs with react default configuration.

TODOs โœ…

  • Get notification every time an update is available. ๐Ÿ””
  • Choose JavaScript and TypeScript. ๐Ÿ”ฅ
  • Choose preferred export type: named or default. ๐Ÿค”
  • Add Redux/MobX/useContext state management setup. โš™๏ธ
  • Style your app EXACTLY Like Google. ๐Ÿ˜Ž

License

ReexJs CLI is licensed under the terms of MIT

Built with โค๏ธ by Codax.