This repository has been archived by the owner on May 24, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 14
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[terra-application] Convert terra-application repo to a mono repo (#245)
* Convert terra-appliation to a mono repo * travis and heroku fixes * lint
- Loading branch information
Showing
621 changed files
with
643 additions
and
318 deletions.
There are no files selected for viewing
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
package-lock=false |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,65 +1,28 @@ | ||
<!-- Logo --> | ||
<p align="center"> | ||
<img height="128" width="128" src="https://github.com/cerner/terra-application/raw/main/terra.png" alt="terra logo" /> | ||
</p> | ||
|
||
<!-- Name --> | ||
<h1 align="center"> | ||
Terra Application | ||
</h1> | ||
# Terra Application | ||
|
||
[](https://www.npmjs.org/package/terra-application) | ||
[](http://engineering.cerner.com/2014/01/cerner-and-open-source/) | ||
[](https://github.com/cerner/terra-application/blob/main/LICENSE) | ||
[](https://travis-ci.com/cerner/terra-application) | ||
[](https://david-dm.org/cerner/terra-application) | ||
[](https://david-dm.org/cerner/terra-application?type=dev) | ||
[](https://lerna.js.org/) | ||
|
||
A framework to support application development with Terra components. | ||
Please see [terra-ui](https://engineering.cerner.com/terra-ui/home/terra-ui/index) for all terra documentation. | ||
|
||
* [Getting Started](#getting-started) | ||
* [Versioning](#versioning) | ||
* [Contributing](#contributing) | ||
* [LICENSE](#license) | ||
## Internationalization (I18n) | ||
|
||
## Getting Started | ||
|
||
* Install with [npm](https://www.npmjs.com): `npm install --save terra-application` | ||
|
||
## Peer Dependencies | ||
|
||
This component requires the following peer dependencies be installed in your app for the component to properly function. | ||
|
||
| Peer Dependency | Version | | ||
|-|-| | ||
| react | ^16.8.5 | | ||
| react-dom | ^16.8.5 | | ||
| react-intl | ^2.9.0 | | ||
|
||
## Versioning | ||
|
||
terra-application is considered to be stable and will follow [SemVer](https://semver.org/) for versioning. | ||
|
||
1. MAJOR versions represent breaking changes | ||
2. MINOR versions represent added functionality in a backwards-compatible manner | ||
3. PATCH versions represent backwards-compatible bug fixes | ||
|
||
Consult the component CHANGELOGs, related issues, and PRs for more information. | ||
|
||
## Private Directories | ||
|
||
Javascript in `private` directories is not part of Terra's public API and should not be consumed directly. | ||
Please review [Terra's Internationalization documentation](https://engineering.cerner.com/terra-ui/#/getting-started/terra-ui/internationalization) for more information. Included are directions on consumption and how internationalization is setup. | ||
|
||
## Contributing | ||
|
||
Please read through our [contributing guidelines](CONTRIBUTING.md). Included are directions for issue reporting and pull requests. | ||
Please read through our [contributing guidelines](https://engineering.cerner.com/terra-ui/about/terra-ui/contributing/contribution-guidelines). Included are directions for issue reporting and pull requests. | ||
|
||
## LICENSE | ||
|
||
Copyright 2019 - 2020 Cerner Innovation, Inc. | ||
Copyright 2019 - present Cerner Innovation, Inc. | ||
|
||
Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at | ||
|
||
<http://www.apache.org/licenses/LICENSE-2.0> | ||
[http://www.apache.org/licenses/LICENSE-2.0](http://www.apache.org/licenses/LICENSE-2.0) | ||
|
||
Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,48 @@ | ||
// eslint-disable-next-line import/no-extraneous-dependencies | ||
import { danger, fail } from 'danger'; | ||
|
||
const lernaConfig = require('./lerna.json'); | ||
|
||
let ignorePatterns = []; | ||
|
||
if (lernaConfig.command) { | ||
ignorePatterns = lernaConfig.command.publish.ignoreChanges; | ||
} | ||
|
||
const CHANGELOG_PATTERN = /^packages\/([a-z-])*\/CHANGELOG\.md/i; | ||
|
||
const changedFiles = danger.git.created_files.concat(danger.git.modified_files); | ||
|
||
const changedChangelogs = new Set(); | ||
const changedPackages = new Set(); | ||
|
||
const getPackageName = (pattern) => pattern.split('packages/')[1].split('/')[0]; | ||
|
||
const ignorePackages = ignorePatterns.map((pattern) => getPackageName(pattern)); | ||
|
||
changedFiles.forEach((file) => { | ||
// file isn't in a package so it has no changelog, skip further processing | ||
if (file.substring(0, 9) !== 'packages/') { | ||
return; | ||
} | ||
|
||
const packageName = getPackageName(file); | ||
|
||
if (ignorePackages.includes(packageName)) { | ||
// file is in a package that currently is not released, skip further processing | ||
return; | ||
} | ||
|
||
if (CHANGELOG_PATTERN.test(file)) { | ||
changedChangelogs.add(packageName); | ||
} else { // file is in a package and was changed - we need a changelog | ||
changedPackages.add(packageName); | ||
} | ||
}); | ||
|
||
const missingChangelogs = [...changedPackages].filter(packageName => !changedChangelogs.has(packageName)); | ||
|
||
// Fail if there are package changes without a CHANGELOG update | ||
if (missingChangelogs.length > 0) { | ||
fail(`Please include a CHANGELOG entry for each changed package on this PR. Looks like a CHANGELOG is missing for: \n\n - ${missingChangelogs.join('\n - ')}`); | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
const jestConfig = require('@cerner/jest-config-terra'); | ||
|
||
module.exports = { | ||
...jestConfig, | ||
globalSetup: './jest.globalSetup.js', | ||
setupFiles: [ | ||
'./jest.enzymeSetup.js', | ||
], | ||
snapshotSerializers: [ | ||
'enzyme-to-json/serializer', | ||
], | ||
moduleDirectories: [ | ||
'aggregated-translations', | ||
'node_modules', | ||
], | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
{ | ||
"version": "independent", | ||
"packages": ["packages/*"], | ||
"command": { | ||
"publish": { | ||
"ignoreChanges": [ | ||
"packages/terra-application/**" | ||
] | ||
} | ||
} | ||
} |
Oops, something went wrong.