Skip to content

Commit 8a84785

Browse files
authored
Initial commit
0 parents  commit 8a84785

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

44 files changed

+14473
-0
lines changed

.commitlintrc.json

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
{ "extends": ["@commitlint/config-conventional"]
2+
}

.eslintignore

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
**/node_modules/**/*.js
2+
src/thirdparty/**
3+
src/**/*-min.js
4+
src/**/*.min.js
5+

.eslintrc.json

Lines changed: 80 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,80 @@
1+
{
2+
"rules": {
3+
"no-caller": 2,
4+
"no-control-regex": 2,
5+
"no-empty": 1,
6+
"no-invalid-regexp": 2,
7+
"no-regex-spaces": 2,
8+
"no-unsafe-negation": 1,
9+
"valid-jsdoc": 0,
10+
"valid-typeof": 2,
11+
"curly": 2,
12+
"eqeqeq": [2, "smart"],
13+
"guard-for-in": 0,
14+
"no-else-return": 1,
15+
"no-fallthrough": 2,
16+
"no-invalid-this": 1,
17+
"no-iterator": 2,
18+
"no-loop-func": 2,
19+
"no-multi-str": 2,
20+
"no-new-func": 2,
21+
"no-new-wrappers": 2,
22+
"no-new": 2,
23+
"no-proto": 2,
24+
"no-redeclare": 1,
25+
"no-script-url": 2,
26+
"wrap-iife": [2, "outside"],
27+
"strict": 2,
28+
"no-shadow-restricted-names": 2,
29+
"no-shadow": 1,
30+
"no-undef": 2,
31+
"no-unused-vars": [1, {"vars": "all", "args": "none"}],
32+
"no-use-before-define": 0,
33+
"no-new-require": 2,
34+
"block-spacing": 1,
35+
"brace-style": [1, "1tbs", { "allowSingleLine": true }],
36+
"camelcase": 1,
37+
"comma-dangle": 2,
38+
"comma-spacing": 1,
39+
"comma-style": [1, "last"],
40+
"computed-property-spacing": 1,
41+
"eol-last": 1,
42+
"func-call-spacing": 1,
43+
"indent": [1, 4],
44+
"key-spacing": [1, { "beforeColon": false, "afterColon": true }],
45+
"max-len": [1, 120],
46+
"new-cap": [0, {
47+
"capIsNewExceptions": [
48+
"$.Deferred",
49+
"$.Event",
50+
"CodeMirror.Pos",
51+
"Immutable.Map",
52+
"Immutable.List",
53+
"JSLINT"
54+
]
55+
}],
56+
"new-parens": 2,
57+
"no-bitwise": 2,
58+
"no-new-object": 2,
59+
"no-trailing-spaces": 1,
60+
"semi-spacing": 1,
61+
"semi": 2
62+
},
63+
"globals": {
64+
"console": true
65+
},
66+
"env":{
67+
"es6": true,
68+
"node": true
69+
},
70+
"parserOptions": {
71+
"ecmaVersion": 10,
72+
"sourceType": "module",
73+
"ecmaFeatures": {
74+
"arrowFunctions": true,
75+
"binaryLiterals": true,
76+
"blockBindings": true,
77+
"classes": true
78+
}
79+
}
80+
}
Lines changed: 38 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,38 @@
1+
---
2+
name: Bug report
3+
about: Create a report to help us improve
4+
title: ''
5+
labels: ''
6+
assignees: ''
7+
8+
---
9+
10+
**Describe the bug**
11+
A clear and concise description of what the bug is.
12+
13+
**To Reproduce**
14+
Steps to reproduce the behavior:
15+
1. Go to '...'
16+
2. Click on '....'
17+
3. Scroll down to '....'
18+
4. See error
19+
20+
**Expected behavior**
21+
A clear and concise description of what you expected to happen.
22+
23+
**Screenshots**
24+
If applicable, add screenshots to help explain your problem.
25+
26+
**Desktop (please complete the following information):**
27+
- OS: [e.g. iOS]
28+
- Browser [e.g. chrome, safari]
29+
- Version [e.g. 22]
30+
31+
**Smartphone (please complete the following information):**
32+
- Device: [e.g. iPhone6]
33+
- OS: [e.g. iOS8.1]
34+
- Browser [e.g. stock browser, safari]
35+
- Version [e.g. 22]
36+
37+
**Additional context**
38+
Add any other context about the problem here.

.github/ISSUE_TEMPLATE/custom.md

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
---
2+
name: Custom issue template
3+
about: Describe this issue template's purpose here.
4+
title: ''
5+
labels: ''
6+
assignees: ''
7+
8+
---
9+
10+
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+
title: ''
5+
labels: ''
6+
assignees: ''
7+
8+
---
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.
Lines changed: 55 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,55 @@
1+
---
2+
name: Bug fix
3+
about: Change which fixes an issue.
4+
title: ''
5+
labels: ''
6+
assignees: ''
7+
8+
---
9+
# Description
10+
11+
* Please include a summary of the change.
12+
* Please also include relevant motivation and context.
13+
* List any dependencies that are required for this change.
14+
15+
Addresses issues #(issue)
16+
17+
## Type of change
18+
19+
**NB: ~~Please strike through options that are not applicable.~~**
20+
21+
- [ ] Breaking change (fix that would cause existing functionality to not work as expected)
22+
- [ ] This change requires a documentation update
23+
24+
# Sample Input and output
25+
* Provide screenshots or videos.
26+
* Or provide Input output if run on text terminal.
27+
28+
# How Has This Been Tested?
29+
30+
* Please describe the tests that you ran to verify your changes.
31+
* Provide instructions so we can reproduce.
32+
* Please also list any relevant details for your test configuration
33+
34+
35+
- [ ] Test A
36+
- [ ] Test B
37+
38+
**Test Configuration**:
39+
* Firmware version:
40+
* Hardware:
41+
* Toolchain:
42+
* SDK:
43+
44+
# Checklist:
45+
46+
**NB: ~~Please strike through options that are not applicable.~~**
47+
48+
- [ ] My code follows the style guidelines of this project
49+
- [ ] I have performed a self-review of my own code
50+
- [ ] I have commented my code, particularly in hard-to-understand areas
51+
- [ ] I have made corresponding changes to the documentation
52+
- [ ] My changes generate no new warnings
53+
- [ ] I have added tests that prove my fix is effective or that my feature works
54+
- [ ] New and existing unit tests pass locally with my changes
55+
- [ ] Any dependent changes have been merged and published in downstream modules
Lines changed: 57 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,57 @@
1+
---
2+
name: New Feature
3+
about: Change which adds functionality
4+
title: ''
5+
labels: ''
6+
assignees: ''
7+
---
8+
9+
# Description
10+
11+
* Please include a summary of the change.
12+
* Please also include relevant motivation and context.
13+
* List any dependencies that are required for this change.
14+
15+
Fixes #(issue)
16+
17+
## Type of change
18+
**NB: ~~Please strike through options that are not applicable.~~**
19+
- [ ] non-breaking change which fixes an issue
20+
- [ ] Breaking change (feature that would cause existing functionality to not work as expected)
21+
- [ ] This change requires a documentation update
22+
23+
# Sample Input and output
24+
* Provide screenshots or videos.
25+
* Or provide code block Input output if run on text terminal as below.
26+
```
27+
$ code block Input output on text terminal.
28+
output
29+
```
30+
31+
# How Has This Been Tested?
32+
33+
* Please describe the tests that you ran to verify your changes.
34+
* Provide instructions so we can reproduce.
35+
* Please also list any relevant details for your test configuration
36+
37+
- [ ] Test A
38+
- [ ] Test B
39+
40+
**Test Configuration**:
41+
* Firmware version:
42+
* Hardware:
43+
* Toolchain:
44+
* SDK:
45+
46+
# Checklist:
47+
48+
**NB: ~~Please strike through options that are not applicable.~~**
49+
50+
- [ ] My code follows the style guidelines of this project
51+
- [ ] I have performed a self-review of my own code
52+
- [ ] I have commented my code, particularly in hard-to-understand areas
53+
- [ ] I have made corresponding changes to the documentation
54+
- [ ] My changes generate no new warnings
55+
- [ ] I have added tests that prove my fix is effective or that my feature works
56+
- [ ] New and existing unit tests pass locally with my changes
57+
- [ ] Any dependent changes have been merged and published in downstream modules
Lines changed: 58 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,58 @@
1+
---
2+
name: Remove Feature
3+
about: Change which removes existing functionality
4+
title: ''
5+
labels: ''
6+
assignees: ''
7+
---
8+
9+
# Description
10+
11+
* Please include a summary of the change.
12+
* Please also include relevant motivation and context.
13+
* List any dependencies that are required for this change.
14+
15+
Fixes #(issue)
16+
17+
## Type of change
18+
**NB: ~~Please strike through options that are not applicable.~~**
19+
- [ ] non-breaking change which fixes an issue
20+
- [ ] Breaking change (feature that would cause existing functionality to not work as expected)
21+
- [ ] This change requires a documentation update
22+
23+
# Sample Input and output
24+
* Provide screenshots or videos.
25+
* Or provide code block Input output if run on text terminal as below.
26+
```
27+
$ code block Input output on text terminal.
28+
output
29+
```
30+
31+
# How Has This Been Tested?
32+
33+
* Please describe the tests that you ran to verify your changes.
34+
* Provide instructions so we can reproduce.
35+
* Please also list any relevant details for your test configuration
36+
37+
38+
- [ ] Test A
39+
- [ ] Test B
40+
41+
**Test Configuration**:
42+
* Firmware version:
43+
* Hardware:
44+
* Toolchain:
45+
* SDK:
46+
47+
# Checklist:
48+
49+
**NB: ~~Please strike through options that are not applicable.~~**
50+
51+
- [ ] My code follows the style guidelines of this project
52+
- [ ] I have performed a self-review of my own code
53+
- [ ] I have commented my code, particularly in hard-to-understand areas
54+
- [ ] I have made corresponding changes to the documentation
55+
- [ ] My changes generate no new warnings
56+
- [ ] I have added tests that prove my fix is effective or that my feature works
57+
- [ ] New and existing unit tests pass locally with my changes
58+
- [ ] Any dependent changes have been merged and published in downstream modules

.github/workflows/build_verify.yml

Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
name: Build verification on push to main branch
2+
3+
on:
4+
push:
5+
branches: [ main ]
6+
7+
jobs:
8+
build-tasks:
9+
runs-on: ubuntu-latest
10+
steps:
11+
- uses: actions/checkout@v3
12+
- name: Npm Install
13+
run: |
14+
npm ci
15+
- name: eslint using npm run eslint
16+
run: |
17+
npm run lint
18+
- name: building build
19+
run: |
20+
npm run build
21+
- name: Unit tests with coverage
22+
run: |
23+
npm run cover:unit
24+
- name: Running Integration tests
25+
run: |
26+
npm run test:integ

0 commit comments

Comments
 (0)