-
Notifications
You must be signed in to change notification settings - Fork 166
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
16 changed files
with
179 additions
and
28 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,19 +1,14 @@ | ||
|
||
module.exports = { | ||
extends: [ | ||
'@webank/eslint-config-webank/vue.js' | ||
extends: ['@webank/eslint-config-webank/vue.js'], | ||
overrides: [ | ||
{ | ||
files: [ | ||
'**/__tests__/*.{j,t}s?(x)', | ||
'**/tests/unit/**/*.spec.{j,t}s?(x)' | ||
] | ||
} | ||
], | ||
globals: { | ||
// 这里填入你的项目需要的全局变量 | ||
// 这里值为 false 表示这个全局变量不允许被重新赋值,比如: | ||
// | ||
// Vue: false | ||
__DEV__: false | ||
}, | ||
rules: { | ||
'vue/comment-directive': 'off', | ||
'global-require': 'off', | ||
'import/no-unresolved': 'off', | ||
'no-restricted-syntax': 'off' | ||
env: { | ||
jest: true | ||
} | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -2,7 +2,7 @@ | |
|
||
# dependencies | ||
/node_modules | ||
|
||
/coverage | ||
|
||
# fes | ||
/src/.fes | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
import sum from "@/utils/sum" | ||
|
||
test('adds 1 + 2 to equal 3', () => { | ||
expect(sum(1, 2)).toBe(3); | ||
}); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
10 changes: 10 additions & 0 deletions
10
packages/create-fes-app/templates/app/pc/src/pages/test.vue
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
<template> | ||
<div>test</div> | ||
</template> | ||
<script> | ||
import { } from '@webank/fes'; | ||
export default { | ||
}; | ||
</script> |
23 changes: 23 additions & 0 deletions
23
packages/create-fes-app/templates/app/pc/src/stores/counter.js
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
export default { | ||
namespaced: true, | ||
state: () => ({ | ||
count: 0 | ||
}), | ||
mutations: { | ||
increment(state) { | ||
state.count++; | ||
} | ||
}, | ||
getters: { | ||
doubleCount(state) { | ||
return state.count * 2; | ||
} | ||
}, | ||
actions: { | ||
asyncIncrement({ commit }) { | ||
setTimeout(() => { | ||
commit('increment'); | ||
}, 2000); | ||
} | ||
} | ||
}; |
3 changes: 3 additions & 0 deletions
3
packages/create-fes-app/templates/app/pc/src/stores/plugin-loger.js
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
import { createLogger } from 'vuex'; | ||
|
||
export default createLogger(); |
25 changes: 25 additions & 0 deletions
25
packages/create-fes-app/templates/app/pc/src/stores/user.js
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
export default { | ||
namespaced: true, | ||
state: () => ({ | ||
name: 'aring', | ||
age: 20, | ||
count: 0 | ||
}), | ||
mutations: { | ||
increment(state) { | ||
state.count++; | ||
} | ||
}, | ||
getters: { | ||
doubleCount(state) { | ||
return state.count * 2; | ||
} | ||
}, | ||
actions: { | ||
asyncIncrement({ commit }) { | ||
setTimeout(() => { | ||
commit('increment'); | ||
}, 2000); | ||
} | ||
} | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
export default function sum(a, b) { | ||
return a + b; | ||
} |