View output.sh
c:\installs\workspaces\dustin-terra\terra-core>npm test
> terra-core@0.1.0 pretest c:\installs\workspaces\dustin-terra\terra-core
> npm run lint
> terra-core@0.1.0 lint c:\installs\workspaces\dustin-terra\terra-core
> npm run lint:js && npm run lint:scss
View yarn-warnings.sg
yarn install v1.0.1
[1/5] πŸ” Validating package.json...
[2/5] πŸ” Resolving packages...
[3/5] 🚚 Fetching packages...
[4/5] πŸ”— Linking dependencies...
warning "ajv-keywords@1.5.1" has incorrect peer dependency "ajv@>=4.10.0".
warning "postcss-reporter@4.0.0" has incorrect peer dependency "postcss@^6.0.0".
warning "babel-loader@7.1.2" has incorrect peer dependency "webpack@2 || 3".
warning "extract-text-webpack-plugin@2.1.2" has incorrect peer dependency "webpack@^2.2.0".
warning "html-webpack-plugin@2.30.1" has incorrect peer dependency "webpack@1 || ^2 || ^2.1.0-beta || ^2.2.0-rc || ^3".
View test-failures.sh
TEST FAILURE: 4 assertions failed, 4907 passed. (10m 37s)
βœ– nightwatch/alert-spec
- [@tiny] Displays a default alert with the provided text (9.842s)
Testing if element <#defaultAlert > div[class*="body"] > div[class*="section"] > strong[class*="title"]> contains text: "Alert.". after 1000 milliseconds. - expected "Alert." but got: "Terra.alert.alert"
at Object.Displays a default alert with the provided text (/Users/bj031910/repos/terra-core/packages/terra-alert/tests/nightwatch/alert-spec.js:13:20)
at _combinedTickCallback (internal/process/next_tick.js:131:7)
at process._tickCallback (internal/process/next_tick.js:180:9)
SKIPPED:
View npm-install.sh
terra-ui.com|master β‡’ npm install
> terra-ui_com@0.0.0 postinstall /Users/bj031910/repos/terra-ui.com
> cd client && npm install
- terra-i18n-plugin@1.2.0 node_modules/terra-site/node_modules/terra-i18n-plugin
terra_ui_com@ /Users/bj031910/repos/terra-ui.com/client
β”œβ”€β”¬ terra-clinical-site@1.3.2
β”‚ β”œβ”€β”€ terra-app-delegate@1.4.0
β”‚ β”œβ”€β”¬ terra-button@1.6.0
View react-live-example.jsx
import React from 'react';
import Badge from 'terra-badge';
import { LiveProvider, LiveEditor, LiveError, LivePreview } from 'react-live';
const BadgeIntentExample = (`
<div>
<Badge text="Default" />
{' '}
<Badge intent="primary" text="Primary" />
{' '}
View webpack-config.js
const webpack = require('webpack');
const path = require('path');
const Autoprefixer = require('autoprefixer');
const ExtractTextPlugin = require('extract-text-webpack-plugin');
const I18nAggregatorPlugin = require('terra-i18n-plugin');
const i18nSupportedLocales = require('terra-i18n/lib/i18nSupportedLocales');
const CustomProperties = require('postcss-custom-properties');
View toggler.jsx
import React from 'react';
import PropTypes from 'prop-types';
import classNames from 'classnames';
import AnimateHeight from 'react-animate-height';
import 'terra-base/lib/baseStyles';
import './Toggler.scss';
const propTypes = {
/**
* Content in the body of the toggler component that will be expanded or collapsed
View diff.md
 // get filepath for every svg
 /* eslint-disable import/no-extraneous-dependencies */
-var svgs = _fs2.default.readdirSync(_config.TerraIcon.svgDir
+var svgs = _fs2.default.readdirSync(_config.TerraIcon.svgDir)
 // Only load svg files
-).filter(function (f) {
+.filter(function (f) {
     return _path2.default.extname(f) === '.svg';
-}
View component-features.md

Component Features

  • Cross-Browser Support
  • LTR/RTL Support
  • Responsive Support
  • Mobile Support
  • Adherence to Design Standard
  • Internationalization (I18n) Support
  • Translation Support