carbon-react
v143.2.5start
node ./scripts/check_node_version.mjs && cross-env storybook dev -p 9001 -c .storybook
start:debug-theme
cross-env STORYBOOK_DEBUG_THEME=true npm run start
test
jest --config=./jest.config.ts
test-update
jest --config=./jest.config.ts --updateSnapshot
format
prettier --write './{src,playwright}/**/*.{js,jsx,ts,tsx}'
lint
eslint ./src ./playwright
build
node ./scripts/build.js
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
prepublishOnly
npm run precompile
postinstall
node ./scripts/check_rfcs/index.js
watch
npm run clean-lib && npm run copy-files -- --watch & npm run babel -- --watch
build-storybook
cross-env STORYBOOK_BUILD=true storybook build -c .storybook
start-storybook
cross-env STORYBOOK_BUILD=true storybook dev -c .storybook
start:static
npx http-server -p 9001 ./storybook-static
clean-lib
rimraf ./lib && rimraf ./esm
commit
git-cz
generate-metadata
node ./scripts/generate_metadata/index.mjs
type-check:carbon
tsc --noEmit
type-check:playwright
tsc -p ./tsconfig-playwright.json
type-check
npm run type-check:carbon && npm run type-check:playwright
type-check:watch
concurrently --names 'src,playwright' -c 'cyan,yellow' 'npm run type-check:carbon -- --watch' 'npm run type-check:playwright -- --watch'
build:types
tsc -p tsconfig-build.json --emitDeclarationOnly --outDir ./lib && tsc -p tsconfig-build.json --emitDeclarationOnly --outDir ./esm
prepare
husky install
test:ct
playwright test -c playwright-ct.config.ts
test:ct:ui
playwright test --ui -c playwright-ct.config.ts
test:ct:report
npx playwright show-report
clear-playwright-cache
rimraf ./playwright/.cache
npm i carbon-react
Metadata
- Apache-2.0
- Whatever
- The Sage Group plc
- released 10/18/2024