Skip to content

Commit

Permalink
Chore/Optimize the build (#147)
Browse files Browse the repository at this point in the history
  • Loading branch information
ishiko732 authored Jan 19, 2025
1 parent 8355606 commit ad71683
Show file tree
Hide file tree
Showing 17 changed files with 343 additions and 545 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ jobs:
- name: Install pnpm
uses: pnpm/action-setup@v4
with:
version: 9.5.0
version: 9.12.3
run_install: false

- name: Install Node.js
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ jobs:
- uses: pnpm/action-setup@v4
name: Install pnpm
with:
version: 9.5.0
version: 9.12.3
run_install: false

- name: Install Node.js
Expand Down
2 changes: 0 additions & 2 deletions .github/workflows/npm-publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -57,8 +57,6 @@ jobs:
- name: Run tests and collect coverage
run: pnpm run test::coverage

- run: pnpm build

- name: Upload coverage reports to Codecov
uses: codecov/codecov-action@v4
with:
Expand Down
19 changes: 15 additions & 4 deletions .vscode/launch.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,23 +5,34 @@
"type": "node",
"request": "launch",
"name": "ts-fsrs debug",
"skipFiles": ["<node_internals>/**"],
"skipFiles": [
"<node_internals>/**",
"${workspaceFolder}/node_modules/**"
],
"env": {
// "DEBUG": "*",
},
"outputCapture": "std",
"runtimeExecutable": "nodemon",
"runtimeExecutable": "tsx",
"restart": true,
"console": "integratedTerminal",
"cwd": "${workspaceFolder}",
"args": ["${workspaceFolder}/debug/index.ts"]
"args": ["watch","${workspaceFolder}/debug/index.ts"]
},
{
"type": "node",
"request": "attach",
"name": "Node: Nodemon",
"processId": "${command:PickProcess}",
"restart": true
"restart": true,
"port": 9229,
"skipFiles": [
// Node.js internal core modules
"<node_internals>/**",

// Ignore all dependencies (optional)
"${workspaceFolder}/node_modules/**"
]
}
]
}
2 changes: 1 addition & 1 deletion LICENSE
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
MIT License

Copyright (c) 2024 Open Spaced Repetition
Copyright (c) 2025 Open Spaced Repetition

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
Expand Down
26 changes: 19 additions & 7 deletions debug/long-term.ts
Original file line number Diff line number Diff line change
Expand Up @@ -35,22 +35,34 @@ function test1() {

assert.deepStrictEqual(
ivl_history,
[3, 11, 36, 105, 277, 669, 13, 2, 4, 8, 15, 28, 51]
[
3, 11, 35, 101, 269, 669,
12, 2, 5, 12, 26, 55,
112
]
)
assert.deepStrictEqual(
s_history,
[
3.1262, 11.38843914, 36.39366698, 105.18699429, 276.69089439,
669.22510555, 12.54444945, 2.41539727, 4.33950844, 8.07463145,
15.26080938, 28.22186641, 51.42879844,
3.173, 10.73892592,
34.57762416, 100.74831139,
269.283835, 669.30934162,
11.89873732, 2.23603312,
5.20013908, 11.89928679,
26.49170577, 55.49486382,
111.97264222
]
)
assert.deepStrictEqual(
d_history,
[
5.31457783, 5.26703555, 5.22060576, 5.17526243, 5.13098013, 5.08773404,
7.12585323, 9.11628043, 8.97977831, 8.84647034, 8.71628178, 8.58913963,
8.4649726,
5.28243442, 5.27296793,
5.26354498, 5.25416538,
5.24482893, 5.23553542,
6.76539959, 7.79401833,
7.77299855, 7.75207546,
7.73124862, 7.71051758,
7.68988191
]
)
}
Expand Down
26 changes: 19 additions & 7 deletions debug/short-term.ts
Original file line number Diff line number Diff line change
Expand Up @@ -35,22 +35,34 @@ function test1() {

assert.deepStrictEqual(
ivl_history,
[0, 4, 15, 48, 136, 351, 0, 0, 7, 13, 24, 43, 77]
[
0, 4, 14, 44, 125, 328,
0, 0, 7, 16, 34, 71,
142
]
)
assert.deepStrictEqual(
s_history,
[
3.1262, 4.35097949, 14.94870008, 47.78790366, 136.29251941, 351.35118365,
9.99090459, 5.08074507, 7.07127426, 13.09253023, 23.92805755, 43.23645988,
76.59611345,
3.173, 4.46685806,
14.21728391, 43.7250927,
124.79655286, 328.47343304,
9.25594883, 4.63749438,
6.5285311, 15.55546765,
34.36241506, 71.10191819,
141.83400645
]
)
assert.deepStrictEqual(
d_history,
[
5.31457783, 5.26703555, 5.22060576, 5.17526243, 5.13098013, 5.08773404,
7.12585323, 9.11628043, 8.97977831, 8.84647034, 8.71628178, 8.58913963,
8.4649726,
5.28243442, 5.27296793,
5.26354498, 5.25416538,
5.24482893, 5.23553542,
6.76539959, 7.79401833,
7.77299855, 7.75207546,
7.73124862, 7.71051758,
7.68988191
]
)
}
Expand Down
16 changes: 0 additions & 16 deletions digrams/algorithm.pu

This file was deleted.

49 changes: 0 additions & 49 deletions digrams/cardState.pu

This file was deleted.

118 changes: 0 additions & 118 deletions digrams/class.pu

This file was deleted.

Loading

0 comments on commit ad71683

Please sign in to comment.