terra-alert

v1.3.0
The Terra Alert component is a notification banner that can be rendered in your application when there is information that you want to bring to the user's attention. The Alert component supports a number of built-in notification types that render with pre
Cerner Terra terra-alert Alert UI

compile

npm run compile:clean && npm run compile:build

compile:clean

$(cd ..; npm bin)/rimraf lib

compile:build

$(cd ..; npm bin)/babel src --out-dir lib --copy-files

lint

npm run lint:js && npm run lint:scss

lint:js

$(cd ..; npm bin)/eslint --ext .js,.jsx . --ignore-path ../../.eslintignore

lint:scss

$(cd ..; npm bin)/stylelint src/**/*.scss

props-table

props-table ./src/Alert.jsx --out-dir ./docs/props-table

test

npm run test:spec && npm run test:nightwatch-default

test:spec

$(cd ..; npm bin)/jest --config ../../jestconfig.json

test:all

npm run test:nightwatch-default && npm run test:nightwatch-chrome && npm run test:nightwatch-firefox && npm run test:nightwatch-safari

test:nightwatch-default

SPECTRE_TEST_SUITE=terra-alert node ../../node_modules/terra-toolkit/lib/scripts/nightwatch.js

test:nightwatch-chrome

SPECTRE_TEST_SUITE=terra-alert node ../../node_modules/terra-toolkit/lib/scripts/nightwatch.js chrome

test:nightwatch-firefox

SPECTRE_TEST_SUITE=terra-alert node ../../node_modules/terra-toolkit/lib/scripts/nightwatch.js firefox

test:nightwatch-safari

SPECTRE_TEST_SUITE=terra-alert node ../../node_modules/terra-toolkit/lib/scripts/nightwatch-non-parallel.js safari

Metadata

Downloads