Skip to content

Commit 0f9d770

Browse files
Merge pull request #97 from knowledgecode/develop
Full renewal in TypeScript
2 parents 4fadb3c + 892014c commit 0f9d770

File tree

936 files changed

+24714
-33179
lines changed

Some content is hidden

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

936 files changed

+24714
-33179
lines changed

.circleci/config.yml

Lines changed: 0 additions & 15 deletions
This file was deleted.

.editorconfig

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
root = true
2+
3+
[*.{js,ts}]
4+
charset = utf-8
5+
indent_size = 2
6+
indent_style = space
7+
trim_trailing_whitespace = true

.github/badges/coverage.svg

Lines changed: 20 additions & 0 deletions
Loading

.github/workflows/test.yml

Lines changed: 80 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,80 @@
1+
name: CI
2+
3+
on:
4+
push:
5+
branches: [ master, develop ]
6+
pull_request:
7+
branches: [ master, develop ]
8+
9+
jobs:
10+
test:
11+
runs-on: ubuntu-latest
12+
13+
steps:
14+
- name: Checkout code
15+
uses: actions/checkout@v4
16+
17+
- name: Setup Node.js
18+
uses: actions/setup-node@v4
19+
with:
20+
node-version: 'lts/*'
21+
cache: 'npm'
22+
23+
- name: Install dependencies
24+
run: npm ci
25+
26+
- name: Run linter
27+
run: npm run lint
28+
29+
- name: Run tests
30+
run: npm test
31+
32+
coverage:
33+
runs-on: ubuntu-latest
34+
if: github.event_name == 'push'
35+
36+
steps:
37+
- name: Checkout code
38+
uses: actions/checkout@v4
39+
40+
- name: Setup Node.js
41+
uses: actions/setup-node@v4
42+
with:
43+
node-version: 'lts/*'
44+
cache: 'npm'
45+
46+
- name: Install dependencies
47+
run: npm ci
48+
49+
- name: Run tests with coverage
50+
run: npm run test:coverage
51+
52+
- name: Read coverage summary
53+
id: coverage
54+
run: |
55+
echo "pct=$(jq '.total.lines.pct' coverage/coverage-summary.json)" >> $GITHUB_OUTPUT
56+
57+
- name: Create badges directory
58+
run: mkdir -p .github/badges
59+
60+
- name: Generate coverage badge
61+
uses: emibcn/[email protected]
62+
with:
63+
label: 'coverage'
64+
status: ${{ steps.coverage.outputs.pct }}%
65+
color: ${{ fromJSON(steps.coverage.outputs.pct) >= 80 && 'green' || fromJSON(steps.coverage.outputs.pct) >= 60 && 'yellow' || 'red' }}
66+
path: .github/badges/coverage.svg
67+
68+
- name: Commit coverage badge
69+
run: |
70+
git config --local user.email "[email protected]"
71+
git config --local user.name "GitHub Action"
72+
git add .github/badges/coverage.svg
73+
git diff --staged --quiet || git commit -m "Update coverage badge"
74+
git push
75+
76+
- name: Upload coverage reports
77+
uses: actions/upload-artifact@v4
78+
with:
79+
name: coverage-report
80+
path: coverage/

.gitignore

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,6 @@
11
.DS_Store
2-
node_modules
2+
.claude/
3+
CLAUDE.md
4+
coverage/
5+
dist/
6+
node_modules/

.npmignore

Lines changed: 0 additions & 6 deletions
This file was deleted.

EXTEND.md

Lines changed: 0 additions & 107 deletions
This file was deleted.

LICENSE

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,4 +19,3 @@ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
1919
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
2020
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
2121
SOFTWARE.
22-

LOCALE.md

Lines changed: 0 additions & 103 deletions
This file was deleted.

0 commit comments

Comments
 (0)