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

create-react-web-app

v1.1.7

Published

A Simple Powerful Cli to Create Web App with ReactJs!

Downloads

522

Readme

Create React Web App (CLI) NPM

React Logo

Introduction

Create React Web App is a command-line tool that simplifies the process of setting up a new React web application. With just a few commands, you can quickly initialize a new React project and start building your web application.

Features

  • Easy project initialization.
  • Opinionated project structure for rapid development.
  • Preconfigured webpack and Babel settings.
  • Integration with popular tools like ESLint and Prettier.
  • Ready-to-use development server with hot reloading.

Installation

To use Create React Web App, make sure you have Node.js and npm (Node Package Manager) installed on your system. You can install this CLI tool globally using npm:

npx create-react-web-app myapp

CLI Development Guide

Are you curious about how this CLI works behind the scenes? Would you like to develop your own custom React CLI effortlessly using NX, a powerful open-source build system? This guide will walk you through the process of creating, testing, and publishing your CLI library.

Let's dive in!🔥

Table of Contents

Create nx work space for developing CLI

npx create-nx-plugin@latest create-react-web-app-cli --create-package-name=create-react-web-app
npm install

Add Run Scripts to package.json

  "scripts": {
    "start-local-npm-registry": "npx nx local-registry",
    "local-publish": "npx nx run-many -t publish"
  },

Local Deployment

Before publishing your CLI, it's essential to test it locally. here we are going to use Verdaccio

  1. Start a local repository:
    npm run start-loacl-npm-registry
  2. Publish Your Package to Local Registry:
    npm run local-publish -- --ver 1.0.1 --tag latest
    This Command will also link your Package in your Local Machine

Test Your Package

npm create-web-app test

Now time to push on prod 🥳 (NPM Registry)

You must have NPM Account! if Not Go to the NPM site and create One!

Check the base Project Package.json name … it will be the name of your package

check the package name availability on the NPM

Now do the entry [ in package.json ] of

files ( which file to ship on registry)

"files": [
    "dist/**/*"
  ],

entry points

"bin": {
    "create-web-apps": "dist/packages/create-web-apps/bin/index.js"
  }

If Everything Done then Publish to NPM

⚠️ check npm config it should point to NPM Registry

npm config get registry
npm config set registry https://registry.npmjs.org/
npm login

will redirect to Browser for Login Guide ⚠️ And Now Remove private:true from your Package.json if any

npm publish --access=public

Cheers! 🍻 Its All Done ✅ ! Happy Coding 😊

Command you may need!

npm cache clean --force