Skip to content

Commit

Permalink
Merge pull request #10 from branch 'refactor/update-dependencies'
Browse files Browse the repository at this point in the history
Upgraded to `vue cli` v5 and configured routines
  • Loading branch information
juliolmuller authored Feb 25, 2022
2 parents d27cd12 + bee446e commit 72cf9f4
Show file tree
Hide file tree
Showing 21 changed files with 7,839 additions and 30,102 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"
}
2 changes: 1 addition & 1 deletion .eslintrc.js
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ module.exports = {
'!babel.config.js',
],
parserOptions: {
parser: 'babel-eslint',
parser: '@babel/eslint-parser',
},
rules: {},
}
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) 2020-2021 Julio L. Muller
Copyright (c) 2020-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=2E7D32&label=created%20at&message=Apr%202020" alt="Creation Date" />
<img src="https://img.shields.io/static/v1?labelColor=000000&color=2E7D32&label=created%20at&message=april%202020" alt="Creation Date" />

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

Expand Down Expand Up @@ -49,12 +49,12 @@ Application developed during [Cod3r's official Vue.js course](https://www.udemy.

## :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 routines:
Make sure to have **Node.js 14+** installed in your machine and **yarn** (or **npm**) available in the command line, then use the following routines:

```bash
$ npm install # Download dependencies
$ npm run dev # Run development server
$ npm run build # Build files for production
$ yarn # download dependencies
$ yarn dev # run development server
$ yarn build # build files for production
```

Before running the application copy/rename file `.env.example` as `.env`. The existent value should work already, so no further configuration should be required. If you want to change the API to consume the stocks data, update the variable VUE_APP_API_URL that comes with the repository.
Expand Down
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'],
}
19 changes: 19 additions & 0 deletions jsconfig.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
{
"compilerOptions": {
"target": "es2018",
"module": "esnext",
"baseUrl": "./",
"moduleResolution": "node",
"paths": {
"@/*": [
"src/*"
]
},
"lib": [
"esnext",
"dom",
"dom.iterable",
"scripthost"
]
}
}
Loading

1 comment on commit 72cf9f4

@vercel
Copy link

@vercel vercel bot commented on 72cf9f4 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.