Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@ui5/cra-template-webcomponents-react-seed

Package Overview
Dependencies
Maintainers
2
Versions
66
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@ui5/cra-template-webcomponents-react-seed

A Seed of UI5 Web Components for React

  • 1.23.0
  • latest
  • Source
  • npm
  • Socket score

Version published
Maintainers
2
Created
Source

UI5 Web Components for React Seed Logo

This seed decreases the bootstrap time spent on new projects, POCs or MVPs using UI5 Web Components for React by leveraging several out-of-the-box components, scripts & configurations.

Usage

npx create-react-app my-app --template @ui5/webcomponents-react-seed
npm run start

Configuration Included

  • JEST Up & Running;

  • ESLint & EditorConfig Up & Running;

  • CommitLint Up & Running;

  • Environment Variables Up & Running;

  • Internalization Up & Running;

Engine & Samples Included

  • Fallback Engine (<ErrorBoundary />, <NotFound /> and <Error />);

  • MockServer Engine (w/ json-server);

  • API HTTP Request Engine (w/ Request);

  • Permission Engine (w/ RouteWithAuthorizationRestriction and ComponentWithAuthorizationRestriction).

  • ToDo Form Edition w/ yup and formik.

Hooks Included

  • useAuthority: Which includes hasAccess helpers.

  • useLocalStorageState: Helps you to sync your component state with the localStorage.

Project Structure

Following one of the several recommendations for structuring files on a React based project, the seed use: Grouping by file type.

The only custom change we have incremented were the Custom Components and the folder for each project containing the tests artefacts.

Scripts Included

In the project directory, you can run:

Up & Running

npm run start

Runs the app in the development mode @ http://localhost:3000 with mock data.

In case you have a local approuter or backend running, you can create a .env.development.local file and copy the contents of .env.production into that file. This will then skip the start of the mockserver and connect to your "real" backend.

More Information about creating local environment overrides can be found in the create-react-app documentation.

Testing

npm run test

Launches the test runner in the interactive watch mode.

npm run test:ci

Executes the test runner without the interactive watch mode.

npm run test:coverage

Executes the test runner and generates the report.

Checks

npm run lint

Checks all the files of the project according to the eslint config.

npm run lint:fix

Fixes all the files of the project according to the eslint config.

npm run prettier

Checks all the files of the project according to the .prettierrc configuration.

npm run prettier:fix

Fixes all the files of the project according to the .prettierrc configuration.

Deploy

npm run build

Builds the app for production to the build folder.

Suggested Extensions

Auto Rename Tag

This will help you when building the JSX files by renaming the closing for you.

EditorConfig

This will help you to use the defined coding style at the .editoronfig file during development.

ESLint

This will help you to use the defined coding style at the .eslintrc file during development.

Jest & Jest Runner

This will help you run and debug your *.test.js file during test-development.

vscode-icons

This will help you better see the folders and files icons according to its extensions/subject.

prettier

This will enforces a consistent style by parsing your code and re-printing it with its own rules, wrapping code when necessary.

Dependencies Included

types/jest

Autocomplete/Intellisense your testing methods from the JEST lib.

react-query

Used to manipulate async request, data fetching, cache and more.

Tutorial Link, Random Post and Creator Official Video.

react-helmet

Used to manipulate DOM attributes through JSX such as <head>.

react-i18next

Used to translate strings and text in the application following the Internationalization pattern.

i18next-browser-languagedetector

Used to identify the browsers culture and change the applications text accordingly.

commitlint

Used to check the commits before actually commits.

husky & lint-staged

Used to run checks before committing changes to git.

nodemon

Used to update the files without restarting the server.

npm-run-all

Used to run multiple commands without worrying about OS syntax.

jest & jest-enviroment-jsom-sixteen

Used to support jest and its scripts with the new engine.

Keywords

FAQs

Package last updated on 04 Dec 2023

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc