GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — GitHub - firstlookmedia/react-scripts: ⚙ shared react app configs

BranchesTags
Open more actions menu

Latest commit

 

History

344 Commits
344 Commits

Folders and files

NameName
Last commit message
Last commit date
.circleci
.circleci
 
 
bin
bin
 
 
config
config
 
 
docs
docs
 
 
lib
lib
 
 
scripts
scripts
 
 
template
template
 
 
.eslintrc
.eslintrc
 
 
.gitignore
.gitignore
 
 
.nvmrc
.nvmrc
 
 
.prettierrc
.prettierrc
 
 
Brewfile
Brewfile
 
 
LICENSE
LICENSE
 
 
README.md
README.md
 
 
package.json
package.json
 
 
yarn.lock
yarn.lock
 
 

Repository files navigation

firstlookmedia/react-scripts

Provides configuration for universal React/Relay apps.

By default we expect a graphql server to exist as a separate service. The default template will query for { viewer { id } } but this is not required of the schema.

Install

npm install -g create-react-app

create-react-app --scripts-version=git+ssh://[email protected]/firstlookmedia/react-scripts.git my-app
cd my-app
yarn update-schema
yarn start

Usage

react-scripts expects at least the following files:

src/index.js    # entry to the client-side app
server.js       # entry to the server
schema.graphql  # your graphql schema

The output will become:

build/server.js             # compiled server
build/manifest.json         # manifest pointing source files to compiled
build/assets/32f2q8fj3.js   # example compiled app
build/assets/2d0823jd.css   # any other compiled assets (css, images, fonts)

yarn start

Starts the development environment:

  • The app server, which auto-reloads on http://localhost:3232
  • A webpack dev server, which hot-reloads and proxies requests to the app server, on http://localhost:3233

yarn build

Builds the production assets to the build folder.

yarn test

Runs jest tests. react-scripts will look for any file named __spec.js.

You will need watchman to use yarn test without CI=true. To install on OSX brew bundle in this directory.

Persisted queries

To enable persisted queries:

  1. Add PERSIST_QUERIES: "true" in the build and runtime environments
  2. Point QUERIES_S3_BUCKET to an s3 bucket during build time to deploy queries, making them accessible to the graphql backend
  3. Upgrade to the newest version of React scripts that has the GET and POST fetcher methods
  4. Upgrade to relay >= 3.0

Note: persisted queries are always turned off during local development.

About

⚙ shared react app configs

Resources

Readme
MIT license
Activity
Custom properties

Stars

215 stars

Watchers

9 watching

Forks

25 forks
Report repository

Releases

Packages

Used by

Contributors

Languages

You are visitor 01402775 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.