Toggle navigation
Toggle navigation
This project
Loading...
Sign in
fe
/
yoho-shop-manage
·
Commits
Go to a project
GitLab
Go to group
Project
Activity
Files
Commits
Pipelines
0
Builds
0
Graphs
Milestones
Issues
0
Merge Requests
0
Members
Labels
Wiki
Forks
Network
Create a new issue
Download as
Email Patches
Plain Diff
Browse Files
Authored by
陈峰
2017-06-02 16:29:42 +0800
Commit
c59a8f3d1f7b0b72729cb6ed58023234a6151a6d
1 parent
15f92df8
yoho-lint
Hide whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
33 additions
and
79 deletions
.eslintignore
.gitignore
.stylelintcache
lint-all.js
lint-commit.js
package.json
.eslintignore
View file @
c59a8f3
build/*
\ No newline at end of file
build/*
/*.js
\ No newline at end of file
...
...
.gitignore
View file @
c59a8f3
...
...
@@ -5,6 +5,7 @@ node_modules/
*.log
.eslintcache
.stylelintcache
app/bundle
public/
.vscode/
...
...
.stylelintcache
deleted
100644 → 0
View file @
15f92df
{
"/Users/chenfeng/Documents/source/yoho/yoho-shop-manage/app/components/cell/cell-image.vue"
:{
"size"
:
685
,
"mtime"
:
1495168045000
,
"hashOfConfig"
:
"1ix4tf1"
},
"/Users/chenfeng/Documents/source/yoho/yoho-shop-manage/app/components/cell/cell-info.vue"
:{
"size"
:
405
,
"mtime"
:
1496297984000
,
"hashOfConfig"
:
"1ix4tf1"
},
"/Users/chenfeng/Documents/source/yoho/yoho-shop-manage/app/components/cell/cell-price.vue"
:{
"size"
:
1932
,
"mtime"
:
1495089555000
,
"hashOfConfig"
:
"1ix4tf1"
},
"/Users/chenfeng/Documents/source/yoho/yoho-shop-manage/app/components/checkbox/checkbox-age.vue"
:{
"size"
:
1174
,
"mtime"
:
1495089555000
,
"hashOfConfig"
:
"1ix4tf1"
},
"/Users/chenfeng/Documents/source/yoho/yoho-shop-manage/app/components/checkbox/checkbox-color.vue"
:{
"size"
:
3263
,
"mtime"
:
1496296812000
,
"hashOfConfig"
:
"1ix4tf1"
},
"/Users/chenfeng/Documents/source/yoho/yoho-shop-manage/app/components/checkbox/checkbox-material.vue"
:{
"size"
:
1067
,
"mtime"
:
1495089555000
,
"hashOfConfig"
:
"1ix4tf1"
},
"/Users/chenfeng/Documents/source/yoho/yoho-shop-manage/app/components/checkbox/checkbox-size.vue"
:{
"size"
:
2886
,
"mtime"
:
1495089555000
,
"hashOfConfig"
:
"1ix4tf1"
},
"/Users/chenfeng/Documents/source/yoho/yoho-shop-manage/app/components/global/common/drag-file-upload.vue"
:{
"size"
:
4549
,
"mtime"
:
1496296812000
,
"hashOfConfig"
:
"1ix4tf1"
},
"/Users/chenfeng/Documents/source/yoho/yoho-shop-manage/app/components/global/common/editor/multi-image.vue"
:{
"size"
:
5336
,
"mtime"
:
1495157831000
,
"hashOfConfig"
:
"1ix4tf1"
},
"/Users/chenfeng/Documents/source/yoho/yoho-shop-manage/app/components/global/common/file-upload.vue"
:{
"size"
:
1575
,
"mtime"
:
1493790203000
,
"hashOfConfig"
:
"1ix4tf1"
},
"/Users/chenfeng/Documents/source/yoho/yoho-shop-manage/app/components/global/common/iframe.vue"
:{
"size"
:
450
,
"mtime"
:
1495089555000
,
"hashOfConfig"
:
"1ix4tf1"
},
"/Users/chenfeng/Documents/source/yoho/yoho-shop-manage/app/components/global/common/upload-xlsx.vue"
:{
"size"
:
2957
,
"mtime"
:
1496372014000
,
"hashOfConfig"
:
"1ix4tf1"
},
"/Users/chenfeng/Documents/source/yoho/yoho-shop-manage/app/components/global/layout/breadcrumbs.vue"
:{
"size"
:
1526
,
"mtime"
:
1496296812000
,
"hashOfConfig"
:
"1ix4tf1"
},
"/Users/chenfeng/Documents/source/yoho/yoho-shop-manage/app/components/global/layout/layout-action.vue"
:{
"size"
:
263
,
"mtime"
:
1493781060000
,
"hashOfConfig"
:
"1ix4tf1"
},
"/Users/chenfeng/Documents/source/yoho/yoho-shop-manage/app/components/global/layout/layout-body.vue"
:{
"size"
:
291
,
"mtime"
:
1495089555000
,
"hashOfConfig"
:
"1ix4tf1"
},
"/Users/chenfeng/Documents/source/yoho/yoho-shop-manage/app/components/global/layout/layout-filter-item.vue"
:{
"size"
:
641
,
"mtime"
:
1496296812000
,
"hashOfConfig"
:
"1ix4tf1"
},
"/Users/chenfeng/Documents/source/yoho/yoho-shop-manage/app/components/global/layout/layout-filter.vue"
:{
"size"
:
2467
,
"mtime"
:
1496296812000
,
"hashOfConfig"
:
"1ix4tf1"
},
"/Users/chenfeng/Documents/source/yoho/yoho-shop-manage/app/components/global/layout/layout-list.vue"
:{
"size"
:
338
,
"mtime"
:
1493781060000
,
"hashOfConfig"
:
"1ix4tf1"
},
"/Users/chenfeng/Documents/source/yoho/yoho-shop-manage/app/components/global/layout/layout-print.vue"
:{
"size"
:
371
,
"mtime"
:
1495443752000
,
"hashOfConfig"
:
"1ix4tf1"
},
"/Users/chenfeng/Documents/source/yoho/yoho-shop-manage/app/components/global/layout/layout-tab.vue"
:{
"size"
:
213
,
"mtime"
:
1493781060000
,
"hashOfConfig"
:
"1ix4tf1"
},
"/Users/chenfeng/Documents/source/yoho/yoho-shop-manage/app/components/global/layout/menus.vue"
:{
"size"
:
4241
,
"mtime"
:
1496296812000
,
"hashOfConfig"
:
"1ix4tf1"
},
"/Users/chenfeng/Documents/source/yoho/yoho-shop-manage/app/components/global/layout/user-info.vue"
:{
"size"
:
3216
,
"mtime"
:
1495447761000
,
"hashOfConfig"
:
"1ix4tf1"
},
"/Users/chenfeng/Documents/source/yoho/yoho-shop-manage/app/components/image/image-goods-main.vue"
:{
"size"
:
2773
,
"mtime"
:
1496296812000
,
"hashOfConfig"
:
"1ix4tf1"
},
"/Users/chenfeng/Documents/source/yoho/yoho-shop-manage/app/components/modal/modal-deliver.vue"
:{
"size"
:
4255
,
"mtime"
:
1496296812000
,
"hashOfConfig"
:
"1ix4tf1"
},
"/Users/chenfeng/Documents/source/yoho/yoho-shop-manage/app/components/modal/modal-example.vue"
:{
"size"
:
1898
,
"mtime"
:
1496296812000
,
"hashOfConfig"
:
"1ix4tf1"
},
"/Users/chenfeng/Documents/source/yoho/yoho-shop-manage/app/components/modal/modal-size-edit.vue"
:{
"size"
:
8181
,
"mtime"
:
1496296812000
,
"hashOfConfig"
:
"1ix4tf1"
},
"/Users/chenfeng/Documents/source/yoho/yoho-shop-manage/app/components/modal/modal-stock-out.vue"
:{
"size"
:
3712
,
"mtime"
:
1496297984000
,
"hashOfConfig"
:
"1ix4tf1"
},
"/Users/chenfeng/Documents/source/yoho/yoho-shop-manage/app/components/pop/example-pop.vue"
:{
"size"
:
1167
,
"mtime"
:
1496296812000
,
"hashOfConfig"
:
"1ix4tf1"
},
"/Users/chenfeng/Documents/source/yoho/yoho-shop-manage/app/components/radio/radio-gender.vue"
:{
"size"
:
1008
,
"mtime"
:
1495089555000
,
"hashOfConfig"
:
"1ix4tf1"
},
"/Users/chenfeng/Documents/source/yoho/yoho-shop-manage/app/components/radio/radio-season.vue"
:{
"size"
:
1125
,
"mtime"
:
1495089555000
,
"hashOfConfig"
:
"1ix4tf1"
},
"/Users/chenfeng/Documents/source/yoho/yoho-shop-manage/app/components/select/select-brand.vue"
:{
"size"
:
1396
,
"mtime"
:
1495181895000
,
"hashOfConfig"
:
"1ix4tf1"
},
"/Users/chenfeng/Documents/source/yoho/yoho-shop-manage/app/components/select/select-category.vue"
:{
"size"
:
5994
,
"mtime"
:
1495089555000
,
"hashOfConfig"
:
"1ix4tf1"
},
"/Users/chenfeng/Documents/source/yoho/yoho-shop-manage/app/components/select/select-express.vue"
:{
"size"
:
804
,
"mtime"
:
1496372321000
,
"hashOfConfig"
:
"1ix4tf1"
},
"/Users/chenfeng/Documents/source/yoho/yoho-shop-manage/app/components/select/select-room.vue"
:{
"size"
:
804
,
"mtime"
:
1496372310000
,
"hashOfConfig"
:
"1ix4tf1"
},
"/Users/chenfeng/Documents/source/yoho/yoho-shop-manage/app/components/select/select-season.vue"
:{
"size"
:
1246
,
"mtime"
:
1495443752000
,
"hashOfConfig"
:
"1ix4tf1"
},
"/Users/chenfeng/Documents/source/yoho/yoho-shop-manage/app/components/table/table-good-size.vue"
:{
"size"
:
15280
,
"mtime"
:
1496296812000
,
"hashOfConfig"
:
"1ix4tf1"
},
"/Users/chenfeng/Documents/source/yoho/yoho-shop-manage/app/pages/app.vue"
:{
"size"
:
111
,
"mtime"
:
1495707884000
,
"hashOfConfig"
:
"1ix4tf1"
},
"/Users/chenfeng/Documents/source/yoho/yoho-shop-manage/app/pages/common/error.vue"
:{
"size"
:
586
,
"mtime"
:
1495089555000
,
"hashOfConfig"
:
"1ix4tf1"
},
"/Users/chenfeng/Documents/source/yoho/yoho-shop-manage/app/pages/common/login.vue"
:{
"size"
:
3264
,
"mtime"
:
1495594055000
,
"hashOfConfig"
:
"1ix4tf1"
},
"/Users/chenfeng/Documents/source/yoho/yoho-shop-manage/app/pages/finance/clearing-iframe/clearing.vue"
:{
"size"
:
129
,
"mtime"
:
1495089555000
,
"hashOfConfig"
:
"1ix4tf1"
},
"/Users/chenfeng/Documents/source/yoho/yoho-shop-manage/app/pages/finance/clearing/clearing.vue"
:{
"size"
:
3353
,
"mtime"
:
1496296812000
,
"hashOfConfig"
:
"1ix4tf1"
},
"/Users/chenfeng/Documents/source/yoho/yoho-shop-manage/app/pages/finance/payment-iframe/payment.vue"
:{
"size"
:
135
,
"mtime"
:
1495089555000
,
"hashOfConfig"
:
"1ix4tf1"
},
"/Users/chenfeng/Documents/source/yoho/yoho-shop-manage/app/pages/finance/payment/payment.vue"
:{
"size"
:
3112
,
"mtime"
:
1496296812000
,
"hashOfConfig"
:
"1ix4tf1"
},
"/Users/chenfeng/Documents/source/yoho/yoho-shop-manage/app/pages/home/overview/overview.vue"
:{
"size"
:
9794
,
"mtime"
:
1495620386000
,
"hashOfConfig"
:
"1ix4tf1"
},
"/Users/chenfeng/Documents/source/yoho/yoho-shop-manage/app/pages/layout.vue"
:{
"size"
:
4388
,
"mtime"
:
1496296812000
,
"hashOfConfig"
:
"1ix4tf1"
},
"/Users/chenfeng/Documents/source/yoho/yoho-shop-manage/app/pages/product/create/components/step1.vue"
:{
"size"
:
4226
,
"mtime"
:
1496296812000
,
"hashOfConfig"
:
"1ix4tf1"
},
"/Users/chenfeng/Documents/source/yoho/yoho-shop-manage/app/pages/product/create/components/step2.vue"
:{
"size"
:
18800
,
"mtime"
:
1496296812000
,
"hashOfConfig"
:
"1ix4tf1"
},
"/Users/chenfeng/Documents/source/yoho/yoho-shop-manage/app/pages/product/create/components/step3.vue"
:{
"size"
:
14072
,
"mtime"
:
1496296812000
,
"hashOfConfig"
:
"1ix4tf1"
},
"/Users/chenfeng/Documents/source/yoho/yoho-shop-manage/app/pages/product/create/create.vue"
:{
"size"
:
1181
,
"mtime"
:
1496296812000
,
"hashOfConfig"
:
"1ix4tf1"
},
"/Users/chenfeng/Documents/source/yoho/yoho-shop-manage/app/pages/product/edit/edit.vue"
:{
"size"
:
24943
,
"mtime"
:
1496372014000
,
"hashOfConfig"
:
"1ix4tf1"
},
"/Users/chenfeng/Documents/source/yoho/yoho-shop-manage/app/pages/product/offsale/offsale.vue"
:{
"size"
:
11693
,
"mtime"
:
1496372014000
,
"hashOfConfig"
:
"1ix4tf1"
},
"/Users/chenfeng/Documents/source/yoho/yoho-shop-manage/app/pages/product/onsale/onsale.vue"
:{
"size"
:
10575
,
"mtime"
:
1496372014000
,
"hashOfConfig"
:
"1ix4tf1"
},
"/Users/chenfeng/Documents/source/yoho/yoho-shop-manage/app/pages/product/output/output.vue"
:{
"size"
:
4969
,
"mtime"
:
1496372345000
,
"hashOfConfig"
:
"1ix4tf1"
},
"/Users/chenfeng/Documents/source/yoho/yoho-shop-manage/app/pages/product/vips/vips.vue"
:{
"size"
:
10101
,
"mtime"
:
1496297984000
,
"hashOfConfig"
:
"1ix4tf1"
},
"/Users/chenfeng/Documents/source/yoho/yoho-shop-manage/app/pages/repository/diff-iframe/diff.vue"
:{
"size"
:
133
,
"mtime"
:
1495089555000
,
"hashOfConfig"
:
"1ix4tf1"
},
"/Users/chenfeng/Documents/source/yoho/yoho-shop-manage/app/pages/repository/diff/diff.vue"
:{
"size"
:
2161
,
"mtime"
:
1495707884000
,
"hashOfConfig"
:
"1ix4tf1"
},
"/Users/chenfeng/Documents/source/yoho/yoho-shop-manage/app/pages/repository/invoice/components/create-modal.vue"
:{
"size"
:
3336
,
"mtime"
:
1496372014000
,
"hashOfConfig"
:
"1ix4tf1"
},
"/Users/chenfeng/Documents/source/yoho/yoho-shop-manage/app/pages/repository/invoice/components/product-list.vue"
:{
"size"
:
5570
,
"mtime"
:
1496372014000
,
"hashOfConfig"
:
"1ix4tf1"
},
"/Users/chenfeng/Documents/source/yoho/yoho-shop-manage/app/pages/repository/invoice/deliver.vue"
:{
"size"
:
1487
,
"mtime"
:
1496372014000
,
"hashOfConfig"
:
"1ix4tf1"
},
"/Users/chenfeng/Documents/source/yoho/yoho-shop-manage/app/pages/repository/invoice/edit.vue"
:{
"size"
:
2606
,
"mtime"
:
1496372014000
,
"hashOfConfig"
:
"1ix4tf1"
},
"/Users/chenfeng/Documents/source/yoho/yoho-shop-manage/app/pages/repository/invoice/info.vue"
:{
"size"
:
1481
,
"mtime"
:
1496372014000
,
"hashOfConfig"
:
"1ix4tf1"
},
"/Users/chenfeng/Documents/source/yoho/yoho-shop-manage/app/pages/repository/invoice/list.vue"
:{
"size"
:
10540
,
"mtime"
:
1496372014000
,
"hashOfConfig"
:
"1ix4tf1"
},
"/Users/chenfeng/Documents/source/yoho/yoho-shop-manage/app/pages/repository/jit/components/edit-store.vue"
:{
"size"
:
5088
,
"mtime"
:
1496296812000
,
"hashOfConfig"
:
"1ix4tf1"
},
"/Users/chenfeng/Documents/source/yoho/yoho-shop-manage/app/pages/repository/jit/components/import-store.vue"
:{
"size"
:
8108
,
"mtime"
:
1496296812000
,
"hashOfConfig"
:
"1ix4tf1"
},
"/Users/chenfeng/Documents/source/yoho/yoho-shop-manage/app/pages/repository/jit/jit.vue"
:{
"size"
:
5358
,
"mtime"
:
1495596080000
,
"hashOfConfig"
:
"1ix4tf1"
},
"/Users/chenfeng/Documents/source/yoho/yoho-shop-manage/app/pages/repository/prod-return/return.vue"
:{
"size"
:
9945
,
"mtime"
:
1496372014000
,
"hashOfConfig"
:
"1ix4tf1"
},
"/Users/chenfeng/Documents/source/yoho/yoho-shop-manage/app/pages/repository/supplement/components/modal-invoice.vue"
:{
"size"
:
3985
,
"mtime"
:
1496372201000
,
"hashOfConfig"
:
"1ix4tf1"
},
"/Users/chenfeng/Documents/source/yoho/yoho-shop-manage/app/pages/repository/supplement/supplement.vue"
:{
"size"
:
2868
,
"mtime"
:
1496372155000
,
"hashOfConfig"
:
"1ix4tf1"
},
"/Users/chenfeng/Documents/source/yoho/yoho-shop-manage/app/pages/repository/supplier/components/create-modal.vue"
:{
"size"
:
3338
,
"mtime"
:
1496372201000
,
"hashOfConfig"
:
"1ix4tf1"
},
"/Users/chenfeng/Documents/source/yoho/yoho-shop-manage/app/pages/repository/supplier/components/product-list.vue"
:{
"size"
:
5572
,
"mtime"
:
1496372201000
,
"hashOfConfig"
:
"1ix4tf1"
},
"/Users/chenfeng/Documents/source/yoho/yoho-shop-manage/app/pages/repository/supplier/components/send-modal.vue"
:{
"size"
:
3125
,
"mtime"
:
1496372201000
,
"hashOfConfig"
:
"1ix4tf1"
},
"/Users/chenfeng/Documents/source/yoho/yoho-shop-manage/app/pages/repository/supplier/deliver.vue"
:{
"size"
:
1487
,
"mtime"
:
1496372201000
,
"hashOfConfig"
:
"1ix4tf1"
},
"/Users/chenfeng/Documents/source/yoho/yoho-shop-manage/app/pages/repository/supplier/edit.vue"
:{
"size"
:
2607
,
"mtime"
:
1496372201000
,
"hashOfConfig"
:
"1ix4tf1"
},
"/Users/chenfeng/Documents/source/yoho/yoho-shop-manage/app/pages/repository/supplier/info.vue"
:{
"size"
:
1481
,
"mtime"
:
1496372201000
,
"hashOfConfig"
:
"1ix4tf1"
},
"/Users/chenfeng/Documents/source/yoho/yoho-shop-manage/app/pages/repository/supplier/list.vue"
:{
"size"
:
10543
,
"mtime"
:
1496372201000
,
"hashOfConfig"
:
"1ix4tf1"
},
"/Users/chenfeng/Documents/source/yoho/yoho-shop-manage/app/pages/shop/category/components/EditName.vue"
:{
"size"
:
2065
,
"mtime"
:
1496296812000
,
"hashOfConfig"
:
"1ix4tf1"
},
"/Users/chenfeng/Documents/source/yoho/yoho-shop-manage/app/pages/shop/category/components/Operator.vue"
:{
"size"
:
967
,
"mtime"
:
1495089555000
,
"hashOfConfig"
:
"1ix4tf1"
},
"/Users/chenfeng/Documents/source/yoho/yoho-shop-manage/app/pages/shop/category/components/ProducList.vue"
:{
"size"
:
8388
,
"mtime"
:
1495168045000
,
"hashOfConfig"
:
"1ix4tf1"
},
"/Users/chenfeng/Documents/source/yoho/yoho-shop-manage/app/pages/shop/category/edit.vue"
:{
"size"
:
1649
,
"mtime"
:
1495089555000
,
"hashOfConfig"
:
"1ix4tf1"
},
"/Users/chenfeng/Documents/source/yoho/yoho-shop-manage/app/pages/shop/category/list.vue"
:{
"size"
:
4577
,
"mtime"
:
1495189950000
,
"hashOfConfig"
:
"1ix4tf1"
},
"/Users/chenfeng/Documents/source/yoho/yoho-shop-manage/app/pages/shop/decoration-iframe/decora-app.vue"
:{
"size"
:
336
,
"mtime"
:
1495089555000
,
"hashOfConfig"
:
"1ix4tf1"
},
"/Users/chenfeng/Documents/source/yoho/yoho-shop-manage/app/pages/shop/decoration-iframe/decora-pc.vue"
:{
"size"
:
533
,
"mtime"
:
1495089555000
,
"hashOfConfig"
:
"1ix4tf1"
},
"/Users/chenfeng/Documents/source/yoho/yoho-shop-manage/app/pages/shop/decoration-iframe/shops.vue"
:{
"size"
:
1681
,
"mtime"
:
1495089555000
,
"hashOfConfig"
:
"1ix4tf1"
},
"/Users/chenfeng/Documents/source/yoho/yoho-shop-manage/app/pages/shop/info/info.vue"
:{
"size"
:
4938
,
"mtime"
:
1496296812000
,
"hashOfConfig"
:
"1ix4tf1"
},
"/Users/chenfeng/Documents/source/yoho/yoho-shop-manage/app/pages/statistics/overview-iframe/overview.vue"
:{
"size"
:
130
,
"mtime"
:
1495089555000
,
"hashOfConfig"
:
"1ix4tf1"
},
"/Users/chenfeng/Documents/source/yoho/yoho-shop-manage/app/pages/statistics/sale/sale.vue"
:{
"size"
:
126
,
"mtime"
:
1495089555000
,
"hashOfConfig"
:
"1ix4tf1"
},
"/Users/chenfeng/Documents/source/yoho/yoho-shop-manage/app/pages/trade/allot-list/allot-list.vue"
:{
"size"
:
5104
,
"mtime"
:
1496297984000
,
"hashOfConfig"
:
"1ix4tf1"
},
"/Users/chenfeng/Documents/source/yoho/yoho-shop-manage/app/pages/trade/allot/allot.vue"
:{
"size"
:
1641
,
"mtime"
:
1495089555000
,
"hashOfConfig"
:
"1ix4tf1"
},
"/Users/chenfeng/Documents/source/yoho/yoho-shop-manage/app/pages/trade/allot/components/cell-deliver.vue"
:{
"size"
:
1088
,
"mtime"
:
1495618717000
,
"hashOfConfig"
:
"1ix4tf1"
},
"/Users/chenfeng/Documents/source/yoho/yoho-shop-manage/app/pages/trade/allot/components/cell-dispatch.vue"
:{
"size"
:
1309
,
"mtime"
:
1496296812000
,
"hashOfConfig"
:
"1ix4tf1"
},
"/Users/chenfeng/Documents/source/yoho/yoho-shop-manage/app/pages/trade/allot/components/cell-stock-out.vue"
:{
"size"
:
1378
,
"mtime"
:
1495618717000
,
"hashOfConfig"
:
"1ix4tf1"
},
"/Users/chenfeng/Documents/source/yoho/yoho-shop-manage/app/pages/trade/allot/views/done.vue"
:{
"size"
:
8389
,
"mtime"
:
1496297984000
,
"hashOfConfig"
:
"1ix4tf1"
},
"/Users/chenfeng/Documents/source/yoho/yoho-shop-manage/app/pages/trade/allot/views/express.vue"
:{
"size"
:
4997
,
"mtime"
:
1496297984000
,
"hashOfConfig"
:
"1ix4tf1"
},
"/Users/chenfeng/Documents/source/yoho/yoho-shop-manage/app/pages/trade/allot/views/undone.vue"
:{
"size"
:
11621
,
"mtime"
:
1496297984000
,
"hashOfConfig"
:
"1ix4tf1"
},
"/Users/chenfeng/Documents/source/yoho/yoho-shop-manage/app/pages/trade/express-detail/express-detail.vue"
:{
"size"
:
3608
,
"mtime"
:
1496296812000
,
"hashOfConfig"
:
"1ix4tf1"
},
"/Users/chenfeng/Documents/source/yoho/yoho-shop-manage/app/pages/trade/print-detail/print-detail.vue"
:{
"size"
:
3460
,
"mtime"
:
1496296812000
,
"hashOfConfig"
:
"1ix4tf1"
},
"/Users/chenfeng/Documents/source/yoho/yoho-shop-manage/build/code/template/list/_pageName_.vue"
:{
"size"
:
2975
,
"mtime"
:
1496372201000
,
"hashOfConfig"
:
"1ix4tf1"
},
"/Users/chenfeng/Documents/source/yoho/yoho-shop-manage/build/code/template/list/components/demo.vue"
:{
"size"
:
121
,
"mtime"
:
1496296812000
,
"hashOfConfig"
:
"1ix4tf1"
}}
\ No newline at end of file
lint-all.js
deleted
100644 → 0
View file @
15f92df
let
shelljs
=
require
(
'shelljs'
);
let
path
=
require
(
'path'
);
let
chalk
=
require
(
'chalk'
);
const
ext
=
process
.
platform
===
'win32'
?
'.cmd'
:
''
;
// Windows 平台需要加后缀
const
lintPath
=
{
js
:
path
.
resolve
(
'./node_modules/.bin/eslint'
),
css
:
path
.
resolve
(
'./node_modules/.bin/stylelint'
)
};
console
.
log
(
chalk
.
yellow
(
'JS Front-end 检查结果:'
));
shelljs
.
exec
(
`
$
{
lintPath
.
js
}
$
{
ext
}
--
ext
.
js
,.
vue
-
f
table
-
c
.
eslintrc
--
cache
"./app"
`
);
console
.
log
(
chalk
.
yellow
(
'JS Server 检查结果:'
));
shelljs
.
exec
(
`
$
{
lintPath
.
js
}
$
{
ext
}
--
ext
.
js
,.
vue
-
f
table
-
c
.
eslintrc
--
cache
"./server"
`
);
console
.
log
(
chalk
.
yellow
(
'CSS 检查结果:'
));
shelljs
.
exec
(
`
$
{
lintPath
.
css
}
$
{
ext
}
--
syntax
scss
--
cache
--
config
.
stylelintrc
--
custom
-
formatter
.
/
node_modules
/
stylelint
-
formatter
-
table
/
index
.
js
"**/*.vue"
`
);
// eslint-disable-line
lint-commit.js
deleted
100644 → 0
View file @
15f92df
let
shelljs
=
require
(
'shelljs'
);
let
path
=
require
(
'path'
);
let
chalk
=
require
(
'chalk'
);
const
changeFiles
=
{
js
:
shelljs
.
exec
(
'git diff --cached --name-only --diff-filter=ACM | grep .js$'
,
{
silent
:
true
}).
stdout
,
css
:
shelljs
.
exec
(
'git diff --cached --name-only --diff-filter=ACM | grep .css$'
,
{
silent
:
true
}).
stdout
,
vue
:
shelljs
.
exec
(
'git diff --cached --name-only --diff-filter=ACM | grep .vue$'
,
{
silent
:
true
}).
stdout
,
};
const
lintPath
=
{
js
:
path
.
resolve
(
'./node_modules/.bin/eslint'
),
css
:
path
.
resolve
(
'./node_modules/.bin/stylelint'
)
};
const
lintResult
=
{
js
:
{},
css
:
{},
vueScript
:
{},
vueStyle
:
{}
};
const
ext
=
process
.
platform
===
'win32'
?
'.cmd'
:
''
;
// Windows 平台需要加后缀
// 在执行检查脚本的时候,不显示 NPM 错误日志
if
(
!
shelljs
.
grep
(
'npm run -s'
,
path
.
resolve
(
'./.git/hooks/pre-commit'
)).
stdout
.
trim
())
{
shelljs
.
sed
(
'-i'
,
'npm run'
,
'npm run -s'
,
path
.
resolve
(
'./.git/hooks/pre-commit'
));
}
if
(
changeFiles
.
js
)
{
console
.
log
(
chalk
.
yellow
(
'JS 检查结果:'
));
changeFiles
.
js
=
changeFiles
.
js
.
replace
(
/
\n
/g
,
' '
);
lintResult
.
js
=
shelljs
.
exec
(
`
$
{
lintPath
.
js
}
$
{
ext
}
-
f
table
-
c
.
eslintrc
--
cache
$
{
changeFiles
.
js
}
`
);
}
if
(
changeFiles
.
css
)
{
console
.
log
(
chalk
.
yellow
(
'CSS 检查结果:'
));
changeFiles
.
css
=
changeFiles
.
css
.
replace
(
/
\n
/g
,
' '
);
lintResult
.
css
=
shelljs
.
exec
(
`
$
{
lintPath
.
css
}
$
{
ext
}
--
syntax
scss
--
custom
-
formatter
.
/
node_modules
/
stylelint
-
formatter
-
table
/
index
.
js
--
config
.
stylelintrc
$
{
changeFiles
.
css
}
`
);
}
if
(
changeFiles
.
vue
)
{
console
.
log
(
chalk
.
yellow
(
'Vue 检查结果:'
));
changeFiles
.
vue
=
changeFiles
.
vue
.
replace
(
/
\n
/g
,
' '
);
lintResult
.
vueScript
=
shelljs
.
exec
(
`
$
{
lintPath
.
js
}
$
{
ext
}
-
f
table
-
c
.
eslintrc
--
cache
$
{
changeFiles
.
vue
}
`
);
lintResult
.
vueStyle
=
shelljs
.
exec
(
`
$
{
lintPath
.
css
}
$
{
ext
}
--
syntax
scss
--
custom
-
formatter
.
/
node_modules
/
stylelint
-
formatter
-
table
/
index
.
js
--
extract
--
config
.
stylelintrc
$
{
changeFiles
.
vue
}
`
);
// eslint-disable-line
}
const
errorCode
=
lintResult
.
js
.
code
||
lintResult
.
css
.
code
||
lintResult
.
vueScript
.
code
||
lintResult
.
vueStyle
.
code
;
if
(
errorCode
)
{
console
.
log
(
chalk
.
red
(
'请解决语法检查问题之后再次提交!'
));
process
.
exit
(
errorCode
);
// eslint-disable-line
}
package.json
View file @
c59a8f3
...
...
@@ -10,12 +10,36 @@
"dist"
:
"node ./build/build.js"
,
"build"
:
"npm run build:dll --production && node ./build/build.js"
,
"build:dll"
:
"rimraf build/dll && webpack --config build/webpack.dll.conf.js"
,
"lint-js"
:
"eslint --ext .js,.vue -c .eslintrc --cache \"app\" \"server\""
,
"lint-css"
:
"stylelint --syntax scss --extract --config .stylelintrc \"**/*.vue\""
,
"precommit"
:
"node lint-commit.js"
,
"lint-all"
:
"node lint-all.js"
,
"lint-js"
:
"lint-js"
,
"lint-css"
:
"lint-css"
,
"precommit"
:
"lint-commit"
,
"lint-all"
:
"lint-all"
,
"code"
:
"node ./build/code/code.js"
},
"config"
:
{
"lintJs"
:
[
{
"title"
:
"JS Front-end"
,
"path"
:
[
"./app"
]
},
{
"title"
:
"JS Server"
,
"path"
:
[
"./server"
]
}
],
"lintCss"
:
[
{
"title"
:
"CSS"
,
"path"
:
[
"**/*.vue"
]
}
]
},
"dependencies"
:
{
"axios"
:
"^0.15.3"
,
"babel-preset-es2015"
:
"^6.24.1"
,
...
...
@@ -113,7 +137,8 @@
"webpack-hot-middleware"
:
"^2.18.0"
,
"webpack-merge"
:
"^4.1.0"
,
"webpack-px-to-rem"
:
"^0.1.0"
,
"webpack-uglify-parallel"
:
"^0.1.3"
"webpack-uglify-parallel"
:
"^0.1.3"
,
"yoho-lint"
:
"^1.0.1"
},
"author"
:
""
,
"license"
:
"ISC"
...
...
Please
register
or
login
to post a comment