Skip to content

Commit 087b18b

Browse files
committed
Initialize project using Create React App
0 parents  commit 087b18b

Some content is hidden

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

52 files changed

+14093
-0
lines changed

.editorconfig

+13
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
2+
root = true
3+
4+
[*]
5+
indent_style = tab
6+
end_of_line = lf
7+
charset = utf-8
8+
trim_trailing_whitespace = true
9+
insert_final_newline = true
10+
11+
[*.yml]
12+
indent_style = space
13+
indent_size = 2

.env.sample

+6
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
REACT_APP_GA=
2+
REACT_APP_SENTRY_DSN=
3+
REACT_APP_SENTRY_ENVIRONMENT=
4+
REACT_APP_GRAPHQL_HTTP_URI=
5+
6+
BROWSER="none"

.eslintignore

+2
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
*.css
2+
*.svg

.eslintrc.js

+8
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
/* eslint-disable unicorn/prefer-module */
2+
module.exports = {
3+
extends: ['tasoskakour-typescript-prettier/with-react'],
4+
ignorePatterns: ['build', 'coverage'],
5+
rules: {
6+
// your overrides
7+
},
8+
};

.gitattributes

+1
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
* text=auto eol=lf

.github/workflows/ci.yml

+34
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,34 @@
1+
name: ci
2+
3+
on: push
4+
5+
jobs:
6+
ci:
7+
runs-on: ubuntu-latest
8+
env:
9+
REACT_APP_SENTRY_DSN:
10+
REACT_APP_SENTRY_ENVIRONMENT: ci
11+
REACT_APP_GA:
12+
steps:
13+
- name: ⬇️ Checkout repo
14+
uses: actions/checkout@v2
15+
16+
- name: ⎔ Setup node
17+
uses: actions/setup-node@v2
18+
with:
19+
node-version: 16
20+
21+
- name: 📥 Download deps
22+
run: npm i --legacy-peer-deps
23+
24+
- name: 🧪 Run test script
25+
run: npm test
26+
27+
- name: ▶️ Generate coverage report
28+
run: npm run generate-coverage-report
29+
30+
- name: ⬆️ Upload coverage report
31+
uses: codecov/codecov-action@v1
32+
with:
33+
token: ${{ secrets.CODECOV_TOKEN }}
34+
file: ./coverage.lcov

.gitignore

+64
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,64 @@
1+
# Logs
2+
logs
3+
*.log
4+
npm-debug.log*
5+
yarn-debug.log*
6+
yarn-error.log*
7+
8+
# Runtime data
9+
pids
10+
*.pid
11+
*.seed
12+
*.pid.lock
13+
14+
# Directory for instrumented libs generated by jscoverage/JSCover
15+
lib-cov
16+
17+
# Coverage directory used by tools like istanbul
18+
coverage
19+
*.lcov
20+
21+
# nyc test coverage
22+
.nyc_output
23+
24+
# Grunt intermediate storage (http://gruntjs.com/creating-plugins#storing-task-files)
25+
.grunt
26+
27+
# Bower dependency directory (https://bower.io/)
28+
bower_components
29+
30+
# node-waf configuration
31+
.lock-wscript
32+
33+
# Compiled binary addons (http://nodejs.org/api/addons.html)
34+
build/Release
35+
36+
# Dependency directories
37+
node_modules/
38+
jspm_packages/
39+
40+
# Typescript v1 declaration files
41+
typings/
42+
43+
# Optional npm cache directory
44+
.npm
45+
46+
# Optional eslint cache
47+
.eslintcache
48+
49+
# Optional REPL history
50+
.node_repl_history
51+
52+
# Output of 'npm pack'
53+
*.tgz
54+
55+
# Yarn Integrity file
56+
.yarn-integrity
57+
58+
# dotenv environment variables file
59+
.env
60+
.env.test
61+
.envrc
62+
63+
# build directory
64+
build

.husky/pre-commit

+4
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
#!/bin/sh
2+
. "$(dirname "$0")/_/husky.sh"
3+
4+
yarn run lint-staged

.nvmrc

+1
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
lts/*

.prettierrc.json

+7
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
{
2+
"printWidth": 100,
3+
"trailingComma": "es5",
4+
"tabWidth": 4,
5+
"semi": true,
6+
"singleQuote": true
7+
}

.vscode/settings.json

+9
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
{
2+
"editor.defaultFormatter": "dbaeumer.vscode-eslint",
3+
"editor.formatOnSave": true,
4+
"eslint.alwaysShowStatus": true,
5+
"editor.codeActionsOnSave": {
6+
"source.fixAll.eslint": true
7+
},
8+
"editor.rulers": [100]
9+
}

README.md

+45
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,45 @@
1+
# Getting Started with Create React App
2+
3+
This project was bootstrapped with [Create React App](https://github.com/facebook/create-react-app) using the [@tasoskakour/cra-template-typescript](https://github.com/tasoskakour/cra-template-typescript).
4+
5+
## Available Scripts
6+
7+
In the project directory, you can run:
8+
9+
### `yarn start`
10+
11+
Runs the app in the development mode.\
12+
Open [http://localhost:3000](http://localhost:3000) to view it in the browser.
13+
14+
The page will reload if you make edits.
15+
16+
### `yarn test`
17+
18+
Runs eslint & jest tests.
19+
20+
### `yarn analyze`
21+
22+
Analyzes JavaScript bundles using the source maps. This helps you understand where code bloat is coming from.\
23+
More info at [https://create-react-app.dev/docs/analyzing-the-bundle-size](https://create-react-app.dev/docs/analyzing-the-bundle-size).
24+
25+
### `yarn build`
26+
27+
Builds the app for production to the `build` folder.\
28+
It correctly bundles React in production mode and optimizes the build for the best performance.
29+
30+
The build is minified and the filenames include the hashes.\
31+
Your app is ready to be deployed!
32+
33+
See the section about [deployment](https://facebook.github.io/create-react-app/docs/deployment) for more information.
34+
35+
### `yarn eject`
36+
37+
**Note: this is a one-way operation. Once you `eject`, you can’t go back!**
38+
39+
If you aren’t satisfied with the build tool and configuration choices, you can `eject` at any time. You don’t have to ever use `eject`. It‘s better to delete it from the `scripts` section of `package.json`.
40+
41+
## Learn More
42+
43+
You can learn more in the [Create React App documentation](https://facebook.github.io/create-react-app/docs/getting-started).
44+
45+
To learn React, check out the [React documentation](https://reactjs.org/).

craco.config.js

+37
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,37 @@
1+
/* eslint-disable unicorn/prefer-module */
2+
module.exports = {
3+
babel: {
4+
plugins: [
5+
[
6+
'import',
7+
{
8+
libraryName: '@mui/material',
9+
libraryDirectory: '',
10+
camel2DashComponentName: false,
11+
},
12+
'core',
13+
],
14+
[
15+
'import',
16+
{
17+
libraryName: '@mui/icons-material',
18+
libraryDirectory: '',
19+
camel2DashComponentName: false,
20+
},
21+
'icons',
22+
],
23+
[
24+
'import',
25+
{
26+
libraryName: '@mui/lab',
27+
libraryDirectory: '',
28+
camel2DashComponentName: false,
29+
},
30+
'lab',
31+
],
32+
],
33+
},
34+
eslint: {
35+
enable: false,
36+
},
37+
};

cypress.json

+9
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
{
2+
"baseUrl": "http://localhost:3000",
3+
"viewportWidth": 1440,
4+
"viewportHeight": 900,
5+
"video": true,
6+
"screenshotOnRunFailure": true,
7+
"chromeWebSecurity": true,
8+
"defaultCommandTimeout": 60000
9+
}

jest.config.ts

+12
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
import type { Config } from '@jest/types';
2+
3+
export default {
4+
preset: 'ts-jest/presets/js-with-ts',
5+
testEnvironment: 'jsdom',
6+
setupFilesAfterEnv: ['./setup-tests.ts'],
7+
moduleNameMapper: {
8+
'\\.(jpg|ico|jpeg|png|gif|eot|otf|webp|svg|ttf|woff|woff2|mp4|webm|wav|mp3|m4a|aac|oga)$':
9+
'<rootDir>/__mocks__/file-mock.ts',
10+
'\\.(css|less)$': '<rootDir>/__mocks__/file-mock.ts',
11+
},
12+
} as Config.InitialOptions;

0 commit comments

Comments
 (0)