Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
53 commits
Select commit Hold shift + click to select a range
77da4ac
test(Label): Refactor Label tests to use shallow rendering (#295)
dmiller9911 Apr 9, 2018
dd9ff71
fix(InfoTip): Fix ref errors from react-boostrap for InfoTip componen…
dmiller9911 Apr 9, 2018
332aace
refactor(package): Migrate from npm to Yarn (#289)
vojtechszocs Apr 12, 2018
0b5fc10
fix(ListView): Fixed issue with hideCloseIcon not being respected (#298)
chalettu Apr 13, 2018
b9d2b6d
feat(notification-drawer): Adds Notification Drawer
glekner Apr 13, 2018
6fe7847
fix(CardHeightMatching): Fix debounce invocation in CardHeightMatchin…
dmiller9911 Apr 16, 2018
a44b0db
refactor(components): Use ...props for destructing/spread'ing props (…
chalettu Apr 16, 2018
db6612e
chore(package.json): Remove --fix from lint script (and CI), add lint…
mturley Apr 17, 2018
c27866d
feat(Slider): Add Slider component, storybook and tests (#280)
ronlavi2412 Apr 17, 2018
6b10471
fix(VerticalNavigation): Accept no hover delay on subsequent hovers (…
jeff-phillips-18 Apr 17, 2018
b755cdb
Updating the contributing.md (#302)
LHinson Apr 17, 2018
ae51f0b
chore(eslint): Add lint-staged and precommit script to format code on…
dmiller9911 Apr 18, 2018
112efd4
chore(.githooks/post-merge): Add git-hooks and a post-merge hook for …
mturley Apr 18, 2018
2e2ffed
feat(WizardPattern): Clean up Wizard, Add WizardPattern and StatefulW…
mturley Apr 18, 2018
c330959
chore(package): Remove package-lock.json (#312)
vojtechszocs Apr 18, 2018
9c5f841
feat(inline-edit): table inline edit components (#240)
Apr 19, 2018
ec56c4b
chore(package.json): Make git-hooks a dev dependency (#315)
michaelkro Apr 19, 2018
170a3d6
fix(wizard): expose onExited callback (#316)
priley86 Apr 20, 2018
b32aeb8
feat(VerticalNav): Add a prop to allow disabling persistence (#307)
mturley Apr 20, 2018
0404790
fix(All): Remove bindMethods in favor of Class properties (#313)
chalettu Apr 23, 2018
4a69ebd
chore(Console): Add skeleton of @patternfly-react/console package (#311)
dmiller9911 Apr 23, 2018
466a5d8
feat(SerialConsole): Introduce SerialConsole component (#160)
mareklibra May 2, 2018
566057c
chore(console): Update console package name (#325)
jeff-phillips-18 May 2, 2018
7398b5a
chore(NotificationList) -Automate notification creation for list exam…
AllenBW May 8, 2018
b885179
docs(Chars documentation): Description for charts pointing to c3js (#…
karelhala May 9, 2018
bb8b1a4
feat(monorepo): converts patternfly-react to a lerna monorepo (#332)
priley86 May 9, 2018
7e566df
fix(jest-config): fix roots path for jest module imports (#333)
priley86 May 9, 2018
9cc4f60
chore(release): releasing component
patternfly-build May 9, 2018
2d18cf9
chore(release): releasing component
patternfly-build May 9, 2018
245f499
fix(test): testing the lerna release on patternfly-react (#334)
priley86 May 9, 2018
888f42f
chore(release): releasing component
patternfly-build May 9, 2018
f19e4f7
fix(Dividing onNotificationClick): dividing onNotificationClick to tw…
glekner May 10, 2018
c31d3c5
chore(release): releasing component
patternfly-build May 10, 2018
ca5763a
chore(storybook): add CSS styling to react-console storybook (#341)
mareklibra May 11, 2018
61fdc8a
refactor(Storybook reorder): move all stories to their folders based …
karelhala May 11, 2018
27b206e
fix(NotificationDrawer): add Translation capability (#339)
glekner May 14, 2018
03a07de
chore(release): releasing component
patternfly-build May 14, 2018
3604a64
chore(vscode): remove eslint rule path options override (#346)
priley86 May 14, 2018
d55644c
fix(console): remove files field. this pattern prevents other dist fi…
priley86 May 14, 2018
d51c760
chore(release): releasing component
patternfly-build May 14, 2018
5a652fa
docs(storybook): include styles from dependencies from all packages (…
jeff-phillips-18 May 15, 2018
8cfdb1b
fix(tables): update reactabular-table, fix provider renderers prop (#…
priley86 May 16, 2018
ff09abb
chore(release): releasing component
patternfly-build May 16, 2018
c090051
test(SerialConsole): add more unit tests for the SerialConsole (#359)
mareklibra May 22, 2018
d6df56e
feat(Font style for SerialConsole): allow customized font styling for…
mareklibra May 22, 2018
081ff5d
chore(release): releasing component
patternfly-build May 22, 2018
7d0c2e3
docs(storybook): update the storybook layout for patternfly-react to …
jeff-phillips-18 May 23, 2018
c5d9979
docs(README): Fix link to patternly-react.scss file (#368)
jeff-phillips-18 May 29, 2018
209707d
docs(console README): fix package name in the console README file (#370)
jeff-phillips-18 May 29, 2018
24b35bc
fix(console): update pf-react and yarn.lock for addressing table issu…
priley86 May 29, 2018
71eab01
chore(release): releasing component
patternfly-build May 29, 2018
c1d55f9
chore(release): releasing component
patternfly-build May 29, 2018
cb1329c
Add Autocomplete component with storybook and tests.
ronlavi2412 May 31, 2018
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
9 changes: 1 addition & 8 deletions .babelrc
Original file line number Diff line number Diff line change
@@ -1,10 +1,3 @@
{
"presets": ["env", "react"],
"plugins": [
"transform-class-properties",
"transform-export-extensions",
"transform-object-rest-spread",
"transform-object-assign"
],
"ignore": ["src/**/__snapshots__", "src/**/*.stories.js", "src/**/Stories"]
"presets": ["./.babelrc.js"]
}
23 changes: 23 additions & 0 deletions .babelrc.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
const babelENV = process.env.BABEL_ENV || 'development';
const modules = babelENV !== 'production:esm' ? 'commonjs' : false;

module.exports = {
presets: [['env', { modules: modules }], 'react'],
plugins: [
'transform-class-properties',
'transform-export-extensions',
'transform-object-rest-spread',
'transform-object-assign'
],
ignore: (() => {
const ignore = [
'src/**/__snapshots__',
'src/**/*.stories.js',
'src/**/Stories'
];
if (babelENV.includes('production')) {
ignore.push('test.js', '__mocks__');
}
return ignore;
})()
};
2 changes: 2 additions & 0 deletions .eslintignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
packages/*/node_modules
packages/*/dist
70 changes: 0 additions & 70 deletions .eslintrc

This file was deleted.

31 changes: 31 additions & 0 deletions .eslintrc.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
const path = require('path');

module.exports = {
root: true,
extends: ['plugin:patternfly-react/recommended'],
rules: {
'import/first': 'off'
},
overrides: [
{
files: ['**/__mocks__/**', '**/Stories/**', '*.stories.js', '*.test.js'],
rules: {
'import/no-extraneous-dependencies': 'off'
}
}
],
settings: {
'import/resolver': {
webpack: {
config: {
resolve: {
modules: [
path.resolve(__dirname, './'),
path.resolve(__dirname, './node_modules')
]
}
}
}
}
}
};
13 changes: 13 additions & 0 deletions .githooks/post-merge/check_package_json
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
#!/usr/bin/env bash
# MIT © Sindre Sorhus - sindresorhus.com
# https://gist.github.com/sindresorhus/7996717

# git hook to run a command after `git pull` if a specified file was changed

changed_files="$(git diff-tree -r --name-only --no-commit-id ORIG_HEAD HEAD)"

check_run() {
echo "$changed_files" | grep --quiet "$1" && eval "$2"
}

check_run package.json "yarn install"
5 changes: 4 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
@@ -1,10 +1,13 @@
node_modules
npm-debug.log
dist
.out
.DS_Store
coverage

# package managers
yarn-error.log
lerna-debug.log

# IDEs and editors
/.idea
.project
Expand Down
4 changes: 0 additions & 4 deletions .npmignore

This file was deleted.

4 changes: 4 additions & 0 deletions .prettierrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
{
"singleQuote": true,
"trailingComma": "none"
}
22 changes: 10 additions & 12 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -1,8 +1,6 @@
language: node_js
sudo: required
cache:
directories:
- node_modules
cache: yarn
env:
global:
- ENCRYPTION_LABEL: "b601314e09dc"
Expand All @@ -12,17 +10,17 @@ env:
- TRIGGER_REPO_BRANCH: "master"
notifications:
email: false
node_js:
- '8'
- '6'
before_script:
- npm prune
before_install:
- .travis/before_install.sh
- yarn install
script:
- npm run test
- npm run coveralls
- yarn test
- yarn coveralls
after_success:
- npm run travis-deploy-once "npm run semantic-release"
- ./release.sh
- .travis/after_success.sh
- .travis/release.sh
git:
depth: 1
branches:
except:
- "/^v\\d+\\.\\d+\\.\\d+$/"
12 changes: 12 additions & 0 deletions .travis/after_success.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
#!/bin/bash
set -e

if [ "$TRAVIS_PULL_REQUEST" != "false" ]; then
echo "We are in a pull request, not releasing"
exit 0
fi

if [ "${TRAVIS_REPO_SLUG}" == "${TRIGGER_REPO_SLUG}" -a "$TRAVIS_BRANCH" == "${TRIGGER_REPO_BRANCH}" ]; then
# note: yarn travis-deploy-once "yarn semantic-release" currently breaks NPM_TOKEN auth context
npm run travis-deploy-once "npm run semantic-release"
fi
37 changes: 37 additions & 0 deletions .travis/before_install.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@
#!/bin/bash
set -e
# Note: do not do set -x or the passwords will leak!

if [ "$TRAVIS_PULL_REQUEST" != "false" ]; then
echo "We are in a pull request, not setting up release"
exit 0
fi

if [ "${TRAVIS_REPO_SLUG}" == "${TRIGGER_REPO_SLUG}" -a "$TRAVIS_BRANCH" == "${TRIGGER_REPO_BRANCH}" ]; then
rm -rf .git
git init
git clean -dfx
git remote add origin https://github.com/$TRAVIS_REPO_SLUG.git
git fetch origin
git clone https://github.com/$TRAVIS_REPO_SLUG.git $TRAVIS_REPO_SLUG
git checkout $TRAVIS_BRANCH

git config credential.helper store
echo "https://${GH_USERNAME}:${GH_TOKEN}@github.com/${TRAVIS_REPO_SLUG}.git" > ~/.git-credentials

npm config set "//registry.npmjs.org/:_authToken=${NPM_TOKEN}" -q
echo "//registry.npmjs.org/:_authToken=${NPM_TOKEN}" > ~/.npmrc
npm prune

git config --global user.email ${COMMIT_AUTHOR_EMAIL}
git config --global user.name ${COMMIT_AUTHOR_USERNAME}
git config --global push.default simple

git fetch --tags
git branch -u origin/$TRAVIS_BRANCH
git fsck --full #debug
echo "npm whoami"
npm whoami #debug
echo "git config --list"
git config --list #debug
fi
42 changes: 42 additions & 0 deletions .travis/release.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,42 @@
#!/usr/bin/env bash

RED='\033[0;31m'
NC='\033[0m' # No Color
SSH_REPO="[email protected]:${TRIGGER_REPO_SLUG}"

getDeployKey () {
if [ "${TRAVIS_PULL_REQUEST}" != "false" ]; then
echo -e "${RED}The travis ecrypted key var is not available to builds triggered by pull requests. Aborting.${NC}"
exit 0
fi
# Get the deploy key by using Travis's stored variables to decrypt deploy_key.enc
ENCRYPTED_KEY_VAR="encrypted_${ENCRYPTION_LABEL}_key"
ENCRYPTED_IV_VAR="encrypted_${ENCRYPTION_LABEL}_iv"
echo "Checking Travis ENV VAR: ${ENCRYPTED_KEY_VAR}..."
ENCRYPTED_KEY=${!ENCRYPTED_KEY_VAR}
echo "Checking Travis ENV VAR: ${ENCRYPTED_IV_VAR}..."
ENCRYPTED_IV=${!ENCRYPTED_IV_VAR}
echo "Run Openssl"
openssl aes-256-cbc -K $ENCRYPTED_KEY -iv $ENCRYPTED_IV -in deploy_key.enc -out deploy_key -d
echo "Run chmod"
chmod 600 deploy_key
eval `ssh-agent -s`
ssh-add deploy_key
}

if [ "${TRAVIS_REPO_SLUG}" != "${TRIGGER_REPO_SLUG}" -o "${TRAVIS_BRANCH}" != "${TRIGGER_REPO_BRANCH}" ]; then
echo -e "${RED}Exiting, this is not a production release.${NC}"
exit 0;
fi

getDeployKey
yarn storybook:build
cd .out
git config --global user.email $COMMIT_AUTHOR_EMAIL
git config --global user.name $COMMIT_AUTHOR_USERNAME
git init
git add .
git commit -m "Deploy Storybook to GitHub Pages"

git remote add ssh-origin $SSH_REPO
git push --force --quiet ssh-origin master:gh-pages
5 changes: 1 addition & 4 deletions .vscode/settings.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,5 @@
"editor.formatOnSave": true,
"prettier.eslintIntegration": true,
"prettier.singleQuote": true,
"prettier.trailingComma": "none",
"eslint.options": {
"rulePaths": ["./lint-rules"]
}
"prettier.trailingComma": "none"
}
Loading