Skip to content

Commit a023d62

Browse files
author
levy
committed
Merge branch 'dev'
2 parents f91d059 + 80ee85b commit a023d62

File tree

24 files changed

+106
-41
lines changed

24 files changed

+106
-41
lines changed

.all-contributorsrc

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -79,7 +79,17 @@
7979
"contributions": [
8080
"code"
8181
]
82+
},
83+
{
84+
"login": "zhn4",
85+
"name": "zhn4",
86+
"avatar_url": "https://avatars2.githubusercontent.com/u/11404946?v=4",
87+
"profile": "https://github.com/zhn4",
88+
"contributions": [
89+
"code"
90+
]
8291
}
8392
],
84-
"contributorsPerLine": 7
93+
"contributorsPerLine": 7,
94+
"skipCi": true
8595
}

.travis.yml

Lines changed: 15 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
branches:
22
only:
33
- master
4+
- dev
45
language: node_js
56
node_js:
67
- lts/*
@@ -10,23 +11,29 @@ install:
1011
- yarn --frozen-lockfile
1112
script:
1213
- yarn test
13-
- yarn build:release
14-
- yarn deploy
14+
- yarn generate
15+
# https://stackoverflow.com/questions/37544306/travis-different-script-for-different-branch
16+
- test "$TRAVIS_BRANCH" = "dev" && yarn build && ./lhci.sh || echo skip
17+
- test "$TRAVIS_BRANCH" = "master" && yarn zip || echo skip
18+
addons:
19+
chrome: stable
1520
cache:
1621
- yarn
1722
- directories:
1823
- release/nuxt-element-dashboard/node_modules
1924
- release/nuxt-multiple-spa/node_modules
2025
- release/nuxt-vant/node_modules
2126
deploy:
22-
- provider: pages
23-
skip_cleanup: true
24-
github_token: $GITHUB_TOKEN # Set in the settings page of your repository, as a secure variable
25-
local-dir: dist
26-
on:
27-
branch: master
27+
#- provider: pages
28+
# skip_cleanup: true
29+
# github_token: $GITHUB_TOKEN # Set in the settings page of your repository, as a secure variable
30+
# local-dir: dist
31+
# on:
32+
# branch: master
2833
- provider: script
2934
skip_cleanup: true
3035
script: npx semantic-release
36+
on:
37+
branch: master
3138
after_script:
3239
- ./notify.sh

README.md

Lines changed: 14 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -129,19 +129,25 @@ Please check out [developer guide](./developer-guide.md).
129129
Thanks goes to these wonderful people ([emoji key](https://allcontributors.org/docs/en/emoji-key)):
130130

131131
<!-- ALL-CONTRIBUTORS-LIST:START - Do not remove or modify this section -->
132-
<!-- prettier-ignore -->
132+
<!-- prettier-ignore-start -->
133+
<!-- markdownlint-disable -->
133134
<table>
134135
<tr>
135-
<td align="center"><a href="https://github.com/lianghx-319"><img src="https://avatars2.githubusercontent.com/u/27187946?v=4" width="100px;" alt="Han"/><br /><sub><b>Han</b></sub></a><br /><a href="https://github.com/FEMessage/create-nuxt-app/commits?author=lianghx-319" title="Code">💻</a> <a href="https://github.com/FEMessage/create-nuxt-app/commits?author=lianghx-319" title="Documentation">📖</a> <a href="https://github.com/FEMessage/create-nuxt-app/commits?author=lianghx-319" title="Tests">⚠️</a> <a href="#infra-lianghx-319" title="Infrastructure (Hosting, Build-Tools, etc)">🚇</a></td>
136-
<td align="center"><a href="https://donaldshen.github.io/portfolio"><img src="https://avatars3.githubusercontent.com/u/19591950?v=4" width="100px;" alt="Donald Shen"/><br /><sub><b>Donald Shen</b></sub></a><br /><a href="https://github.com/FEMessage/create-nuxt-app/commits?author=donaldshen" title="Code">💻</a> <a href="https://github.com/FEMessage/create-nuxt-app/commits?author=donaldshen" title="Tests">⚠️</a> <a href="#maintenance-donaldshen" title="Maintenance">🚧</a></td>
137-
<td align="center"><a href="https://github.com/levy9527/blog"><img src="https://avatars3.githubusercontent.com/u/9384365?v=4" width="100px;" alt="levy"/><br /><sub><b>levy</b></sub></a><br /><a href="#review-levy9527" title="Reviewed Pull Requests">👀</a></td>
138-
<td align="center"><a href="http://67.216.223.155/resume/"><img src="https://avatars3.githubusercontent.com/u/26338853?v=4" width="100px;" alt="OuZuYu"/><br /><sub><b>OuZuYu</b></sub></a><br /><a href="https://github.com/FEMessage/create-nuxt-app/commits?author=OuZuYu" title="Code">💻</a></td>
139-
<td align="center"><a href="https://evila.me"><img src="https://avatars3.githubusercontent.com/u/19513289?v=4" width="100px;" alt="EVILLT"/><br /><sub><b>EVILLT</b></sub></a><br /><a href="https://github.com/FEMessage/create-nuxt-app/commits?author=evillt" title="Code">💻</a> <a href="https://github.com/FEMessage/create-nuxt-app/commits?author=evillt" title="Documentation">📖</a> <a href="#tool-evillt" title="Tools">🔧</a></td>
140-
<td align="center"><a href="https://colmugx.github.io"><img src="https://avatars1.githubusercontent.com/u/21327913?v=4" width="100px;" alt="ColMugX"/><br /><sub><b>ColMugX</b></sub></a><br /><a href="https://github.com/FEMessage/create-nuxt-app/commits?author=colmugx" title="Code">💻</a></td>
141-
<td align="center"><a href="https://shoyuf.top"><img src="https://avatars3.githubusercontent.com/u/27998490?v=4" width="100px;" alt="Shoyuf"/><br /><sub><b>Shoyuf</b></sub></a><br /><a href="https://github.com/FEMessage/create-nuxt-app/commits?author=shoyuf" title="Code">💻</a></td>
136+
<td align="center"><a href="https://github.com/lianghx-319"><img src="https://avatars2.githubusercontent.com/u/27187946?v=4" width="100px;" alt=""/><br /><sub><b>Han</b></sub></a><br /><a href="https://github.com/FEMessage/create-nuxt-app/commits?author=lianghx-319" title="Code">💻</a> <a href="https://github.com/FEMessage/create-nuxt-app/commits?author=lianghx-319" title="Documentation">📖</a> <a href="https://github.com/FEMessage/create-nuxt-app/commits?author=lianghx-319" title="Tests">⚠️</a> <a href="#infra-lianghx-319" title="Infrastructure (Hosting, Build-Tools, etc)">🚇</a></td>
137+
<td align="center"><a href="https://donaldshen.github.io/portfolio"><img src="https://avatars3.githubusercontent.com/u/19591950?v=4" width="100px;" alt=""/><br /><sub><b>Donald Shen</b></sub></a><br /><a href="https://github.com/FEMessage/create-nuxt-app/commits?author=donaldshen" title="Code">💻</a> <a href="https://github.com/FEMessage/create-nuxt-app/commits?author=donaldshen" title="Tests">⚠️</a> <a href="#maintenance-donaldshen" title="Maintenance">🚧</a></td>
138+
<td align="center"><a href="https://github.com/levy9527/blog"><img src="https://avatars3.githubusercontent.com/u/9384365?v=4" width="100px;" alt=""/><br /><sub><b>levy</b></sub></a><br /><a href="https://github.com/FEMessage/create-nuxt-app/pulls?q=is%3Apr+reviewed-by%3Alevy9527" title="Reviewed Pull Requests">👀</a></td>
139+
<td align="center"><a href="http://67.216.223.155/resume/"><img src="https://avatars3.githubusercontent.com/u/26338853?v=4" width="100px;" alt=""/><br /><sub><b>OuZuYu</b></sub></a><br /><a href="https://github.com/FEMessage/create-nuxt-app/commits?author=OuZuYu" title="Code">💻</a></td>
140+
<td align="center"><a href="https://evila.me"><img src="https://avatars3.githubusercontent.com/u/19513289?v=4" width="100px;" alt=""/><br /><sub><b>EVILLT</b></sub></a><br /><a href="https://github.com/FEMessage/create-nuxt-app/commits?author=evillt" title="Code">💻</a> <a href="https://github.com/FEMessage/create-nuxt-app/commits?author=evillt" title="Documentation">📖</a> <a href="#tool-evillt" title="Tools">🔧</a></td>
141+
<td align="center"><a href="https://colmugx.github.io"><img src="https://avatars1.githubusercontent.com/u/21327913?v=4" width="100px;" alt=""/><br /><sub><b>ColMugX</b></sub></a><br /><a href="https://github.com/FEMessage/create-nuxt-app/commits?author=colmugx" title="Code">💻</a></td>
142+
<td align="center"><a href="https://shoyuf.top"><img src="https://avatars3.githubusercontent.com/u/27998490?v=4" width="100px;" alt=""/><br /><sub><b>Shoyuf</b></sub></a><br /><a href="https://github.com/FEMessage/create-nuxt-app/commits?author=shoyuf" title="Code">💻</a></td>
143+
</tr>
144+
<tr>
145+
<td align="center"><a href="https://github.com/zhn4"><img src="https://avatars2.githubusercontent.com/u/11404946?v=4" width="100px;" alt=""/><br /><sub><b>zhn4</b></sub></a><br /><a href="https://github.com/FEMessage/create-nuxt-app/commits?author=zhn4" title="Code">💻</a></td>
142146
</tr>
143147
</table>
144148

149+
<!-- markdownlint-enable -->
150+
<!-- prettier-ignore-end -->
145151
<!-- ALL-CONTRIBUTORS-LIST:END -->
146152

147153
This project follows the [all-contributors](https://github.com/all-contributors/all-contributors) specification. Contributions of any kind welcome!

lhci.sh

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
#!/bin/sh
2+
yarn global add @lhci/cli
3+
4+
lhci autorun --upload.target=temporary-public-storage --collect.staticDistDir=./dist --collect.url=http://localhost/nuxt-element-dashboard --collect.url=http://localhost/nuxt-multiple-spa --collect.url=http://localhost/nuxt-vant

notify.sh

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,10 @@
11
#!/bin/sh
2+
if [ "$TRAVIS_BRANCH" != "master" ]
3+
then
4+
echo "do not notify cause not on master branch"
5+
exit 0
6+
fi
7+
28
if [ "$TRAVIS_TEST_RESULT" != "0" ]
39
then
410
echo "build not success, bye"

package.json

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -22,9 +22,9 @@
2222
"lint": "eslint ./",
2323
"test": "ava test --verbose",
2424
"test:snapshot": "ava test --verbose --update-snapshots",
25-
"build": "node bin/cli.js -a -o release",
26-
"build:release": "node bin/cli.js -a -o release && node bin/zip.js",
27-
"deploy": "yarn build && node bin/deploy/build.js",
25+
"generate": "node bin/cli.js -a -o release",
26+
"zip": "node bin/zip.js",
27+
"build": "node bin/deploy/build.js",
2828
"release": "gren release --override"
2929
},
3030
"dependencies": {

template/framework-mobile/_package.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,7 @@
3232
"@femessage/data-list": "latest",
3333
"@femessage/upload-to-ali": "latest",
3434
"@femessage/vant": "latest",
35+
"@femessage/v-img": "latest",
3536
"@nuxtjs/axios": "^5.0.1",
3637
"@nuxtjs/dotenv": "^1.3.0",
3738
"@nuxtjs/google-analytics": "^2.2.2",

template/framework-mobile/pages/goods-detail.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
<div class="goods-detail">
33
<van-swipe :autoplay="3000" class="swipe">
44
<van-swipe-item v-for="thumb in goods.thumb" :key="thumb">
5-
<img :src="thumb" />
5+
<v-img :src="thumb" />
66
</van-swipe-item>
77
</van-swipe>
88

template/framework-mobile/pages/index.vue

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,15 +2,15 @@
22
<div class="index">
33
<van-swipe :autoplay="3000" indicator-color="white">
44
<van-swipe-item v-for="(image, index) in images" :key="index">
5-
<img :src="image" class="banner" />
5+
<v-img :src="image" class="banner" width="100" />
66
</van-swipe-item>
77
</van-swipe>
88
<van-row class="goods">
99
<van-cell title="热销商品" icon="fire-o" />
1010
<van-row>
1111
<van-col v-for="(good, index) in goods" :key="index" span="12">
1212
<div class="block" @click="goDetail(good)">
13-
<img :src="good.img" class="good-img" />
13+
<v-img :src="good.img" class="good-img" width="100" />
1414
<p class="name">{{ good.name }}</p>
1515
<p class="price">{{ good.price | price }}</p>
1616
</div>

template/framework-mobile/pages/my.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
<template>
22
<div class="my">
3-
<img
3+
<v-img
44
class="my-poster"
55
src="https://img.yzcdn.cn/public_files/2017/10/23/8690bb321356070e0b8c4404d087f8fd.png"
66
/>

0 commit comments

Comments
 (0)