Skip to content
Permalink

Comparing changes

Choose two branches to see what’s changed or to start a new pull request. If you need to, you can also or learn more about diff comparisons.

Open a pull request

Create a new pull request by comparing changes across two branches. If you need to, you can also . Learn more about diff comparisons here.
base repository: RedHatInsights/frontend-components
Failed to load repositories. Confirm that selected base ref is valid, then try again.
Loading
base: e7d64498f7e500d2d95ae866c0d818e80a3f9f89
Choose a base ref
...
head repository: RedHatInsights/frontend-components
Failed to load repositories. Confirm that selected head ref is valid, then try again.
Loading
compare: 99a5ab29b784bbb5c476c50d9f71788479bba56c
Choose a head ref
Loading
Showing 379 changed files with 21,152 additions and 21,434 deletions.
20 changes: 20 additions & 0 deletions .github/workflows/releaser.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
name: Releaser
on:
pull_request_target:
types: [ labeled, closed ]
issue_comment:
types: [ created, edited ]

jobs:
pr_merged:
runs-on: ubuntu-latest
name: Trigger job on comment, merge or label
steps:
- name: Trigger release
id: release
uses: RedHatInsights/frontend-releaser@v1
with:
gh-bot-token: ${{ secrets.GH_BOT_TOKEN }}
travis-config: '{"token":"${{ secrets.TRAVIS_TOKEN }}", "script": "npm run release:bot"}'
allowed-users: '["karelhala", "ryelo", "Hyperkid123", "fhlavac"]'
bot-name: nacho-bot
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -32,3 +32,4 @@ lerna-debug.log
.DS_Store
packages/**/package-lock.json
packages/**/.cache
*.tgz
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -21,7 +21,7 @@ To contribute to docs and run the docs developemnt environment, please follow th

## Treeshaking PF with babel plugin

Patternfly packages require some ehancements to be done in order to properly treeshake your bundles. You can either use direct imports or plugin that does that for you, there are actually 2 plugins to do this
Patternfly packages require some enhancements to be done in order to properly treeshake your bundles. You can either use direct imports or plugin that does that for you, there are actually 2 plugins to do this
* [babel-plugin-import](https://www.npmjs.com/package/babel-plugin-import) - easy setup, however not that extensible
* [babel-plugin-transform-imports](https://www.npmjs.com/package/babel-plugin-transform-imports) - harder to setup, but allows custom rules

4 changes: 3 additions & 1 deletion jest.config.js
Original file line number Diff line number Diff line change
@@ -6,13 +6,15 @@ const config = {
coverageDirectory: './coverage/',
collectCoverage: true,
transformIgnorePatterns: [
'node_modules/(?!@patternfly|@data-driven-forms)',
'node_modules/(?!@patternfly|@data-driven-forms|lodash-es|@openshift)',

// Uncomment the below line if you face any errors with jest
// '/node_modules/(?!@redhat-cloud-services)',
],
collectCoverageFrom: [
'<rootDir>/packages/**/src/**/*.js',
'<rootDir>/packages/**/src/**/*.ts',
'<rootDir>/packages/**/src/**/*.tsx',
'!<rootDir>/packages/**/stories/*',
'!<rootDir>/packages/**/index.js',
'!<rootDir>/packages/**/*{c|C}ontext*.js',
Loading