Skip to content

Commit

Permalink
Initial commit
Browse files Browse the repository at this point in the history
  • Loading branch information
AllenBW committed Nov 19, 2020
0 parents commit 7bdc8f4
Show file tree
Hide file tree
Showing 40 changed files with 20,196 additions and 0 deletions.
13 changes: 13 additions & 0 deletions .babelrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
{
"presets": [
"@babel/env",
"@babel/react",
"@babel/flow"
],
"plugins": [
"@babel/plugin-transform-runtime",
"@babel/plugin-syntax-dynamic-import",
"@babel/plugin-proposal-object-rest-spread",
"lodash"
]
}
13 changes: 13 additions & 0 deletions .dependabot/config.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
version: 1
update_configs:
- package_manager: "javascript"
directory: "/"
update_schedule: "live"
default_reviewers:
- "karelhala"
allowed_updates:
- match:
dependency_name: "@redhat-cloud-services/frontend*"
- match:
dependency_name: "@patternfly/*"
dependency_type: "direct"
3 changes: 3 additions & 0 deletions .eslintignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
node_modules/*
static/*
dist/*
115 changes: 115 additions & 0 deletions .eslintrc.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,115 @@
parser: babel-eslint
settings:
react:
version: '16.0'
env:
node: true
browser: true
es6: true
plugins:
- 'react-hooks'
extends:
- 'eslint:recommended'
- 'prettier'
- 'plugin:react/recommended'
parserOptions:
ecmaVersion: 7
sourceType: module
globals:
beforeAll: true
describe: true
expect: true
global: true
insights: true
it: true
mount: true
process: true
render: true
shallow: true
React: true
rules:
no-console: 1
array-bracket-spacing: 2
comma-dangle: 2
comma-spacing:
- 2
- after: true
comma-style: 2
camelcase: 2
curly:
- error
- all
dot-notation: 2
eol-last: 2
eqeqeq: 2
func-names:
- error
- never
indent:
- error
- 4
- SwitchCase: 1
MemberExpression: 0
ImportDeclaration: 1
ObjectExpression: 1
key-spacing: 2
keyword-spacing: 2
linebreak-style:
- error
- unix
max-len:
- 2
- 150
new-cap: 2
no-bitwise: 2
no-caller: 2
no-mixed-spaces-and-tabs: 2
no-multiple-empty-lines:
- error
- max: 1
no-trailing-spaces: 2
no-use-before-define:
- error
- functions: false
no-undef: 2
no-unused-vars: 2
no-var: 2
no-with: 2
object-shorthand: 2
object-curly-spacing:
- error
- always
one-var:
- error
- never
padding-line-between-statements:
- error
- blankLine: always
prev: block-like
next: "*"
quote-props:
- error
- as-needed
quotes:
- error
- single
- allowTemplateLiterals: true
semi:
- error
- always
space-before-blocks: 2
space-in-parens: 2
space-infix-ops: 2
space-unary-ops:
- error
- words: false
nonwords: false
vars-on-top: 2
wrap-iife: 2
yoda:
- error
- never
react-hooks/rules-of-hooks:
- error
react-hooks/exhaustive-deps:
- warn
5 changes: 5 additions & 0 deletions .firebaserc
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
{
"projects": {
"default": "insights-frontend-starter-app"
}
}
20 changes: 20 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
# See https://help.github.com/ignore-files/ for more about ignoring files.

# vscode config
.vscode/

# ide config
.idea/

# dependencies
node_modules

# production
dist

npm-debug.log*
yarn-debug.log*
yarn-error.log*

.DS_Store
coverage
3 changes: 3 additions & 0 deletions .stylelintrc.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
{
"extends": "stylelint-config-recommended-scss"
}
25 changes: 25 additions & 0 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
language: node_js
sudo: required
notifications:
email: false
slack:
rooms:
- secure: juuizlfiQolXbqy4L2nfODB1K8xiSGvUrzsT3XeXIsQqX7yCYVvnRUssKLbqgLM9m85kgXJk1ef0qwjJoliNqGcrALTZLHPTkxWwTnV7tPEVS/4uQPSyy+DDHDwrTzCrF3qhCqyKJ6vB18z22qm3qLgStmNj4p1ZLznsdJR/u7U3spJ+WLL70QSNHCQy/5QjRDDiR3oqWdXjhVcUCeV+v/2CtfqK3dqYtzCL/b7z8lm/YbV6w1Rd8mwzTgLstbzjrvR/gq2IPALzzJTq1S8lXtV7ZtbYz4bjB8RNCRZFJrjBUH4CqD1oUskit4RRe+ilVs8qNQh0Tt3whsOdbJoRXJn2B/NVxppp2WGlODdsuMgfNh5iBocHKN3Qo4mONbstnHFG99Hr7L8GbUugJHEQlrZn1xRyO9ulyVp+hFp8/F088NNyhnd3+lERUPA5/4+HPQh6Ea+PyKq2TR41VoDGcRDBS4VY/6PfLEJzxEBjwRAAemfvtOFTUu2EocuAllPX1vMA4b1j7Wm+Bs7wft6nEcVdftVanfAgx4dNksnaS8zN9II8rdtBci2yXYJ6J+e+REDn/2IrHaUwr0N9BojYc0ePUElDcygW4Kk1oGklHp681j2zhi1Gt7rbuae1C9fD4QHnryx59uVH5NXqDsXI5EbwTJE3zvzRz9SzmyDqV5A=
node_js:
- '10'
install:
- npm ci
jobs:
include:
- stage: Lint
script: npm run lint
- stage: Test
script: npm run test && npx codecov
- stage: Deploy
script: npm run deploy && curl -sSL https://raw.githubusercontent.com/RedHatInsights/insights-frontend-builder-common/master/src/bootstrap.sh | bash -s
env:
global:
- REPO="git@github.com:RedHatInsights/insights-frontend-starter-app-build"
- REPO_DIR="insights-frontend-starter-app-build"
- BRANCH=${TRAVIS_PULL_REQUEST_BRANCH:-$TRAVIS_BRANCH}
- NODE_OPTIONS="--max-old-space-size=4096 --max_old_space_size=4096"
Binary file added .travis/deploy_key.enc
Binary file not shown.
Loading

0 comments on commit 7bdc8f4

Please sign in to comment.