carbon-react
v125.9.1lint
eslint ./src ./cypress ./playwright
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.ts','**/*.spec.tsx','**/*.d.ts' --quiet --extensions '.js','.ts','.tsx'
build
node ./scripts/build.js
start
node ./scripts/check_node_version.mjs && cross-env 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,cypress,playwright}/**/*.{js,jsx,ts,tsx}'
prepare
husky install
test:ct
playwright test -c playwright-ct.config.ts
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
test:ct:ui
playwright test --ui -c playwright-ct.config.ts
type-check
npm run type-check:carbon && npm run type-check:cypress && npm run type-check:playwright
build:types
tsc -p tsconfig-build.json --emitDeclarationOnly --outDir ./lib && tsc -p tsconfig-build.json --emitDeclarationOnly --outDir ./esm
postinstall
node ./scripts/check_rfcs/index.js
test-update
jest --config=./jest.config.json --updateSnapshot
start:static
npx http-server -p 9001 ./storybook-static
cypress:react
npx cypress open --component --browser chrome
prepublishOnly
npm run precompile
test:ct:report
npx playwright show-report
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
concurrently --names 'src,cypress,playwright' -c 'cyan,yellow,magenta' 'npm run type-check:carbon -- --watch' 'npm run type-check:cypress -- --watch' 'npm run type-check:playwright -- --watch'
generate-metadata
node ./scripts/generate_metadata/index.mjs
start:debug-theme
cross-env STORYBOOK_DEBUG_THEME=true npm run start
type-check:carbon
tsc --noEmit
type-check:cypress
tsc -p ./cypress/tsconfig.json
type-check:playwright
tsc -p ./tsconfig-playwright.json
clear-playwright-cache
rimraf ./playwright/.cache
npm i [email protected]
Metadata
- Apache-2.0
- Whatever
- The Sage Group plc
- released 1/31/2024