carbon-react

v101.2.1
A library of reusable React components for easily building user interfaces.

lint

eslint ./src

test

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

babel

cross-env NODE_ENV=production babel ./src --config-file ./babel.config.js --out-dir ./lib --ignore '**/*/__spec__.js','**/*.spec.js','**/__definition__.js' --quiet

debug

node --inspect ./node_modules/jest-cli/bin/jest --watch --config=./jest.conf.json

start

node ./scripts/check_node_version.js && start-storybook -p 9001 -s .assets -c .storybook

watch

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

commit

git-cz

format

prettier --write './src'

clean-lib

rimraf ./lib

copy-files

cpy "**/" "!**/(*.js|*.md|*.mdx|*.stories.*|*.snap)" ../lib/ --cwd=src --parents

precompile

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

postinstall

node ./scripts/check_carbon_version.js && node ./scripts/check_rfcs.js

test-update

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

start:static

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

test-cypress

cypress open

prepublishOnly

npm run precompile

build-storybook

build-storybook -c .storybook -s .assets

generate-metadata

node ./scripts/generate_metadata/index.mjs

start:debug-theme

cross-env STORYBOOK_DEBUG_THEME=true npm run start

Metadata

  • Apache-2.0
  • >=14.16.0
  • The Sage Group plc
  • released 2/17/2022

Downloads