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

@lunde/create-react-app

v1.0.94

Published

A command line tool for creating React apps out of thin air with deployment strategies for [Now](https://zeit.co), S3 + CloudFront, and AWS Lambda + API Gateway. This is a flexible alternative to the original CRA which has very stringent rules.

Downloads

2

Readme

@lunde/create-react-app

A command line tool for creating React apps out of thin air with deployment strategies for Now, S3 + CloudFront, and AWS Lambda + API Gateway. This is a flexible alternative to the original CRA which has very stringent rules.

📦 What's in the ****ing box?

Apps are packaged with a variety of tools necessary for production React applications.

Build tools

| Library | Description | | --------------------------------------------------------------------------------------------- | ------------------------------------------------------------ | | Webpack 4 | For building an serving the application | | Babel 7 | For compiling jsx and ES6 code to ES5 | | Jest | For testing components | | Prettier | For formatting code, READMEs, and configs | | ESLint | For linting the application | | Yarn | For deterministic builds and monorepos | | build-react-app | For configuring, building, and serving your app with Webpack | | render-react-app | For server rendering and streaming your app | | deploy-react-app | For deploying your app to the world |

Application structure

Have a taste of it

Output targets

You can configure your app for static and server rendered builds. By default, you're getting a scalable SSR solution.

Routes and pages

Routing is accomplished with react-router-dom.

Code splitting

Routes are code split by react-broker which is a great tool that also provides component preloading and SSR capabilities that React.lazy presently lacks.

Styles and theming

CSS styles and themes are added to components with -ui and -ui/system.

Static assets

Apps uses file-loader and responsive-loader w/ sharp to include images, fonts, and other files in your bundle assets. When you import a file from your src/assets directory it will be loaded with file-loader when the extension doesn't match (jpe?g|png|webm) and responsive-loader when it does.

Built-in deployment strategies

You can technically deploy your app however you choose, but there are default strategies for:

  • Now static sites
  • GitHub Pages
  • S3 + CloudFront for static sites
  • Lambda + API Gateway for dynamic sites

🔧 Usage

# Use `npx`
npx @lunde/create-react-app my-app --now

# Or install it globally
yarn global add @lunde/create-react-app
create-react-app my-app --aws --static

create-react-app <name> [--static] [--now] [--aws] [--apollo]

When none of the optional arguments are defined, an SSR React app and no deployment strategy is created.

| Argument | Type | Required | Description | | -------------- | --------- | -------- | ----------------------------------------------------------------------------------- | | name | string | true | The name of your app. This is also the name of the directory that will be created. | | --static | boolean | false | Creates a static React app with no deployment strategy | | --now | boolean | false | Creates a static React app with a Now deployment strategy | | --aws | boolean | false | Creates an SSR React app with a Serverless Lambda + API Gateway deployment strategy | | --aws --static | boolean | false | Creates a static React app with an S3 + CloudFront deployment strategy | | --aws --apollo | boolean | false | Creates an SSR React Apollo app with a Lambda + API Gateway deployment strategy | | --apollo | boolean | false | Creates an SSR React Apollo app with no deployment strategy |

LICENSE

MIT