Skip to content

Commit

Permalink
Initial commit
Browse files Browse the repository at this point in the history
  • Loading branch information
mmmoli committed Mar 13, 2020
1 parent 3578dc7 commit 62d9573
Show file tree
Hide file tree
Showing 63 changed files with 2,637 additions and 0 deletions.
83 changes: 83 additions & 0 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,83 @@
executors:
node:
parameters:
image:
type: string
default: "lts"
docker:
- image: circleci/node:<< parameters.image >>
environment:
TERM: xterm

aliases:
e2e-executor: &e2e-executor
docker:
- image: cypress/browsers:node10.16.0-chrome76
environment:
TERM: xterm

restore_cache: &restore_cache
restore_cache:
name: Restore Yarn Package Cache
keys:
- v{{ .Environment.versionCache }}-deps-{{ .Branch }}-{{ checksum "yarn.lock" }}-{{ checksum ".circleci/config.yml" }}

install_node_modules: &install_node_modules
run:
name: Install Yarn Packages
command: yarn install --frozen-lockfile --ignore-engines

save_cache: &save_cache
save_cache:
name: Save Yarn Package Cache
key: v{{ .Environment.versionCache }}-deps-{{ .Branch }}-{{ checksum "yarn.lock" }}-{{ checksum ".circleci/config.yml" }}
paths:
- /home/circleci/.cache

store_results: &store_results
store_test_results:
path: results

store_results_artifacts: &store_results_artifacts
store_artifacts:
path: results

version: 2.1

jobs:
lint:
executor: node
steps:
- checkout
- <<: *restore_cache
- <<: *install_node_modules
- <<: *save_cache
- run:
name: Run TSLint
command: yarn lint
- <<: *store_results
- <<: *store_results_artifacts

e2e_cypress:
<<: *e2e-executor
steps:
- checkout
- <<: *restore_cache
- <<: *install_node_modules
- <<: *save_cache
- run:
name: Run E2E tests
command: yarn test:ci
- <<: *store_results
- <<: *store_results_artifacts
- store_artifacts:
path: cypress/videos
- store_artifacts:
path: cypress/screenshots

workflows:
version: 2
lint-test:
jobs:
- lint
- e2e_cypress
96 changes: 96 additions & 0 deletions .eslintrc.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,96 @@
module.exports = {
parser: "@typescript-eslint/parser", // Specifies the ESLint parser
extends: [
"airbnb",
"plugin:@typescript-eslint/recommended",
"plugin:import/typescript",
"plugin:prettier/recommended",
"prettier/@typescript-eslint"
],
plugins: ["@typescript-eslint", "prettier"],
parserOptions: {
ecmaVersion: 2018, // Allows for the parsing of modern ECMAScript features
sourceType: "module", // Allows for the use of imports
ecmaFeatures: {
jsx: true
},
project: "./tsconfig.json"
},
env: {
browser: true,
jest: true,
node: true
},
globals: {
cy: true
},
rules: {
"no-unused-vars": [
1,
{
argsIgnorePattern: "res|next|stage|^err|on|config"
}
],
"arrow-body-style": [2, "as-needed"],
"no-param-reassign": [
2,
{
props: false
}
],
"no-unused-expressions": [
1,
{
allowTaggedTemplates: true
}
],
"@typescript-eslint/prefer-interface": 0,
"@typescript-eslint/explicit-function-return-type": 0,
"@typescript-eslint/no-use-before-define": 0,
"@typescript-eslint/camelcase": 0,
"@typescript-eslint/no-var-requires": 0,
"no-console": 0,
"spaced-comment": 0,
"no-use-before-define": 0,
"linebreak-style": 0,
"consistent-return": 0,
import: 0,
"func-names": 0,
"import/no-extraneous-dependencies": 0,
"import/prefer-default-export": 0,
"import/no-cycle": 0,
"space-before-function-paren": 0,
"import/extensions": 0,
"react/jsx-one-expression-per-line": 0,
"react/no-danger": 0,
"react/display-name": 1,
"react/react-in-jsx-scope": 0,
"react/forbid-prop-types": 0,
"react/no-unescaped-entities": 0,
"react/prop-types": 0,
"react/jsx-props-no-spreading": 0,
"react/jsx-filename-extension": [
1,
{
extensions: [".js", ".jsx", ".tsx"]
}
],
indent: ["error", 2, { SwitchCase: 1 }],
"prettier/prettier": [
"error",
{
semi: true,
trailingComma: "all",
singleQuote: true,
printWidth: 70
}
],
"jsx-a11y/href-no-hash": "off",
"jsx-a11y/anchor-is-valid": [
"warn",
{
aspects: ["invalidHref"]
}
]
}
};
8 changes: 8 additions & 0 deletions .github/FUNDING.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
# These are supported funding model platforms

github: [LekoArts]
patreon: lekoarts
open_collective: # Replace with a single Open Collective username
ko_fi: lekoarts
tidelift: # Replace with a single Tidelift platform-name/package-name e.g., npm/babel
custom: # Replace with a single custom sponsorship URL
70 changes: 70 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,70 @@
# Logs
logs
*.log
npm-debug.log*
yarn-debug.log*
yarn-error.log*

# Runtime data
pids
*.pid
*.seed
*.pid.lock

# Directory for instrumented libs generated by jscoverage/JSCover
lib-cov

# Coverage directory used by tools like istanbul
coverage

# nyc test coverage
.nyc_output

# Grunt intermediate storage (http://gruntjs.com/creating-plugins#storing-task-files)
.grunt

# Bower dependency directory (https://bower.io/)
bower_components

# node-waf configuration
.lock-wscript

# Compiled binary addons (http://nodejs.org/api/addons.html)
build/Release

# Dependency directories
node_modules/
jspm_packages/

# Typescript v1 declaration files
typings/

# Optional npm cache directory
.npm

# Optional eslint cache
.eslintcache

# Optional REPL history
.node_repl_history

# Output of 'npm pack'
*.tgz

# Yarn Integrity file
.yarn-integrity

# dotenv environment variables file
.env
.env.*

.cache/
public
results
yarn-error.log
.idea
.vscode

cypress/e2e/build

.DS_Store
Loading

0 comments on commit 62d9573

Please sign in to comment.