cra-template-ornio
v1.0.0
Published
A quick start Create React App template with React Router, GraphQL, TypeScript, Tailwind CSS, Husky and custom ESlint configurations
Downloads
1
Maintainers
Readme
Ornio Create React App template
current version: V1.0.0
This template provides Ornio AS structure, styles and common tool to get the project up and running.
To use this template within your project, add --template ornio
when creating a new app.
How to use
For example run:
npx create-react-app my-app --template ornio
or
yarn create-react-app my-app --template ornio
or from github repo
npx create-react-app my-app --template=git+https://github.com/ornio-no/cra-template-ornio.git
Tools
- Typescript
- ESLint
- Prettier
- Husky
- TailwindCSS
- Clsx
- Joi
- Craco
- Dayjs
- GraphQL
- GraphQL-Codegen
- Apollo
- Loadable Components
- React Helmet
- i18n
- React Router
Structure
This template is structured based on atomic design patterns
- :file_folder: components
- :file_folder: atoms
- :file_folder: molecules
- :file_folder: organisms
- :file_folder: templates
- :file_folder: config
- :file_folder: enums
- :file_folder: graphql
- :file_folder: client
- :file_folder: fragments
- :file_folder: gen
- :file_folder: hooks
- :file_folder: mutation
- :file_folder: query
- :file_folder: subscription
- :file_folder: hooks
- :file_folder: interfaces
- :file_folder: models
- :file_folder: types
- :file_folder: pages
- :file_folder: routes
- :file_folder: styles
- :file_folder: base
- :file_folder: vendor
- :file_folder: utils
- :file_folder: validatiors
Uninstall tailwind (guide)
- delete tailwind.config.js
- remove /styles/vendor/tailwincss/tailwind.css import in /styles/main.scss
- delete /styles/vendor/tailwindcss
- remove tailwind plugin from .eslintrc (under extends "plugin:tailwind/recommended")
- uninstall following packages by running
npm uninstall tailwindcss@npm:@tailwindcss/postcss7-compat postcss autoprefixer
Getting Started with Create React App
This project was bootstrapped with Ornio Create React App Template.
Available Scripts
start
Starts development server
build
Builds production version of the App
test
Runs tests
eject
Should not be used
format
Runs prettier format
type:check
Does typescript type checking
lint
Lints all files in src folder
analyze
Generates report for app and all its dependencies.
codegen
Runs graphQL codegen