Skip to content

Commit ce4ef45

Browse files
committed
litemall client power for vue -- init
litemall client power for vue -- init thanks litemall
1 parent 94107e6 commit ce4ef45

File tree

156 files changed

+32567
-0
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

156 files changed

+32567
-0
lines changed

litemall-vue/.eslintrc.js

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

litemall-vue/.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*

litemall-vue/.postcssrc.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+
};

litemall-vue/.prettierrc.js

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

litemall-vue/README.md

Lines changed: 61 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,61 @@
1+
# liteMall 移动商城
2+
3+
- 本项目是小程序的 vue 版本,样式大体相同,欢迎有能力的人贡献更优秀的代码
4+
5+
> 使用有赞移动端 Vue 组件库 — [Vant](https://www.youzanyun.com/zanui/vant#/zh-CN/component/intro)
6+
7+
8+
## Vue相关库与插件
9+
10+
- power by vue-cli3
11+
- Vue + Vue-router + Vant + Sass
12+
- axios
13+
- vee-validate
14+
- fastclick
15+
- babel-polyfill
16+
- @xkeshi/vue-countdown
17+
18+
19+
## Build Script
20+
21+
``` bash
22+
# install dependencies
23+
npm install
24+
25+
# serve with hot reload at localhost:6255 九键输入法的 「mall」= 「6255」
26+
npm run serve
27+
28+
# build for production with minification : build result at /dist
29+
npm run build
30+
31+
# build for production and view the bundle analyzer report
32+
npm run build -- --report
33+
```
34+
35+
- 简单预览:
36+
37+
[![AqVx1g.md.png](https://s2.ax1x.com/2019/04/12/AqVx1g.md.png)](https://imgchr.com/i/AqVx1g)
38+
39+
[![AqZZ3F.md.gif](https://s2.ax1x.com/2019/04/12/AqZZ3F.md.gif)](https://imgchr.com/i/AqZZ3F)
40+
41+
42+
### 一些 Tips
43+
44+
- 手机浏览或 chrome 手机模式:开发/浏览 体验更佳
45+
46+
- 运行项目
47+
48+
```bash
49+
npm i && npm run serve
50+
```
51+
52+
- 打包项目
53+
54+
```bash
55+
# /dist copy to you http server
56+
npm run build
57+
```
58+
59+
60+
61+

litemall-vue/babel.config.js

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
module.exports = {
2+
presets: ['@vue/app'],
3+
plugins: [
4+
'lodash',
5+
[
6+
'import',
7+
{
8+
libraryName: 'vant',
9+
libraryDirectory: 'es',
10+
style: true
11+
},
12+
'vant'
13+
]
14+
]
15+
};

0 commit comments

Comments
 (0)