Skip to content

Commit 10659c0

Browse files
init
0 parents  commit 10659c0

30 files changed

+10746
-0
lines changed

.browserslistrc

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
> 1%
2+
last 2 versions
3+
not ie <= 8

.eslintrc.js

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
module.exports = {
2+
root: true,
3+
env: {
4+
node: true
5+
},
6+
extends: ["plugin:vue/essential", "@vue/prettier", "@vue/typescript"],
7+
rules: {
8+
"no-console": process.env.NODE_ENV === "production" ? "error" : "off",
9+
"no-debugger": process.env.NODE_ENV === "production" ? "error" : "off"
10+
},
11+
parserOptions: {
12+
parser: "typescript-eslint-parser"
13+
}
14+
};

.gitignore

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
.DS_Store
2+
node_modules
3+
/dist
4+
5+
/tests/e2e/videos/
6+
/tests/e2e/screenshots/
7+
8+
# local env files
9+
.env.local
10+
.env.*.local
11+
12+
# Log files
13+
npm-debug.log*
14+
yarn-debug.log*
15+
yarn-error.log*
16+
17+
# Editor directories and files
18+
.idea
19+
.vscode
20+
*.suo
21+
*.ntvs*
22+
*.njsproj
23+
*.sln
24+
*.sw*

README.md

Lines changed: 39 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,39 @@
1+
# realworld-vue-ts
2+
3+
## Project setup
4+
```
5+
yarn install
6+
```
7+
8+
### Compiles and hot-reloads for development
9+
```
10+
yarn run serve
11+
```
12+
13+
### Compiles and minifies for production
14+
```
15+
yarn run build
16+
```
17+
18+
### Run your tests
19+
```
20+
yarn run test
21+
```
22+
23+
### Lints and fixes files
24+
```
25+
yarn run lint
26+
```
27+
28+
### Run your end-to-end tests
29+
```
30+
yarn run test:e2e
31+
```
32+
33+
### Run your unit tests
34+
```
35+
yarn run test:unit
36+
```
37+
38+
### Customize configuration
39+
See [Configuration Reference](https://cli.vuejs.org/config/).

babel.config.js

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
module.exports = {
2+
presets: ["@vue/app"]
3+
};

cypress.json

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
{
2+
"pluginsFile": "tests/e2e/plugins/index.js"
3+
}

jest.config.js

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
module.exports = {
2+
moduleFileExtensions: ["js", "jsx", "json", "vue", "ts", "tsx"],
3+
transform: {
4+
"^.+\\.vue$": "vue-jest",
5+
".+\\.(css|styl|less|sass|scss|svg|png|jpg|ttf|woff|woff2)$":
6+
"jest-transform-stub",
7+
"^.+\\.tsx?$": "ts-jest"
8+
},
9+
moduleNameMapper: {
10+
"^@/(.*)$": "<rootDir>/src/$1"
11+
},
12+
snapshotSerializers: ["jest-serializer-vue"],
13+
testMatch: [
14+
"**/tests/unit/**/*.spec.(js|jsx|ts|tsx)|**/__tests__/*.(js|jsx|ts|tsx)"
15+
],
16+
testURL: "http://localhost/"
17+
};

package.json

Lines changed: 38 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,38 @@
1+
{
2+
"name": "realworld-vue-ts",
3+
"version": "0.1.0",
4+
"private": true,
5+
"scripts": {
6+
"serve": "vue-cli-service serve",
7+
"build": "vue-cli-service build",
8+
"lint": "vue-cli-service lint",
9+
"test:e2e": "vue-cli-service test:e2e",
10+
"test:unit": "vue-cli-service test:unit"
11+
},
12+
"dependencies": {
13+
"vue": "^2.5.17",
14+
"vue-class-component": "^6.0.0",
15+
"vue-property-decorator": "^7.0.0",
16+
"vue-router": "^3.0.1",
17+
"vuex": "^3.0.1"
18+
},
19+
"devDependencies": {
20+
"@types/jest": "^23.1.4",
21+
"@vue/cli-plugin-babel": "^3.2.0",
22+
"@vue/cli-plugin-e2e-cypress": "^3.2.0",
23+
"@vue/cli-plugin-eslint": "^3.2.0",
24+
"@vue/cli-plugin-typescript": "^3.2.0",
25+
"@vue/cli-plugin-unit-jest": "^3.2.0",
26+
"@vue/cli-service": "^3.2.0",
27+
"@vue/eslint-config-prettier": "^4.0.0",
28+
"@vue/eslint-config-typescript": "^3.2.0",
29+
"@vue/test-utils": "^1.0.0-beta.20",
30+
"babel-core": "7.0.0-bridge.0",
31+
"babel-eslint": "^10.0.1",
32+
"eslint": "^5.8.0",
33+
"eslint-plugin-vue": "^5.0.0-0",
34+
"ts-jest": "^23.0.0",
35+
"typescript": "^3.0.0",
36+
"vue-template-compiler": "^2.5.17"
37+
}
38+
}

postcss.config.js

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
module.exports = {
2+
plugins: {
3+
autoprefixer: {}
4+
}
5+
};

public/favicon.ico

1.12 KB
Binary file not shown.

0 commit comments

Comments
 (0)