carbon-react

v114.10.1
A library of reusable React components for easily building user interfaces.

lint

eslint ./src

test

jest --config=./jest.config.json

babel

cross-env NODE_ENV=production babel ./src --config-file ./babel.config.js --out-dir ./lib --ignore '**/*/__spec__.js','**/*.spec.js','**/*.spec.ts','**/*.spec.tsx','**/*.test.js','**/*.d.ts' --quiet --extensions '.js','.ts','.tsx'

build

node ./scripts/build.js

start

node ./scripts/check_node_version.js && NODE_OPTIONS=--openssl-legacy-provider start-storybook -p 9001 -c .storybook

watch

npm run clean-lib && npm run copy-files -- --watch & npm run babel -- --watch

commit

git-cz

format

prettier --write './src/**/*.{js,jsx,ts,tsx}'

clean-lib

rimraf ./lib && rimraf ./esm

copy-files

node ./scripts/copy-files.js

precompile

npm run type-check && npm run clean-lib && npm run build && npm run build:types && npm run copy-files

type-check

tsc --noEmit

build:types

tsc -p tsconfig-build.json --emitDeclarationOnly --outDir ./lib && tsc -p tsconfig-build.json --emitDeclarationOnly --outDir ./esm

postinstall

node ./scripts/check_rfcs/check_rfcs.js

test-update

jest --config=./jest.config.json --updateSnapshot

start:static

npx http-server -p 9001 ./storybook-static

test:cypress

npx cypress open --e2e

cypress:react

npx cypress open --component

prepublishOnly

npm run precompile

build-storybook

cross-env STORYBOOK_BUILD=true NODE_OPTIONS=--openssl-legacy-provider build-storybook -c .storybook

start-storybook

cross-env STORYBOOK_BUILD=true NODE_OPTIONS=--openssl-legacy-provider start-storybook -c .storybook

type-check:watch

npm run type-check -- --watch

generate-metadata

node ./scripts/generate_metadata/index.mjs

start:debug-theme

cross-env STORYBOOK_DEBUG_THEME=true npm run start

Metadata

Downloads