Skip to content

Commit 8fbafb2

Browse files
committed
first commit
0 parents  commit 8fbafb2

26 files changed

+14429
-0
lines changed

.browserslistrc

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
> 1%
2+
last 2 versions
3+
not ie <= 8

.circleci/config.yml

Lines changed: 155 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,155 @@
1+
version: 2.1
2+
3+
defaults: &defaults
4+
docker:
5+
- image: circleci/node
6+
7+
working_directory: ~/app
8+
9+
orbs:
10+
codecov: codecov/codecov@1.0.4
11+
12+
jobs:
13+
commitlint:
14+
docker:
15+
- image: williamlauze/circleci-commitlint:latest
16+
working_directory: ~/app
17+
18+
steps:
19+
- checkout
20+
- run:
21+
name: Lint commit messages
22+
command: /bin/sh /.scripts/commitlint_range.sh
23+
24+
checkout:
25+
<<: *defaults
26+
27+
steps:
28+
- restore_cache:
29+
name: Restore Repository Cache
30+
keys:
31+
- repo-{{ .Branch }}-{{ .Environment.CIRCLE_SHA1 }}
32+
- repo-{{ .Branch }}
33+
- repo-master
34+
- repo-
35+
36+
- checkout
37+
38+
- save_cache:
39+
name: Save Repository Cache
40+
key: repo-{{ .Branch }}-{{ .Environment.CIRCLE_SHA1 }}
41+
paths:
42+
- .
43+
44+
- persist_to_workspace:
45+
root: .
46+
paths:
47+
- .
48+
49+
install-dependencies:
50+
<<: *defaults
51+
52+
steps:
53+
- attach_workspace:
54+
at: .
55+
56+
- restore_cache:
57+
name: Restore yarn Package Cache
58+
keys:
59+
- yarn-{{ checksum "yarn.lock" }}
60+
- yarn-
61+
62+
- run:
63+
name: Install Dependencies
64+
command: yarn install
65+
66+
- save_cache:
67+
name: Save yarn Package Cache
68+
key: yarn-{{ checksum "yarn.lock" }}
69+
paths:
70+
- node_modules
71+
72+
- persist_to_workspace:
73+
root: .
74+
paths:
75+
- node_modules
76+
77+
lint:
78+
<<: *defaults
79+
80+
steps:
81+
- attach_workspace:
82+
at: .
83+
84+
- run:
85+
name: Add Yarn Binary Folder To $PATH
86+
command: export PATH="$PATH:`yarn global bin`"
87+
88+
- run:
89+
name: Lint JS
90+
command: yarn lint
91+
92+
test:
93+
<<: *defaults
94+
95+
steps:
96+
- attach_workspace:
97+
at: .
98+
99+
- run:
100+
name: Add Yarn Binary Folder To $PATH
101+
command: export PATH="$PATH:`yarn global bin`"
102+
103+
- run:
104+
name: Run tests
105+
command: yarn test:unit
106+
107+
coverage:
108+
<<: *defaults
109+
110+
steps:
111+
- attach_workspace:
112+
at: .
113+
114+
- run:
115+
name: Add Yarn Binary Folder To $PATH
116+
command: export PATH="$PATH:`yarn global bin`"
117+
118+
- run:
119+
name: Generate and upload coverage report
120+
command: yarn test:unit --coverage --coverageReporters=json --collectCoverage=true --coverageDirectory=/home/circleci/app/coverage
121+
122+
- store_test_results:
123+
path: ~/app/coverage
124+
125+
- store_artifacts:
126+
path: ~/app/coverage
127+
destination: ~/app/coverage
128+
129+
- codecov/upload:
130+
token: 84850ad5-b40a-4ebb-975b-ee2c5b99d28e
131+
file: ~/app/coverage/*.json
132+
flags: frontend
133+
134+
workflows:
135+
version: 2
136+
137+
main:
138+
jobs:
139+
- checkout
140+
- commitlint:
141+
filters:
142+
branches:
143+
ignore: master
144+
- install-dependencies:
145+
requires:
146+
- checkout
147+
- test:
148+
requires:
149+
- install-dependencies
150+
- coverage:
151+
requires:
152+
- install-dependencies
153+
- lint:
154+
requires:
155+
- install-dependencies

.editorconfig

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
[*.{js,jsx,ts,tsx,vue}]
2+
indent_style = space
3+
indent_size = 2
4+
trim_trailing_whitespace = true
5+
insert_final_newline = true

.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: [
7+
'plugin:vue/essential',
8+
'@vue/standard'
9+
],
10+
rules: {
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+
}
Lines changed: 37 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,37 @@
1+
---
2+
name: Bug report
3+
about: Create a report to help us improve
4+
5+
---
6+
7+
<!-- Please fill your information below. -->
8+
<!-- You can delete these lines enclosed by `<` and `>` before posting, too. -->
9+
10+
**Describe the bug**
11+
<!-- A clear and concise description of what the problem you are facing is. -->
12+
13+
**To Reproduce**
14+
<!--
15+
Steps to reproduce the behavior:
16+
1. Go to '...'
17+
2. Click on '....'
18+
3. Scroll down to '....'
19+
4. See error
20+
-->
21+
22+
**Expected behavior**
23+
<!-- A clear and concise description of what you expected to happen. -->
24+
25+
**Screenshots**
26+
<!-- If applicable, add screenshots to help explain your problem. -->
27+
28+
**Environment:**
29+
- OS: <!-- (i.e. Windows) -->
30+
- Browser: <!-- Version. -->
31+
- Build environment (i.e. NodeJS): <!-- If you have issues building the SCSS into CSS, add your information here. -->
32+
33+
**Suggestion(s) for fixing this issue**
34+
<!-- What are your thoughts? How could this possibly be resolved? -->
35+
36+
**Additional context**
37+
<!-- Add any other context about the problem here. -->
Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
---
2+
name: Feature request
3+
about: Suggest an idea for this project
4+
5+
---
6+
7+
<!-- Please fill your information below. -->
8+
<!-- You can delete these lines enclosed by `<` and `>` before posting, too. -->
9+
10+
**Is your feature request related to a problem? Please describe.**
11+
<!-- A clear and concise description of what the problem is. Ex. I'm always frustrated when [...] -->
12+
13+
**Describe the solution you'd like**
14+
<!-- A clear and concise description of what you want to happen. -->
15+
16+
**Describe alternatives you've considered**
17+
<!-- A clear and concise description of any alternative solutions or features you've considered. -->
18+
19+
**Additional context**
20+
<!-- Add any other context or screenshots about the feature request here. -->

.github/logo.png

21.8 KB
Loading

.gitignore

Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
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*
22+
23+
# Coverage directory used by tools like istanbul
24+
coverage
25+
26+
# Static
27+
storybook-static

.huskyrc.json

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
{
2+
"hooks": {
3+
"pre-push": [
4+
"npm run lint && npm run test:unit"
5+
]
6+
}
7+
}

.npmignore

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
# User & editor settings
2+
.editorconfig
3+
.huskyrc
4+
.vscode
5+
jest.config.js
6+
postcss.config.js
7+
8+
# Build files
9+
.circleci
10+
.github
11+
.storybook
12+
commitlint.config.js
13+
node_modules
14+
15+
# Documentation files
16+
storybook-static
17+
config
18+
stories
19+
tests

0 commit comments

Comments
 (0)