Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
43 commits
Select commit Hold shift + click to select a range
0c90d04
Move all existing tests to /integration
javve Nov 22, 2020
fa8173d
Add unit tests for templates and star decouple Templater api from Item
javve Nov 23, 2020
5d522e7
Refactor templater.get and add unit test
javve Nov 25, 2020
b3267c7
Merge branch 'develop' into feature/refactor-for-unit-tests
javve Nov 25, 2020
b27b1f6
Complete decoupling of templater from list
javve Nov 28, 2020
6d7c590
Begin decouple item from list and remove item.visible/hide/show and c…
javve Nov 29, 2020
5500a5c
Complete decoupling of list from item
javve Nov 29, 2020
238b900
Add unit tests for Item
javve Nov 30, 2020
d538d09
Update string-natural-compare from 2.0.2 to 3.0.1
javve Dec 16, 2020
ae7e929
Refactor sort and sort listeners + add unit tests
javve Dec 16, 2020
6bfd458
Switch to Vite & Vitest (WIP tests)
javve Apr 24, 2025
6e5e3fb
Add eslint and fix warnings
javve Apr 25, 2025
665f5b3
Replace Circle CI with GitHub Actions
javve Apr 25, 2025
18fc7ba
Run workflow for all pull requests
javve Apr 25, 2025
e6d644c
New GIthub action try
javve Apr 25, 2025
3456c7f
Run workflow for both Node 6, 14 and 22
javve Apr 25, 2025
3e47a44
Fix some tests
javve Apr 25, 2025
7fcdab0
Trigger action?
javve Apr 25, 2025
e266810
Update coverage setup
javve Apr 25, 2025
5989abc
Add lint script and run this when running test
javve Apr 25, 2025
5870707
Update build script
javve Apr 25, 2025
34a276f
Remove Bower 🐦 👋
javve Apr 25, 2025
2981e39
Update download links
javve Apr 25, 2025
bf81da3
Revert string-natural-compare version (support older browsers) and fi…
javve Apr 25, 2025
b3ad7c9
Fix test codecov report
javve Apr 25, 2025
41bd671
Don't run ci tests with old node version (dev deps does not support) …
javve Apr 25, 2025
05f9a31
Test fix coverage
javve Apr 25, 2025
a17c0f8
Switch to codecov v5
javve Apr 25, 2025
7a129be
Make sure to run lint and test coverage in github action
javve Apr 26, 2025
6f2f2c3
Debug coverage tests
javve Apr 26, 2025
2170601
More fix
javve Apr 26, 2025
7827419
Remove unused reporters
javve Apr 26, 2025
ebbde5a
Merge branch 'master' into vite-vitest
javve Apr 26, 2025
a20225d
Add package-lock after merge
javve Apr 27, 2025
068150c
Update to import syntax for all tests
javve Apr 27, 2025
1f6ea07
Update package.json to refer to right files
javve Apr 27, 2025
9e4ab7c
Remove jquery 💥
javve Apr 27, 2025
bd0076e
Update package-lock.json
javve Apr 27, 2025
ee3b098
minor fixes
javve Apr 27, 2025
b444cd4
Update ci.yml
javve Apr 27, 2025
10a96d0
Update readme year and twitter -> x
javve Apr 27, 2025
c30bce6
Delete website (are going to move to own branch)
javve Apr 27, 2025
a00d8e4
Remove references to copying list.js files in package
javve Apr 27, 2025
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
34 changes: 0 additions & 34 deletions .circleci/config.yml

This file was deleted.

28 changes: 27 additions & 1 deletion .codecov.yml
Original file line number Diff line number Diff line change
@@ -1,2 +1,28 @@
coverage:
status:
project:
default:
target: 80%
threshold: 1%
patch:
default:
target: 80%
threshold: 1%

comment:
layout: 'reach, diff, flags, files'
behavior: default
require_changes: false
require_base: no
require_head: yes

parsers:
gcov:
branch_detection:
conditional: yes
loop: yes
method: no
macro: no

codecov:
branch: master
require_ci_to_pass: yes
8 changes: 8 additions & 0 deletions .eslintignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
dist/
node_modules/
.circleci/
.vscode/
.gitignore
.eslintrc.js
docs/
__test__/usage
45 changes: 45 additions & 0 deletions .eslintrc.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,45 @@
module.exports = {
root: true,
env: {
browser: true,
node: true,
},
parserOptions: {
ecmaVersion: 2022,
sourceType: 'module',
},
extends: ['eslint:recommended', 'prettier'],
overrides: [
{
files: ['__test__/**/*.test.js'],
env: {
es6: true,
},
parserOptions: {
ecmaVersion: 2022,
sourceType: 'module',
},
globals: {
describe: 'readonly',
it: 'readonly',
expect: 'readonly',
beforeAll: 'readonly',
afterAll: 'readonly',
afterEach: 'readonly',
beforeEach: 'readonly',
xit: 'readonly',
vi: 'readonly',
},
},
{
files: ['src/**/*.js'],
parserOptions: {
ecmaVersion: 5,
sourceType: 'script',
},
plugins: ['es'],
extends: ['plugin:es/restrict-to-es5'],
rules: {},
},
],
}
19 changes: 15 additions & 4 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ name: CI
on:
push:
branches:
- master
- 'master'
pull_request:
branches:
- '**'
Expand All @@ -18,11 +18,22 @@ jobs:
- name: Setup Node.js
uses: actions/setup-node@v4
with:
node-version: '14.15.1'
node-version: 22
cache: 'npm'

- name: Install dependencies
run: npm install

- name: Run tests
run: npm test
- name: Run lint
run: npm run lint

- name: Run tests with coverage
run: npm run test:coverage

- name: Upload coverage to Codecov
uses: codecov/codecov-action@v5
with:
token: ${{ secrets.CODECOV_TOKEN }}
files: ./coverage/lcov.info
flags: unittests
name: vitest-coverage
2 changes: 1 addition & 1 deletion .nvmrc
Original file line number Diff line number Diff line change
@@ -1 +1 @@
14.15.1
22.14.0
10 changes: 2 additions & 8 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -36,12 +36,6 @@ Really simple and easy to use!
npm install list.js
```

##### Via Bower

```
bower install list.js
```

##### Via CDNJS

```html
Expand Down Expand Up @@ -84,11 +78,11 @@ https://stackoverflow.com/questions/tagged/list.js

### Creator

| | Jonny Strömberg [@javve](https://twitter.com/javve) |
| | Jonny Strömberg [@javve](https://x.com/javve) |
| ---------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ |
| ![Image of Jonny](http://1.gravatar.com/avatar/9f8130715cb4c452f1294eafa1b36290?size=80) | I hope you like the lib. I’ve put a lot of hours into it! Feel free to follow me on [Twitter](http://twitter.com/javve) for news and [donate a coffee](https://www.paypal.com/cgi-bin/webscr?cmd=_s-xclick&hosted_button_id=M7ZGHV75VSD2E) for good karma ;) |

## License (MIT)

Copyright (c) 2011-2020 Jonny Strömberg <[jonny.stromberg@gmail.com](mailto:jonny.stromberg@gmail.com)>
Copyright (c) 2011-2025 Jonny Strömberg <[jonny.stromberg@gmail.com](mailto:jonny.stromberg@gmail.com)>
[javve.com](https://javve.com)
193 changes: 0 additions & 193 deletions __test__/add-get-remove.test.js

This file was deleted.

Loading