cra-all-the-things
all the bells 🔔 and whistles 😙 for create-react-app
Last updated a day ago by mimecuvalo .
MIT · Repository · Bugs · Original npm · Tarball · package.json
$ cnpm install cra-all-the-things 
SYNC missed versions from official npm registry.

???? create-react-app, ✨ ALL THE THINGS ✨ edition

DO NOT USE - NOT QUITE READY FOR BROAD USE YET!

CI status prettier status license

???? Description

This package includes scripts and configuration used by Create React App.
Please refer to its documentation:

???? Install

npx create-react-app react-all-the-things --use-npm --scripts-version=cra-all-the-things

Then, to run your newly created server locally, with the Storybook styleguide server:

npm start

Or, to run locally without the Storybook styleguide server:

npm run serve:dev

To run in production (or better yet check out bin/flightplan.js)

npm --production install
npm run serve:prod

To run tests:

npm run test

???? Development (of this meta-repo, not of the repo created by the npx command above)

To run locally, with the Storybook styleguide server:

yarn
cd packages/react-scripts  # TODO(mime) need to get rid of this command eventually - it's a crutch
npm install
cd ../../
yarn start

To run locally, without the Storybook styleguide server:

yarn serve:dev

To run tests:

yarn:test

⚡ Features

  • accessibility (a11y) analyzer: via axe. in the bottom corner of CRA you’ll see a menu that will give you a list of items your site is violating in terms of a11y.
  • authentication: via Auth0. gives you the ability to login using Google/Facebook.
  • bundle size analyzer: à la CRA’s docs and source-map-explorer. do npm run analyze after creating a build.
  • component Libary (UI): via Material-UI.
  • CSP nonce: adds example code in server/app/app.js (not enabled though).
  • documentation: adds some standard and GitHub-specific Markdown files using best practices. files include:
  • error boundary: adds a top-level one to the app. (see doc).
  • error pages: 401, 404, 500.
  • error reporting: listens to window.onerror and reports JS errors to the server for debugging.
  • ES6: decorators and optional chaining: yes, they’re experimental and probably shouldn’t use but they’re sooo nice.
  • Flow: enable by default (off by default in CRA).
  • hot module replacement (HMR): enable by default (off by default in CRA).
  • humans.txt / robots.txt: adds stubs of these files.
  • Jest: installs Enzyme into the mix by default.
  • i18n: via react-intl.
  • kill switch: runs a client health check every 5 minutes to see if the client is still valid.
  • libraries: adds lodash by default.
  • logger: via winston.
  • node inspection: adds --inspect for development mode.
  • Open Graph: adds stub for social media embedding.
  • OpenSearch: adds stub file so that you can add search queries to your site later.
  • ORM: via sequelize.
  • perf indicator: in the bottom corner of the app, it will display render times.
  • Prettier: adds linting upon commit.
  • React Router: adds AJAX-navigation, and code splitting via React.lazy and Suspense.
  • server: i know, heresy!
  • structured data: via JSON-LD.
  • styleguide: via Storybook.
  • xsrf/csrf protection: via csurf.

????️ Roadmap

p0 (high pri)

p1 (medium pri)

  • admin panel
    • exception reports
    • system info
    • add docusaurus / read the docs (for this repo and template)
  • authentication - add ability to refresh tokens (auth0)
  • i18n features
    • message extractor
    • polyfill for Intl for older browsers
    • highlight missing translations
    • add fallback capability
    • RTL
  • experiments framework
  • add "test:debug" to scripts for chrome testing
  • more tests and https://coveralls.io
  • background tasks (if anything, at least via cron)
  • bundle analyzers (bundlesize, webpack-bundle-analyzer, webpack-dashboard)
  • ability to config repo (add name/email to Markdown docs at least)
  • GitHub PR request, show infobar of impact of PR
  • TypeScript (syncing template-typescript with template)
  • redux

p2 (ideas)

  • staging / canary server flags
  • lazy load image capability
  • event bus
  • Redis
  • immutability, via immutable.js / immer
  • fp: ramda, observables, rxjs

???? Learn More

Changelog

Code of Conduct

Contributing

Contributors

Support

???? License

MIT

(The format is based on Make a README)

Current Tags

  • 0.9.7                                ...           latest (a day ago)

28 Versions

  • 0.9.7                                ...           a day ago
  • 0.9.6                                ...           8 days ago
  • 0.9.5                                ...           9 days ago
  • 0.9.4                                ...           18 days ago
  • 0.9.2                                ...           23 days ago
  • 0.9.1                                ...           23 days ago
  • 0.9.0                                ...           24 days ago
  • 0.8.9                                ...           24 days ago
  • 0.8.8                                ...           24 days ago
  • 0.8.6                                ...           6 months ago
  • 0.8.5                                ...           6 months ago
  • 0.8.4 [deprecated]           ...           6 months ago
  • 0.8.3 [deprecated]           ...           6 months ago
  • 0.8.2                                ...           9 months ago
  • 0.6.5                                ...           9 months ago
  • 0.6.4                                ...           9 months ago
  • 0.6.3                                ...           9 months ago
  • 0.6.2 [deprecated]           ...           9 months ago
  • 0.6.1 [deprecated]           ...           9 months ago
  • 0.5.2                                ...           10 months ago
  • 0.5.1                                ...           10 months ago
  • 0.5.0                                ...           10 months ago
  • 0.1.2                                ...           10 months ago
  • 0.1.1                                ...           10 months ago
  • 0.1.0                                ...           10 months ago
  • 0.0.3                                ...           10 months ago
  • 0.0.2                                ...           10 months ago
  • 0.0.1                                ...           10 months ago
Maintainers (1)
Downloads
Today 0
This Week 38
This Month 166
Last Day 38
Last Week 128
Last Month 337
Dependencies (99)
Dev Dependencies (18)
Dependents (0)
None

Copyright 2014 - 2016 © taobao.org |