Skip to content

Commit c222212

Browse files
author
levy
committed
Merge branch 'dev'
2 parents a3e3c8a + 872e15e commit c222212

File tree

23 files changed

+2293
-95
lines changed

23 files changed

+2293
-95
lines changed

.grenrc.js

Lines changed: 32 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,32 @@
1+
module.exports = {
2+
dataSource: 'prs',
3+
prefix: '',
4+
ignoreLabels: ['duplicate', 'help wanted', 'invalid', 'question', 'wontfix'],
5+
ignoreIssuesWith: [
6+
'duplicate',
7+
'help wanted',
8+
'invalid',
9+
'question',
10+
'wontfix'
11+
],
12+
onlyMilestones: false,
13+
changelogFilename: 'CHANGELOG.md',
14+
template: {
15+
issue: '- {{name}} [{{text}}]({{url}})',
16+
group: '\n### {{heading}}\n'
17+
},
18+
// https://github.com/nuxt/nuxt.js/releases
19+
// https://gitmoji.carloscuesta.me
20+
groupBy: {
21+
'✨ New Features:': ['enhancement'],
22+
'🐛 Bug Fixes:': ['bug'],
23+
'📖 Documentation:': ['documentation'],
24+
'💅 Refactors:': ['refactor'],
25+
'♻️ Tests:': ['test'],
26+
'🚀 Performance:': ['performance'],
27+
'⚓ Dependency upgrades:': ['dependencies'],
28+
'🏡 Chore:': ['chore'],
29+
'💄 Style:': ['style'],
30+
'🎩 Hack': ['hack']
31+
}
32+
}

README.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,7 @@ Create a Deepexi Nuxt App in seconds.
3434
- [x] [dotenv](https://github.com/motdotla/dotenv) Loads environment variables from .env for nodejs projects
3535
- [x] [element-ui](https://element.eleme.io/) A Vue.js 2.0 UI Toolkit for Web
3636
- [x] [vant](https://youzan.github.io/vant) Lightweight Mobile UI Components built on Vue
37+
- [x] [PWA](https://pwa.nuxtjs.org) Nuxt Progressive Web Apps solution
3738

3839
[⬆ Back to Top](#table-of-contents)
3940

notify.sh

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,8 @@ then
55
exit 1
66
fi
77

8+
GREN_GITHUB_TOKEN=$GITHUB_TOKEN yarn release
9+
810
url=https://api.github.com/repos/$TRAVIS_REPO_SLUG/releases/latest
911
resp_tmp_file=resp.tmp
1012

package.json

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,8 @@
2020
"test": "ava test --verbose",
2121
"test:snapshot": "ava test --verbose --update-snapshots",
2222
"build": "node bin/cli.js -a -o release",
23-
"build:release": "node bin/cli.js -a -o release && node bin/zip.js"
23+
"build:release": "node bin/cli.js -a -o release && node bin/zip.js",
24+
"release": "gren release --override"
2425
},
2526
"dependencies": {
2627
"cac": "^6.5.2",
@@ -42,6 +43,7 @@
4243
"eslint-plugin-promise": "^4.0.1",
4344
"eslint-plugin-standard": "^4.0.0",
4445
"eslint-plugin-vue": "^5.1.0",
46+
"github-release-notes": "^0.17.0",
4547
"husky": "1.3.1",
4648
"semantic-release": "^15.13.24"
4749
},
@@ -80,7 +82,6 @@
8082
]
8183
}
8284
],
83-
"@semantic-release/release-notes-generator",
8485
"@semantic-release/npm",
8586
[
8687
"@semantic-release/github",

template.config.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,8 @@ const common = {
2626
release: 'release-log',
2727
styles: 'styles',
2828
'icon-font': 'icon-font',
29-
test: 'jest'
29+
test: 'jest',
30+
utils: 'utils'
3031
}
3132

3233
const desktop = {

template/_package.json

Lines changed: 8 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@
3131
"start": "cross-env HOST=0.0.0.0 PORT=3333 MODE=prod nuxt start",
3232
"stdver": "standard-version -m '[skip ci] chore(release): v%s'",
3333
"release": "gren release --override",
34-
"lint": "eslint src/**/*.{js,vue} --fix && stylelint src/**/*.{vue,less} --fix"
34+
"lint": "eslint 'src/**/*.@(js|vue)' --fix && stylelint src/**/*.{vue,less} --fix"
3535
},
3636
"dependencies": {
3737
<%_ if (template === 'mobile') { _%>
@@ -45,6 +45,7 @@
4545
<%_ } _%>
4646
"@nuxtjs/axios": "^5.0.1",
4747
"@nuxtjs/dotenv": "^1.3.0",
48+
"@nuxtjs/pwa": "^3.0.0-beta.16",
4849
"dayjs": "^1.7.4",
4950
"dotenv": "^6.0.0",
5051
"js-cookie": "^2.2.0",
@@ -95,8 +96,12 @@
9596
}
9697
},
9798
"lint-staged": {
98-
"*.{js,vue,less}": [
99-
"yarn lint",
99+
"*.{js,vue}": [
100+
"eslint --fix",
101+
"git add"
102+
],
103+
"*.{vue,less}": [
104+
"stylelint --fix",
100105
"git add"
101106
],
102107
"*.{md,json}": [

template/commitlint.config.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
module.exports = {
22
extends: ['@commitlint/config-conventional'],
33
rules: {
4-
'type-enum': [0, 'always', ['merge']]
5-
}
4+
'type-enum': [0, 'always', ['merge']],
5+
},
66
}

template/frameworks/axios/plugins/axios.js

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,9 +18,14 @@
1818

1919
import Vue from 'vue'
2020

21+
const skipUrls = ['easy-mock']
22+
2123
export default function({$axios, store, app, redirect}) {
2224
$axios.onRequest(config => {
2325
let url = config.url
26+
27+
if (skipUrls.some(skipUrl => url.indexOf(skipUrl) > -1)) return
28+
2429
// jwt 验证
2530
if (store.state.token) {
2631
config.headers.common['Authorization'] = `Bearer ${store.state.token}`

template/frameworks/element-ui/plugins/element.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ import {
3232
DropdownMenu,
3333
DropdownItem,
3434
Row,
35-
Col
35+
Col,
3636
} from 'element-ui'
3737
import ElFormRenderer from '@femessage/el-form-renderer'
3838
import ElDataTable from '@femessage/el-data-table'

template/frameworks/filters/plugins/filters.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ export function price(val, cancelFixed) {
1313
return parseFloat(val).toLocaleString('zh-Hans-CN', {
1414
style: 'currency',
1515
currency: 'CNY',
16-
minimumFractionDigits: cancelFixed ? 0 : 2
16+
minimumFractionDigits: cancelFixed ? 0 : 2,
1717
})
1818
}
1919

0 commit comments

Comments
 (0)