Skip to content

Commit 0f9ebe9

Browse files
author
chenpeng
committed
搭建cms框架
0 parents  commit 0f9ebe9

File tree

21 files changed

+12352
-0
lines changed

21 files changed

+12352
-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

.editorconfig

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
[*.{js,jsx,ts,tsx,vue}]
2+
indent_style = space
3+
indent_size = 2
4+
trim_trailing_whitespace = true
5+
insert_final_newline = true

.eslintrc.js

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
module.exports = {
2+
"plugins": [
3+
"vue"
4+
],
5+
root: true,
6+
env: {
7+
node: true
8+
},
9+
'extends': [
10+
'plugin:vue/essential',
11+
'@vue/standard'
12+
],
13+
rules: {
14+
'no-console': process.env.NODE_ENV === 'production' ? 'error' : 'off',
15+
'no-debugger': process.env.NODE_ENV === 'production' ? 'error' : 'off',
16+
"no-irregular-whitespace": [0, "always"],
17+
"space-before-function-paren": [0, "always"],
18+
},
19+
parserOptions: {
20+
parser: 'babel-eslint'
21+
}
22+
}

.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+
# cms
2+
3+
## Project setup
4+
```
5+
npm install
6+
```
7+
8+
### Compiles and hot-reloads for development
9+
```
10+
npm run serve
11+
```
12+
13+
### Compiles and minifies for production
14+
```
15+
npm run build
16+
```
17+
18+
### Run your tests
19+
```
20+
npm run test
21+
```
22+
23+
### Lints and fixes files
24+
```
25+
npm run lint
26+
```
27+
28+
### Customize configuration
29+
See [Configuration Reference](https://cli.vuejs.org/config/).

babel.config.js

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
module.exports = {
2+
"presets": [
3+
"@vue/app"
4+
],
5+
"plugins": [
6+
[
7+
"component",
8+
{
9+
"libraryName": "element-ui",
10+
"styleLibraryName": "theme-chalk"
11+
}
12+
],
13+
[
14+
"component",
15+
{
16+
"libraryName": "element-ui",
17+
"styleLibraryName": "theme-chalk"
18+
}
19+
]
20+
]
21+
}

0 commit comments

Comments
 (0)