Skip to content

Commit 75b605f

Browse files
author
wangbing11
committed
generator done
0 parents  commit 75b605f

38 files changed

+10026
-0
lines changed

.browserslistrc

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
> 1%
2+
last 2 versions

.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"],
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: "babel-eslint"
13+
}
14+
};

.gitignore

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

README.md

Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
1+
# cp-example
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+
### Customize configuration
29+
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+
};

package.json

Lines changed: 44 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,44 @@
1+
{
2+
"name": "cp-example",
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+
},
10+
"dependencies": {
11+
"axios": "^0.18.0",
12+
"core-js": "^2.6.5",
13+
"form-generator-iview": "^0.0.11",
14+
"iview": "^3.4.0",
15+
"vue": "^2.6.10",
16+
"vue-router": "^3.0.6",
17+
"vuex": "^3.1.1"
18+
},
19+
"devDependencies": {
20+
"@vue/cli-plugin-babel": "^3.11.0",
21+
"@vue/cli-plugin-eslint": "^3.11.0",
22+
"@vue/cli-service": "^3.11.0",
23+
"@vue/eslint-config-prettier": "^5.0.0",
24+
"babel-eslint": "^10.0.1",
25+
"eslint": "^5.16.0",
26+
"eslint-plugin-prettier": "^3.1.0",
27+
"eslint-plugin-vue": "^5.0.0",
28+
"less": "^3.0.4",
29+
"less-loader": "^5.0.0",
30+
"lint-staged": "^8.1.5",
31+
"prettier": "^1.18.2",
32+
"vue-cli-plugin-cp": "file:/Users/mac/Documents/study/vue-cli-plugin-cp",
33+
"vue-template-compiler": "^2.6.10"
34+
},
35+
"gitHooks": {
36+
"pre-commit": "lint-staged"
37+
},
38+
"lint-staged": {
39+
"*.{js,vue}": [
40+
"vue-cli-service lint",
41+
"git add"
42+
]
43+
}
44+
}

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

4.19 KB
Binary file not shown.

public/index.html

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
<!DOCTYPE html>
2+
<html lang="en">
3+
<head>
4+
<meta charset="utf-8">
5+
<meta http-equiv="X-UA-Compatible" content="IE=edge">
6+
<meta name="viewport" content="width=device-width,initial-scale=1.0">
7+
<link rel="icon" href="<%= BASE_URL %>favicon.ico">
8+
<title>cp-example</title>
9+
</head>
10+
<body>
11+
<noscript>
12+
<strong>We're sorry but cp-example doesn't work properly without JavaScript enabled. Please enable it to continue.</strong>
13+
</noscript>
14+
<div id="app"></div>
15+
<!-- built files will be auto injected -->
16+
</body>
17+
</html>

src/App.vue

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
<template>
2+
<div class="app">
3+
<router-view />
4+
</div>
5+
</template>
6+
7+
<script>
8+
export default {
9+
data() {
10+
return {};
11+
}
12+
};
13+
</script>
14+
<style lang="less"></style>

0 commit comments

Comments
 (0)