Skip to content

Commit 0f43372

Browse files
feat(init): initial creation of extracted catalog view
0 parents  commit 0f43372

File tree

101 files changed

+28761
-0
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

101 files changed

+28761
-0
lines changed

.eslintignore

Lines changed: 35 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,35 @@
1+
# Javascript builds
2+
node_modules
3+
dist
4+
tsc_out
5+
.out
6+
.changelog
7+
.DS_Store
8+
coverage
9+
.cache
10+
.tmp
11+
.eslintcache
12+
generated
13+
14+
# package managers
15+
yarn-error.log
16+
lerna-debug.log
17+
18+
# IDEs and editors
19+
.idea
20+
.project
21+
.classpath
22+
.c9
23+
*.launch
24+
.settings
25+
*.sublime-workspace
26+
.history
27+
.vscode
28+
.yo-rc.json
29+
30+
# IDE - VSCode
31+
.vscode
32+
# For vim
33+
*.swp
34+
35+
public

.eslintrc-md.json

Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
{
2+
"plugins": [
3+
"markdown",
4+
"react"
5+
],
6+
"parserOptions": {
7+
"ecmaVersion": 9,
8+
"sourceType": "module",
9+
"ecmaFeatures": {
10+
"jsx": true
11+
}
12+
},
13+
"settings": {
14+
"react": {
15+
"version": "16.4.0"
16+
}
17+
},
18+
"rules": {
19+
"eol-last": 2,
20+
"spaced-comment": 2,
21+
"no-unused-vars": 0,
22+
"no-this-before-super": 2,
23+
"react/jsx-uses-react": "error",
24+
"react/jsx-uses-vars": "error",
25+
"react/no-unknown-property": 2,
26+
"react/jsx-no-undef": 2
27+
}
28+
}

.eslintrc.json

Lines changed: 97 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,97 @@
1+
{
2+
"env": {
3+
"browser": true,
4+
"node": true,
5+
"es6": true
6+
},
7+
"extends": [
8+
"eslint:recommended",
9+
"plugin:react/recommended",
10+
"plugin:react-hooks/recommended",
11+
"plugin:@typescript-eslint/recommended",
12+
"prettier"
13+
],
14+
"overrides": [
15+
{
16+
"files": ["**/patternfly-docs/pages/*"],
17+
"rules": {
18+
"arrow-body-style": "off"
19+
}
20+
}
21+
],
22+
"parserOptions": {
23+
"ecmaVersion": "latest",
24+
"sourceType": "module",
25+
"ecmaFeatures": {
26+
"jsx": true
27+
}
28+
},
29+
"settings": {
30+
"react": {
31+
"version": "detect"
32+
}
33+
},
34+
"plugins": ["react", "react-hooks", "@typescript-eslint"],
35+
"rules": {
36+
"@typescript-eslint/adjacent-overload-signatures": "error",
37+
"@typescript-eslint/array-type": "error",
38+
"@typescript-eslint/consistent-type-assertions": "error",
39+
"@typescript-eslint/consistent-type-definitions": "error",
40+
"@typescript-eslint/no-misused-new": "error",
41+
"@typescript-eslint/no-namespace": "error",
42+
"@typescript-eslint/no-unused-vars": [
43+
"error",
44+
{
45+
"argsIgnorePattern": "^_"
46+
}
47+
],
48+
"@typescript-eslint/prefer-for-of": "error",
49+
"@typescript-eslint/prefer-function-type": "error",
50+
"@typescript-eslint/prefer-namespace-keyword": "error",
51+
"@typescript-eslint/unified-signatures": "error",
52+
"@typescript-eslint/no-var-requires": "off",
53+
"arrow-body-style": "error",
54+
"camelcase": [
55+
"error",
56+
{
57+
"ignoreDestructuring": true
58+
}
59+
],
60+
"constructor-super": "error",
61+
"curly": "error",
62+
"dot-notation": "error",
63+
"eqeqeq": ["error", "smart"],
64+
"guard-for-in": "error",
65+
"max-classes-per-file": ["error", 1],
66+
"no-nested-ternary": "error",
67+
"no-bitwise": "error",
68+
"no-caller": "error",
69+
"no-cond-assign": "error",
70+
"no-console": "error",
71+
"no-debugger": "error",
72+
"no-empty": "error",
73+
"no-eval": "error",
74+
"no-new-wrappers": "error",
75+
"no-undef-init": "error",
76+
"no-unsafe-finally": "error",
77+
"no-unused-expressions": [
78+
"error",
79+
{
80+
"allowTernary": true,
81+
"allowShortCircuit": true
82+
}
83+
],
84+
"no-unused-labels": "error",
85+
"no-var": "error",
86+
"object-shorthand": "error",
87+
"one-var": ["error", "never"],
88+
"prefer-const": "error",
89+
"radix": ["error", "as-needed"],
90+
"react/prop-types": 0,
91+
"react/display-name": 0,
92+
"react-hooks/exhaustive-deps": "warn",
93+
"react/no-unescaped-entities": ["error", { "forbid": [">", "}"] }],
94+
"spaced-comment": "error",
95+
"use-isnan": "error"
96+
}
97+
}
Lines changed: 171 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,171 @@
1+
name: build-lint-test
2+
on:
3+
workflow_call:
4+
jobs:
5+
build:
6+
runs-on: ubuntu-latest
7+
env:
8+
GH_PR_NUM: ${{ github.event.number }}
9+
steps:
10+
- uses: actions/checkout@v2
11+
- run: |
12+
if [[ ! -z "${GH_PR_NUM}" ]]; then
13+
echo "Checking out PR"
14+
git fetch origin pull/$GH_PR_NUM/head:tmp
15+
git checkout tmp
16+
fi
17+
- name: Run build script
18+
run: ./devSetup.sh
19+
shell: bash
20+
- uses: actions/setup-node@v1
21+
with:
22+
node-version: '14'
23+
- uses: actions/cache@v2
24+
id: yarn-cache
25+
name: Cache npm deps
26+
with:
27+
path: |
28+
node_modules
29+
**/node_modules
30+
key: ${{ runner.os }}-yarn-14-${{ secrets.CACHE_VERSION }}-${{ hashFiles('yarn.lock') }}
31+
- run: yarn install --frozen-lockfile
32+
if: steps.yarn-cache.outputs.cache-hit != 'true'
33+
- uses: actions/cache@v2
34+
id: dist
35+
name: Cache dist
36+
with:
37+
path: |
38+
packages/*/dist
39+
key: ${{ runner.os }}-dist-14-${{ secrets.CACHE_VERSION }}-${{ hashFiles('yarn.lock', 'package.json', 'packages/*/*', '!packages/*/dist', '!packages/*/node_modules') }}
40+
- name: Build dist
41+
run: yarn build
42+
if: steps.dist.outputs.cache-hit != 'true'
43+
lint:
44+
runs-on: ubuntu-latest
45+
env:
46+
GH_PR_NUM: ${{ github.event.number }}
47+
needs: build
48+
steps:
49+
- uses: actions/checkout@v2
50+
- run: |
51+
if [[ ! -z "${GH_PR_NUM}" ]]; then
52+
echo "Checking out PR"
53+
git fetch origin pull/$GH_PR_NUM/head:tmp
54+
git checkout tmp
55+
fi
56+
- name: Run build script
57+
run: ./devSetup.sh
58+
shell: bash
59+
- uses: actions/setup-node@v1
60+
with:
61+
node-version: '14'
62+
- uses: actions/cache@v2
63+
id: yarn-cache
64+
name: Cache npm deps
65+
with:
66+
path: |
67+
node_modules
68+
**/node_modules
69+
key: ${{ runner.os }}-yarn-14-${{ secrets.CACHE_VERSION }}-${{ hashFiles('yarn.lock') }}
70+
- run: yarn install --frozen-lockfile
71+
if: steps.yarn-cache.outputs.cache-hit != 'true'
72+
- uses: actions/cache@v2
73+
id: lint-cache
74+
name: Load lint cache
75+
with:
76+
path: '.eslintcache'
77+
key: ${{ runner.os }}-lint-14-${{ secrets.CACHE_VERSION }}-${{ hashFiles('yarn.lock') }}
78+
- name: ESLint
79+
run: yarn lint:js
80+
- name: MDLint
81+
run: yarn lint:md
82+
test_jest:
83+
runs-on: ubuntu-latest
84+
env:
85+
GH_PR_NUM: ${{ github.event.number }}
86+
needs: build
87+
steps:
88+
- uses: actions/checkout@v2
89+
# Yes, we really want to checkout the PR
90+
- run: |
91+
if [[ ! -z "${GH_PR_NUM}" ]]; then
92+
echo "Checking out PR"
93+
git fetch origin pull/$GH_PR_NUM/head:tmp
94+
git checkout tmp
95+
fi
96+
- name: Run build script
97+
run: ./devSetup.sh
98+
shell: bash
99+
- uses: actions/setup-node@v1
100+
with:
101+
node-version: '14'
102+
- uses: actions/cache@v2
103+
id: yarn-cache
104+
name: Cache npm deps
105+
with:
106+
path: |
107+
node_modules
108+
**/node_modules
109+
~/.cache/Cypress
110+
key: ${{ runner.os }}-yarn-14-${{ secrets.CACHE_VERSION }}-${{ hashFiles('yarn.lock') }}
111+
- run: yarn install --frozen-lockfile
112+
if: steps.yarn-cache.outputs.cache-hit != 'true'
113+
- uses: actions/cache@v2
114+
id: dist
115+
name: Cache dist
116+
with:
117+
path: |
118+
packages/*/dist
119+
packages/react-styles/css
120+
key: ${{ runner.os }}-dist-14-${{ secrets.CACHE_VERSION }}-${{ hashFiles('yarn.lock', 'package.json', 'packages/*/*', '!packages/*/dist', '!packages/*/node_modules') }}
121+
- name: Build dist
122+
run: yarn build
123+
if: steps.dist.outputs.cache-hit != 'true'
124+
- name: PF4 Jest Tests
125+
run: yarn test --maxWorkers=2
126+
test_a11y:
127+
runs-on: ubuntu-latest
128+
env:
129+
GH_PR_NUM: ${{ github.event.number }}
130+
needs: build
131+
steps:
132+
- uses: actions/checkout@v2
133+
# Yes, we really want to checkout the PR
134+
- run: |
135+
if [[ ! -z "${GH_PR_NUM}" ]]; then
136+
echo "Checking out PR"
137+
git fetch origin pull/$GH_PR_NUM/head:tmp
138+
git checkout tmp
139+
fi
140+
- name: Run build script
141+
run: ./devSetup.sh
142+
shell: bash
143+
- uses: actions/setup-node@v1
144+
with:
145+
node-version: '14'
146+
- uses: actions/cache@v2
147+
id: yarn-cache
148+
name: Cache npm deps
149+
with:
150+
path: |
151+
node_modules
152+
**/node_modules
153+
~/.cache/Cypress
154+
key: ${{ runner.os }}-yarn-14-${{ secrets.CACHE_VERSION }}-${{ hashFiles('yarn.lock') }}
155+
- run: yarn install --frozen-lockfile
156+
if: steps.yarn-cache.outputs.cache-hit != 'true'
157+
- uses: actions/cache@v2
158+
id: dist
159+
name: Cache dist
160+
with:
161+
path: |
162+
packages/*/dist
163+
packages/react-styles/css
164+
key: ${{ runner.os }}-dist-14-${{ secrets.CACHE_VERSION }}-${{ hashFiles('yarn.lock', 'package.json', 'packages/*/*', '!packages/*/dist', '!packages/*/node_modules') }}
165+
- name: Build dist
166+
run: yarn build
167+
if: steps.dist.outputs.cache-hit != 'true'
168+
- name: Build docs
169+
run: yarn build:docs
170+
- name: A11y tests
171+
run: yarn serve:docs & yarn test:a11y

.github/workflows/check-pr.yml

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
name: check-pr
2+
on:
3+
pull_request:
4+
branches:
5+
- main
6+
jobs:
7+
call-build-lint-test-workflow:
8+
uses: ./.github/workflows/build-lint-test.yml

.github/workflows/release.yml

Lines changed: 46 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,46 @@
1+
name: release
2+
on:
3+
push:
4+
branches:
5+
- main
6+
jobs:
7+
call-build-lint-test-workflow:
8+
uses: ./.github/workflows/build-lint-test.yml
9+
deploy:
10+
runs-on: ubuntu-latest
11+
needs: [call-build-lint-test-workflow]
12+
env:
13+
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
14+
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
15+
steps:
16+
- uses: actions/checkout@v2
17+
- name: Run build script
18+
run: ./devSetup.sh
19+
shell: bash
20+
- uses: actions/setup-node@v1
21+
with:
22+
node-version: '14'
23+
- uses: actions/cache@v2
24+
id: yarn-cache
25+
name: Cache npm deps
26+
with:
27+
path: |
28+
node_modules
29+
**/node_modules
30+
~/.cache/Cypress
31+
key: ${{ runner.os }}-yarn-14-${{ secrets.CACHE_VERSION }}-${{ hashFiles('yarn.lock') }}
32+
- run: yarn install --frozen-lockfile
33+
if: steps.yarn-cache.outputs.cache-hit != 'true'
34+
- uses: actions/cache@v2
35+
id: dist
36+
name: Cache dist
37+
with:
38+
path: |
39+
packages/*/dist
40+
packages/react-styles/css
41+
key: ${{ runner.os }}-dist-14-${{ secrets.CACHE_VERSION }}-${{ hashFiles('yarn.lock', 'package.json', 'packages/*/*', '!packages/*/dist', '!packages/*/node_modules') }}
42+
- name: Build dist
43+
run: yarn build
44+
if: steps.dist.outputs.cache-hit != 'true'
45+
- name: Release to NPM
46+
run: cd packages/module && npx semantic-release@19.0.5

0 commit comments

Comments
 (0)