1.0.94 • Published 4 years ago

@lunde/create-react-app v1.0.94

Weekly downloads
1
License
MIT
Repository
-
Last release
4 years ago

@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

LibraryDescription
Webpack 4For building an serving the application
Babel 7For compiling jsx and ES6 code to ES5
JestFor testing components
PrettierFor formatting code, READMEs, and configs
ESLintFor linting the application
YarnFor deterministic builds and monorepos
build-react-appFor configuring, building, and serving your app with Webpack
render-react-appFor server rendering and streaming your app
deploy-react-appFor 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.

ArgumentTypeRequiredDescription
namestringtrueThe name of your app. This is also the name of the directory that will be created.
--staticbooleanfalseCreates a static React app with no deployment strategy
--nowbooleanfalseCreates a static React app with a Now deployment strategy
--awsbooleanfalseCreates an SSR React app with a Serverless Lambda + API Gateway deployment strategy
--aws --staticbooleanfalseCreates a static React app with an S3 + CloudFront deployment strategy
--aws --apollobooleanfalseCreates an SSR React Apollo app with a Lambda + API Gateway deployment strategy
--apollobooleanfalseCreates an SSR React Apollo app with no deployment strategy

LICENSE

MIT

1.0.94

4 years ago

1.0.93

4 years ago

1.0.92

4 years ago

1.0.91

4 years ago

1.0.90

4 years ago

1.0.89

4 years ago

1.0.88

4 years ago

1.0.87

4 years ago

1.0.86

4 years ago

1.0.85

5 years ago

1.0.84

5 years ago

1.0.83

5 years ago

1.0.82

5 years ago

1.0.81

5 years ago

1.0.80

5 years ago

1.0.79

5 years ago

1.0.78

5 years ago

1.0.77

5 years ago

1.0.76

5 years ago

1.0.75

5 years ago

1.0.74

5 years ago

1.0.73

5 years ago

1.0.72

5 years ago

1.0.71

5 years ago

1.0.70

5 years ago

1.0.69

5 years ago

1.0.68

5 years ago

1.0.67

5 years ago

1.0.66

5 years ago

1.0.65

5 years ago

1.0.64

5 years ago

1.0.63

5 years ago

1.0.62

5 years ago

1.0.61

5 years ago

1.0.60

5 years ago

1.0.59

5 years ago

1.0.58

5 years ago

1.0.57

5 years ago

1.0.56

5 years ago

1.0.55

5 years ago

1.0.54

5 years ago

1.0.53

5 years ago

1.0.52

5 years ago

1.0.51

5 years ago

1.0.50

5 years ago

1.0.49

5 years ago

1.0.48

5 years ago

1.0.47

5 years ago

1.0.46

5 years ago

1.0.45

5 years ago

1.0.44

5 years ago

1.0.43

5 years ago

1.0.42

5 years ago

1.0.41

5 years ago

1.0.40

5 years ago

1.0.39

5 years ago

1.0.38

5 years ago

1.0.37

5 years ago

1.0.36

5 years ago

1.0.35

5 years ago

1.0.34

5 years ago

1.0.33

5 years ago

1.0.32

5 years ago

1.0.31

5 years ago

1.0.30

5 years ago

1.0.29

5 years ago

1.0.28

5 years ago

1.0.27

5 years ago

1.0.26

5 years ago

1.0.25

5 years ago

1.0.24

5 years ago

1.0.23

5 years ago

1.0.22

5 years ago

1.0.21

5 years ago

1.0.20

5 years ago

1.0.19

5 years ago

1.0.18

5 years ago

1.0.17

5 years ago

1.0.16

5 years ago

1.0.15

5 years ago

1.0.14

5 years ago

1.0.13

5 years ago

1.0.12

5 years ago

1.0.11

5 years ago

1.0.10

5 years ago

1.0.9

5 years ago

1.0.8

5 years ago

1.0.7

5 years ago

1.0.6

5 years ago

1.0.5

5 years ago

1.0.4

5 years ago

1.0.3

5 years ago

1.0.2

5 years ago

1.0.1

5 years ago

1.0.0

5 years ago

1.0.0-alpha.11

5 years ago

1.0.0-alpha.10

5 years ago

1.0.0-alpha.9

5 years ago

1.0.0-alpha.8

5 years ago

1.0.0-alpha.7

5 years ago

1.0.0-alpha.6

5 years ago

1.0.0-alpha.5

5 years ago

1.0.0-alpha.4

5 years ago

1.0.0-alpha.3

5 years ago

1.0.0-alpha.2

5 years ago

1.0.0-alpha.1

5 years ago

1.0.0-alpha.0

5 years ago

1.0.0-alpha

5 years ago