@nexpy/design-system
v3.0.2
Published
Nexpy design system.
Downloads
247
Readme
Nexpy Design System
Important: Storybook temp removed.
Docs
You can visit the full documentation of available components and tools here.
Installation
Package Manager
Use the package manager yarn to install the dependencies.
Important: Make sure you have the yarn installed globally as it is necessary for use the project's features.
Install yarn with the following command:
npm install -g yarn
Install this Package From NPM
yarn add @nexpy/design-system
or
npm install @nexpy/design-system
Dependencies
Install dependencies with the following command:
yarn
Prepare
yarn prepare
This command will install the husky hooks in the git repository to control preprocessors for commits and pushes, such as code formatters and Eslint, and the required automatic project settings.
Available scripts and usage
If you look at the scripts inside package.json you will see several methods, among them:
Run development server
yarn dev
A server with a fast refresh for development. Do not use for production.
Reinstall dependencies
yarn reinstall
Asynchronously deletes all dependencies and reinstalls using yarn.
Commit your changes
yarn commit
Use the yarn commit
command to start the git-cz cli. With
that we can make the commits in a standardized way.
Create production build
yarn build:dist
Creates an optimized distribution build of the design system.
Check typing
yarn type:check
Run a test using the TypeScript compiler to identify code typing failures.
Start debug server
yarn debug
Starts the development server with debug options. V8 inspector integration allows tools such as Chrome DevTools and IDEs to debug and profile Node.js instances.
Automatically format code
yarn prettier
Auto-formats code using Prettier. This command writes possible corrections to the project files.
Check code style
yarn prettier:check
Checks that all files follow the style pattern without changing them, reporting possible errors to the console.
Fix code integrity
yarn eslint
Looks for code integrity errors and fixes where possible. This command writes possible corrections to the project files.
Check code integrity
yarn eslint:check
Looks for code integrity errors in all files without changing them, reporting possible errors to the console.
Run development storybook server
yarn storybook
A server with a fast refresh for components documentation development. Do not use for production.
Buid storybook
yarn build:docs
Created a production build for storybook.