Skip to content
This repository has been archived by the owner on May 24, 2024. It is now read-only.

Commit

Permalink
[terra-core-docs] Introducing terra-core-docs (#3431)
Browse files Browse the repository at this point in the history
* Introducing terra-core-docs

* remove npm ignore

* change logs

* Make repo private until we're ready to release.

* oops, missed some tests

* compile private packages

* Update packages/terra-core-docs/package.json

Co-authored-by: Ben Cai <bcai@cerner.com>

Co-authored-by: Ben Cai <bcai@cerner.com>
  • Loading branch information
mjhenkes and benbcai authored May 4, 2021
1 parent 5ee735d commit 8cdd992
Show file tree
Hide file tree
Showing 68 changed files with 436 additions and 83 deletions.
7 changes: 7 additions & 0 deletions lerna.json
Original file line number Diff line number Diff line change
@@ -1,4 +1,11 @@
{
"command": {
"publish": {
"ignoreChanges": [
"packages/terra-core-docs/**"
]
}
},
"packages": [
"packages/*"
],
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@
"clean:obsolete-snapshots": "npm test -- -u",
"create-props-markdown": "node scripts/props-table-gen/generatePropsTables.js",
"compile": "npm run compile:clean && npm run compile:build",
"compile:build": "lerna ls | sed 's/@cerner\\///g' | cut -d ' ' -f1 | xargs -I {} babel packages/{}/src --out-dir packages/{}/lib --copy-files",
"compile:build": "lerna ls -a | sed 's/@cerner\\///g' | cut -d ' ' -f1 | xargs -I {} babel packages/{}/src --out-dir packages/{}/lib --copy-files",
"compile:clean": "rm -rf packages/**/lib",
"compile:prod": "rm -rf ./build; webpack -p",
"compile:lowlight": "rm -rf ./build; THEME=clinical-lowlight-theme webpack -p",
Expand Down
6 changes: 5 additions & 1 deletion packages/terra-action-footer/CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,10 @@

## Unreleased

* Changed
* migrate doc to terra-core-docs
* remove unnecessary dependencies

## 2.60.0 - (April 13, 2021)

* Changed
Expand All @@ -22,7 +26,7 @@
## 2.57.0 - (January 5, 2021)

* Fixed
* Fixed broken links in documentation.
* Fixed broken links in documentation.

## 2.56.0 - (December 8, 2020)

Expand Down
3 changes: 0 additions & 3 deletions packages/terra-action-footer/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -28,9 +28,6 @@
"dependencies": {
"classnames": "^2.2.5",
"prop-types": "^15.5.8",
"terra-button": "^3.55.0",
"terra-hyperlink": "^2.47.0",
"terra-spacer": "^3.54.0",
"terra-theme-context": "^1.0.0"
},
"scripts": {
Expand Down

This file was deleted.

This file was deleted.

10 changes: 5 additions & 5 deletions packages/terra-action-footer/tests/wdio/action-footer-spec.js
Original file line number Diff line number Diff line change
@@ -1,30 +1,30 @@
Terra.describeViewports('ActionFooter', ['small', 'medium'], () => {
it('displays ActionFooter with multiple end actions', () => {
browser.url('/#/raw/tests/terra-action-footer/action-footer/multiple-end-action-footer');
browser.url('/raw/tests/terra-core-docs/action-footer/multiple-end-action-footer');

Terra.validates.element('multiple end actions');
});

it('displays ActionFooter with multiple start actions', () => {
browser.url('/#/raw/tests/terra-action-footer/action-footer/multiple-start-action-footer');
browser.url('/raw/tests/terra-core-docs/action-footer/multiple-start-action-footer');

Terra.validates.element('multiple start actions');
});

it('displays ActionFooter with single end action', () => {
browser.url('/#/raw/tests/terra-action-footer/action-footer/single-end-action-footer');
browser.url('/raw/tests/terra-core-docs/action-footer/single-end-action-footer');

Terra.validates.element('single end action');
});

it('displays ActionFooter with single start action', () => {
browser.url('/#/raw/tests/terra-action-footer/action-footer/single-start-action-footer');
browser.url('/raw/tests/terra-core-docs/action-footer/single-start-action-footer');

Terra.validates.element('single start action');
});

it('displays ActionFooter with single start and end action', () => {
browser.url('/#/raw/tests/terra-action-footer/action-footer/single-start-end-action-footer');
browser.url('/raw/tests/terra-core-docs/action-footer/single-start-end-action-footer');

Terra.validates.element('single start and end action');
});
Expand Down
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
Terra.describeViewports('BlockActionFooter', ['small', 'medium'], () => {
it('displays BlockActionFooter with no actions', () => {
browser.url('/#/raw/tests/terra-action-footer/action-footer/without-actions-block-action-footer');
browser.url('/raw/tests/terra-core-docs/action-footer/without-actions-block-action-footer');

Terra.validates.element('no actions');
});

it('displays BlockActionFooter with actions', () => {
browser.url('/#/raw/tests/terra-action-footer/action-footer/with-actions-block-action-footer');
browser.url('/raw/tests/terra-core-docs/action-footer/with-actions-block-action-footer');

Terra.validates.element('with actions');
});
Expand Down
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
Terra.describeViewports('CenteredActionFooter', ['small', 'medium'], () => {
it('displays CenteredActionFooter with multiple actions', () => {
browser.url('/#/raw/tests/terra-action-footer/action-footer/multiple-action-centered-action-footer');
browser.url('/raw/tests/terra-core-docs/action-footer/multiple-action-centered-action-footer');

Terra.validates.element('multiple actions');
});

it('displays CenteredActionFooter with single action', () => {
browser.url('/#/raw/tests/terra-action-footer/action-footer/single-action-centered-action-footer');
browser.url('/raw/tests/terra-core-docs/action-footer/single-action-centered-action-footer');

Terra.validates.element('single action');
});
Expand Down
6 changes: 5 additions & 1 deletion packages/terra-action-header/CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,10 @@

## Unreleased

* Changed
* migrate doc to terra-core-docs
* remove unnecessary dependencies

## 2.66.0 - (April 13, 2021)

* Changed
Expand Down Expand Up @@ -31,7 +35,7 @@
* Removed usage of `FormattedMessage` in favor of `injectIntl`

* Fixed
* Fixed broken links in documentation.
* Fixed broken links in documentation.

## 2.61.0 - (December 8, 2020)

Expand Down
2 changes: 0 additions & 2 deletions packages/terra-action-header/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -31,8 +31,6 @@
"classnames": "^2.2.5",
"prop-types": "^15.5.8",
"terra-button": "^3.55.0",
"terra-button-group": "^3.55.0",
"terra-icon": "^3.43.0",
"terra-mixins": "^1.40.0",
"terra-theme-context": "^1.0.0"
},
Expand Down

This file was deleted.

22 changes: 11 additions & 11 deletions packages/terra-action-header/tests/wdio/action-header-spec.js
Original file line number Diff line number Diff line change
@@ -1,66 +1,66 @@
Terra.describeViewports('ActionHeader', ['tiny', 'medium', 'large'], () => {
it('displays default ActionHeader', () => {
browser.url('/raw/tests/terra-action-header/action-header/default-action-header');
browser.url('/raw/tests/terra-core-docs/action-header/default-action-header');

Terra.validates.element('default');
});

it('displays ActionHeader with back', () => {
browser.url('/raw/tests/terra-action-header/action-header/back-action-header');
browser.url('/raw/tests/terra-core-docs/action-header/back-action-header');

Terra.validates.element('back');
});

it('displays ActionHeader with back and close', () => {
browser.url('/raw/tests/terra-action-header/action-header/back-close-action-header');
browser.url('/raw/tests/terra-core-docs/action-header/back-close-action-header');

Terra.validates.element('back close');
});

it('displays ActionHeader with close', () => {
browser.url('/raw/tests/terra-action-header/action-header/close-action-header');
browser.url('/raw/tests/terra-core-docs/action-header/close-action-header');

Terra.validates.element('close');
});

it('displays ActionHeader with minimize custom button', () => {
browser.url('/raw/tests/terra-action-header/action-header/minimize-custom-button-action-header');
browser.url('/raw/tests/terra-core-docs/action-header/minimize-custom-button-action-header');

Terra.validates.element('minimize custom button');
});

it('displays ActionHeader with maximize close', () => {
browser.url('/raw/tests/terra-action-header/action-header/maximize-close-action-header');
browser.url('/raw/tests/terra-core-docs/action-header/maximize-close-action-header');

Terra.validates.element('maximize close');
});

it('displays ActionHeader with back close previous next', () => {
browser.url('/raw/tests/terra-action-header/action-header/back-close-previous-next-action-header');
browser.url('/raw/tests/terra-core-docs/action-header/back-close-previous-next-action-header');

Terra.validates.element('back close previous next');
});

it('displays ActionHeader with next enabled previous disabled', () => {
browser.url('/raw/tests/terra-action-header/action-header/next-enabled-previous-disabled-action-header');
browser.url('/raw/tests/terra-core-docs/action-header/next-enabled-previous-disabled-action-header');

Terra.validates.element('next enabled previous disabled');
});

it('displays ActionHeader with previous enabled next disabled', () => {
browser.url('/raw/tests/terra-action-header/action-header/previous-enabled-next-disabled-action-header');
browser.url('/raw/tests/terra-core-docs/action-header/previous-enabled-next-disabled-action-header');

Terra.validates.element('previous enabled next disabled');
});

it('displays ActionHeader with wrapped title', () => {
browser.url('/raw/tests/terra-action-header/action-header/wrapped-title-action-header');
browser.url('/raw/tests/terra-core-docs/action-header/wrapped-title-action-header');

Terra.validates.element('wrapped title');
});

it('displays ActionHeader with end element only', () => {
browser.url('/raw/tests/terra-action-header/action-header/end-element-action-header');
browser.url('/raw/tests/terra-core-docs/action-header/end-element-action-header');

Terra.validates.element('end element only');
});
Expand Down
1 change: 1 addition & 0 deletions packages/terra-core-docs/.npmrc
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
package-lock=false
5 changes: 5 additions & 0 deletions packages/terra-core-docs/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
# Changelog

## Unreleased

* Initial stable release
Loading

0 comments on commit 8cdd992

Please sign in to comment.