Skip to content

Commit 086a55e

Browse files
committed
chore(cleanup): Add extra config files and README details
1 parent 1aa0e44 commit 086a55e

File tree

9 files changed

+79
-16
lines changed

9 files changed

+79
-16
lines changed

trivia-game-react/README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ transient functions, and invoking services.
77

88
## Running Locally
99

10-
1. After cloning and navigating into the `trivia-game` directory, execute:
10+
1. After cloning and navigating into the `trivia-game-react` directory, execute:
1111

1212
```
1313
yarn && yarn test
@@ -19,7 +19,7 @@ or
1919
npm install && npm t
2020
```
2121

22-
This will install dependencies and run tests to verify not issues
22+
This will install dependencies and run tests to verify no issues
2323

2424
2. Start the application by executing:
2525

trivia-game-vue/.editorconfig

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
root = true
2+
3+
[*]
4+
charset = utf-8
5+
end_of_line = lf
6+
indent_size = 2
7+
indent_style = space
8+
insert_final_newline = true
9+

trivia-game-vue/.node-version

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
10.16.3
2+

trivia-game-vue/.nvmrc

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
10.16.3
2+

trivia-game-vue/.prettierignore

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
.DS_Store
2+
node_modules
3+
/dist
4+
5+
.env.local
6+
.env.*.local
7+
8+
npm-debug.log*
9+
yarn-debug.log*
10+
yarn-error.log*
11+
12+
.idea
13+
.vscode
14+
*.suo
15+
*.ntvs*
16+
*.njsproj
17+
*.sln
18+
*.sw?
19+

trivia-game-vue/.prettierrc

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
{
2+
"arrowParens": "avoid",
3+
"bracketSpacing": false,
4+
"htmlWhitespaceSensitivity": "css",
5+
"insertPragma": false,
6+
"jsxBracketSameLine": false,
7+
"jsxSingleQuote": true,
8+
"printWidth": 80,
9+
"proseWrap": "always",
10+
"requirePragma": false,
11+
"semi": false,
12+
"singleQuote": true,
13+
"tabWidth": 2,
14+
"trailingComma": "all",
15+
"useTabs": false
16+
}
17+

trivia-game-vue/README.md

Lines changed: 22 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -1,24 +1,34 @@
1-
# trivia-game-vue
1+
# Trivia Game
2+
3+
This example showcases several state machine concepts including guards,
4+
transient functions, and invoking services.
5+
6+
[Trivia Game machine visualized](https://xstate.js.org/viz/?gist=3abe97296e6d6cebcbda9c903d6da068)
7+
8+
## Running Locally
9+
10+
1. After cloning and navigating into the `trivia-game-vue` directory, execute:
211

3-
## Project setup
412
```
5-
yarn install
13+
yarn && yarn test
614
```
715

8-
### Compiles and hot-reloads for development
16+
or
17+
918
```
10-
yarn serve
19+
npm install && npm t
1120
```
1221

13-
### Compiles and minifies for production
22+
This will install dependencies and run tests to verify no issues
23+
24+
2. Start the application by executing:
25+
1426
```
15-
yarn build
27+
yarn start
1628
```
1729

18-
### Lints and fixes files
30+
or
31+
1932
```
20-
yarn lint
33+
npm start
2134
```
22-
23-
### Customize configuration
24-
See [Configuration Reference](https://cli.vuejs.org/config/).

trivia-game-vue/netlify.toml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
[build]
2+
base = ""
3+
command = "yarn build"
4+
publish = "/dist"

trivia-game-vue/package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,9 +3,9 @@
33
"version": "0.1.0",
44
"private": true,
55
"scripts": {
6-
"serve": "vue-cli-service serve",
76
"build": "vue-cli-service build",
8-
"lint": "vue-cli-service lint"
7+
"lint": "vue-cli-service lint",
8+
"start": "vue-cli-service serve"
99
},
1010
"dependencies": {
1111
"core-js": "^3.4.3",

0 commit comments

Comments
 (0)