Skip to content
This repository has been archived by the owner on Feb 12, 2022. It is now read-only.

Commit

Permalink
upgrade to vue cli 4
Browse files Browse the repository at this point in the history
  • Loading branch information
mort3za committed Mar 5, 2020
1 parent 49e8a0e commit 783d711
Show file tree
Hide file tree
Showing 38 changed files with 5,320 additions and 3,795 deletions.
30 changes: 30 additions & 0 deletions .eslintrc.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
module.exports = {
root: true,
env: {
node: true
},
extends: [
"plugin:vue/essential",
"eslint:recommended",
"@vue/typescript/recommended",
"@vue/prettier",
"@vue/prettier/@typescript-eslint"
],
parserOptions: {
ecmaVersion: 2020
},
rules: {
"no-console": process.env.NODE_ENV === "production" ? "warn" : "off",
"no-debugger": process.env.NODE_ENV === "production" ? "error" : "off",
indent: ["warn", 2],
quotes: ["warn", "single"]
},
overrides: [
{
files: ["**/__tests__/*.{j,t}s?(x)", "**/tests/unit/**/*.spec.{j,t}s?(x)"],
env: {
jest: true
}
}
]
};
7 changes: 4 additions & 3 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,9 @@
node_modules
/dist

/tests/e2e/videos/
/tests/e2e/screenshots/

# local env files
.env.local
.env.*.local
Expand All @@ -13,14 +16,12 @@ yarn-error.log*

# Editor directories and files
.idea
.vscode
#.vscode
*.suo
*.ntvs*
*.njsproj
*.sln
*.sw?
*.sample.vue
*.sample.ts

# Docs
documents/other-docs/
6 changes: 6 additions & 0 deletions .prettierrc.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
{
"tabWidth": 2,
"semi": true,
"singleQuote": true,
"printWidth": 120
}
8 changes: 8 additions & 0 deletions .vscode/settings.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
{
"editor.formatOnSave": false,
"editor.tabSize": 2,
"workbench.colorCustomizations": {
"titleBar.activeBackground": "#161f75",
"titleBar.activeForeground": "#f3f3f3"
}
}
4 changes: 1 addition & 3 deletions CONTRIBUTING.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,4 @@ English, please.

## You want to send a pull request?
Make sure there is a relative issue and send a comment there to acquire the task if it's not assigned to others or create a new one.
Write a descriptive commit message and try to squash commits.
There should be no error in terminal (e.g. TypeScript errors).
Keep coding style and quality.
Keep coding style.
54 changes: 34 additions & 20 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,20 +1,34 @@
# Ludo Game

A ludo game (منچ in Persian) on web browsers.

## Features

- Single player
- Mobile ready
- PWA

## Play

![ludo-screenshot-min](https://user-images.githubusercontent.com/510242/60385990-273b7480-9aa5-11e9-877d-6503fd202d4f.png)

You can [play here](https://mort3za.github.io/ludo)

## Contribution

There are some tasks in issues page if you are interested or just open your own issue (in English please). Any helps is greatly appreciated.
Please read [Contributing Guideline](CONTRIBUTING.md).
# ludo

## Project setup
```
yarn install
```

### Compiles and hot-reloads for development
```
yarn serve
```

### Compiles and minifies for production
```
yarn build
```

### Run your unit tests
```
yarn test:unit
```

### Run your end-to-end tests
```
yarn test:e2e
```

### Lints and fixes files
```
yarn lint
```

### Customize configuration
See [Configuration Reference](https://cli.vuejs.org/config/).
6 changes: 2 additions & 4 deletions babel.config.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
module.exports = {
presets: [
'@vue/app'
]
}
presets: ["@vue/cli-plugin-babel/preset"]
};
3 changes: 3 additions & 0 deletions cypress.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
{
"pluginsFile": "tests/e2e/plugins/index.js"
}
38 changes: 2 additions & 36 deletions jest.config.js
Original file line number Diff line number Diff line change
@@ -1,37 +1,3 @@
module.exports = {
moduleFileExtensions: [
'js',
'jsx',
'json',
'vue',
'ts',
'tsx'
],
transform: {
'^.+\\.vue$': 'vue-jest',
'.+\\.(css|styl|less|sass|scss|svg|png|jpg|ttf|woff|woff2)$': 'jest-transform-stub',
'^.+\\.tsx?$': 'ts-jest'
},
transformIgnorePatterns: [
'/node_modules/'
],
moduleNameMapper: {
'^@/(.*)$': '<rootDir>/src/$1'
},
snapshotSerializers: [
'jest-serializer-vue'
],
testMatch: [
'**/tests/unit/**/*.spec.(js|jsx|ts|tsx)|**/__tests__/*.(js|jsx|ts|tsx)'
],
testURL: 'http://localhost/',
watchPlugins: [
'jest-watch-typeahead/filename',
'jest-watch-typeahead/testname'
],
globals: {
'ts-jest': {
babelConfig: true
}
}
}
preset: "@vue/cli-plugin-unit-jest/presets/typescript-and-babel"
};
57 changes: 32 additions & 25 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,45 +1,52 @@
{
"name": "ludo",
"version": "v1.3.1",
"private": true,
"version": "v1.3.2",
"scripts": {
"start": "yarn serve",
"serve": "vue-cli-service serve",
"build": "vue-cli-service build",
"lint": "vue-cli-service lint",
"test:unit": "vue-cli-service test:unit",
"tslint-check": "tslint-config-prettier-check ./tslint.json"
"test:e2e": "vue-cli-service test:e2e",
"lint": "vue-cli-service lint"
},
"dependencies": {
"@types/lodash-es": "^4.17.3",
"bootstrap": "4.3.1",
"core-js": "2.6.5",
"core-js": "^3.6.4",
"lodash-es": "4.17.14",
"mersenne-twister": "1.1.0",
"register-service-worker": "1.6.2",
"register-service-worker": "^1.6.2",
"sass-rem": "2.0.1",
"toastify-js": "https://github.com/mort3za/toastify-js.git",
"vue": "2.6.10",
"vue": "^2.6.11",
"vue-class-component": "7.0.2",
"vue-property-decorator": "8.2.1",
"vue-router": "3.0.7",
"vuex": "3.1.1",
"vue-router": "^3.1.5",
"vuex": "^3.1.2",
"vuex-persist": "^2.0.1"
},
"devDependencies": {
"@types/jest": "24.0.15",
"@types/lodash-es": "4.17.3",
"@vue/cli-plugin-babel": "3.9.2",
"@vue/cli-plugin-pwa": "3.9.0",
"@vue/cli-plugin-typescript": "3.9.0",
"@vue/cli-plugin-unit-jest": "3.9.0",
"@vue/cli-service": "3.9.2",
"@vue/test-utils": "1.0.0-beta.29",
"babel-core": "7.0.0-bridge.0",
"sass": "1.22.4",
"sass-loader": "7.1.0",
"ts-jest": "23",
"tslint-config-prettier": "1.18.0",
"typescript": "3.5.3",
"vue-template-compiler": "2.6.10"
"@types/jest": "^24.0.19",
"@typescript-eslint/eslint-plugin": "^2.18.0",
"@typescript-eslint/parser": "^2.18.0",
"@vue/cli-plugin-babel": "~4.2.0",
"@vue/cli-plugin-e2e-cypress": "~4.2.0",
"@vue/cli-plugin-eslint": "~4.2.0",
"@vue/cli-plugin-pwa": "~4.2.0",
"@vue/cli-plugin-router": "~4.2.0",
"@vue/cli-plugin-typescript": "~4.2.0",
"@vue/cli-plugin-unit-jest": "~4.2.0",
"@vue/cli-plugin-vuex": "~4.2.0",
"@vue/cli-service": "~4.2.0",
"@vue/eslint-config-prettier": "^6.0.0",
"@vue/eslint-config-typescript": "^5.0.1",
"@vue/test-utils": "1.0.0-beta.31",
"eslint": "^6.7.2",
"eslint-plugin-prettier": "^3.1.1",
"eslint-plugin-vue": "^6.1.2",
"prettier": "^1.19.1",
"sass": "^1.25.0",
"sass-loader": "^8.0.2",
"typescript": "~3.7.5",
"vue-template-compiler": "^2.6.11"
}
}
5 changes: 0 additions & 5 deletions postcss.config.js

This file was deleted.

Binary file added public/img/icons/android-chrome-192x192.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added public/img/icons/android-chrome-512x512.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added public/img/icons/apple-touch-icon-120x120.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added public/img/icons/apple-touch-icon-152x152.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added public/img/icons/apple-touch-icon-180x180.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added public/img/icons/apple-touch-icon-60x60.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added public/img/icons/apple-touch-icon-76x76.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added public/img/icons/msapplication-icon-144x144.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading

0 comments on commit 783d711

Please sign in to comment.