Skip to content

Commit

Permalink
Merge pull request #5 from branch 'refactor/update-dependencies'
Browse files Browse the repository at this point in the history
Upgrade to `react-scripts` v5 and configured routines
  • Loading branch information
juliolmuller authored Feb 25, 2022
2 parents 7b2a19a + 92de80d commit c881f95
Show file tree
Hide file tree
Showing 20 changed files with 9,984 additions and 43,210 deletions.
10 changes: 10 additions & 0 deletions .browserslistrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
[development]
last 2 chrome versions
last 2 firefox versions
last 2 safari versions

[production]
>1%
not dead
not ie 11
not op_mini all
3 changes: 3 additions & 0 deletions .czrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
{
"path": "cz-conventional-changelog"
}
30 changes: 12 additions & 18 deletions .eslintrc.js
Original file line number Diff line number Diff line change
@@ -1,23 +1,17 @@
/* eslint-env node */
module.exports = {
root: true,
extends: [
'react-app',
'lacussoft',
'lacussoft/react',
'lacussoft/typescript',
],
ignorePatterns: [
'build/',
'dist/',
'!.babelrc*',
],
plugins: [
'jest',
],
extends: ['react-app'],
plugins: ['prettier'],
ignorePatterns: ['build/', 'dist/', '!.babelrc.js', '!commitlint.config.js'],
rules: {
'@typescript-eslint/no-explicit-any': 'off',
'no-console': process.env.NODE_ENV === 'production' ? 'error' : 'warn',
'no-debugger': process.env.NODE_ENV === 'production' ? 'error' : 'warn',
'prettier/prettier': [
'warn',
{
printWidth: 100,
semi: false,
singleQuote: true,
trailingComma: 'all',
},
],
},
}
4 changes: 4 additions & 0 deletions .husky/commit-msg
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
#!/bin/sh
. "$(dirname "$0")/_/husky.sh"

npx commitlint --edit $1
4 changes: 4 additions & 0 deletions .husky/pre-commit
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
#!/bin/sh
. "$(dirname "$0")/_/husky.sh"

npx lint-staged
5 changes: 5 additions & 0 deletions .lintstagedrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
{
"*.{js,jsx,ts,tsx,vue,css,scss}": [
"eslint --fix"
]
}
2 changes: 1 addition & 1 deletion LICENSE
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
MIT License

Copyright (c) 2019-2021 Julio L. Muller
Copyright (c) 2019-2022 Julio L. Muller

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
Expand Down
10 changes: 5 additions & 5 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
</p>

<p align="center">
<img src="https://img.shields.io/static/v1?labelColor=000000&color=ed1d24&label=created%20at&message=Jul%202019" alt="Creation Date" />
<img src="https://img.shields.io/static/v1?labelColor=000000&color=ed1d24&label=created%20at&message=july%202019" alt="Creation Date" />

<img src="https://img.shields.io/github/last-commit/juliolmuller/marvel-characters?label=updated%20at&labelColor=000000&color=ed1d24" alt="Update Date" />

Expand Down Expand Up @@ -68,17 +68,17 @@ This application was proposed by [Juno](https://www.juno.com.br/), as part of th

## :hammer: Setting up the Environment

Make sure to have **Node.js 10+** installed in your machine and its **npm** available in the command line, then use the following command to install dependencies:
Make sure to have **Node.js 14+** installed in your machine and **yarn** (**npm** will do the job as well) available in the command line, then use the following command to install dependencies:

```bash
$ npm install
$ yarn # or "npm install"
```

To execute the application, you must have a Marvel Developer account and have the **public** and **private** keys generated. Once you have them, you will have to register both as environment variables in a `.env` file, at project root. If it wasn't created after installation process, use `.env.example` as reference to know all the required variables to be set.

At last, you can use the following commands to run the application:

```bash
$ npm run serve # Run development server
$ npm run build # Build files for production
$ yarn dev # run development server
$ yarn build # build files for production
```
3 changes: 3 additions & 0 deletions commitlint.config.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
module.exports = {
extends: ['@commitlint/config-conventional'],
}
Loading

1 comment on commit c881f95

@vercel
Copy link

@vercel vercel bot commented on c881f95 Feb 25, 2022

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.