Skip to content

Commit 8555c3a

Browse files
committed
chore: update few npm deps & add vscode debugger
1 parent 256929f commit 8555c3a

File tree

10 files changed

+265
-209
lines changed

10 files changed

+265
-209
lines changed

.gitignore

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,8 +13,6 @@ dist-ssr
1313
*.local
1414

1515
# Editor directories and files
16-
.vscode/*
17-
!.vscode/extensions.json
1816
.idea
1917
.DS_Store
2018
*.suo

.vscode/launch.json

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
{
2+
// Use IntelliSense to learn about possible attributes.
3+
// Hover to view descriptions of existing attributes.
4+
// For more information, visit: https://go.microsoft.com/fwlink/?linkid=830387
5+
"version": "0.2.0",
6+
"configurations": [
7+
{
8+
"name": "Launch Edge",
9+
"request": "launch",
10+
"type": "msedge",
11+
"url": "http://localhost:3000",
12+
"webRoot": "${workspaceFolder}"
13+
},
14+
{
15+
"name": "Vite - Edge Debugger",
16+
"type": "msedge",
17+
"request": "launch",
18+
"sourceMaps": true,
19+
"trace": false,
20+
"url": "http://localhost:3000"
21+
}
22+
]
23+
}

.vscode/settings.json

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
{
2+
"editor.defaultFormatter": "esbenp.prettier-vscode",
3+
"editor.formatOnSave": true,
4+
"editor.formatOnPaste": false,
5+
"typescript.tsdk": "node_modules\\typescript\\lib"
6+
}

.vscode/tasks.json

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
{
2+
"version": "2.0.0",
3+
"tasks": [
4+
{
5+
"label": "Build Library",
6+
"type": "shell",
7+
"command": "pnpm build",
8+
"problemMatcher": []
9+
},
10+
{
11+
"label": "Start Library Development",
12+
"type": "shell",
13+
"command": "pnpm dev",
14+
"problemMatcher": []
15+
},
16+
{
17+
"label": "Prepare New Release",
18+
"type": "shell",
19+
"command": "pnpm roll-new-release",
20+
"problemMatcher": []
21+
}
22+
]
23+
}

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
<!-- [![Cypress.io](https://img.shields.io/badge/tested%20with-Cypress-04C38E.svg)](https://www.cypress.io/) -->
88

99
## Official Release now available 📣
10-
We now have a fully working and official release `0.1.0` including a [**Live demo**](https://ghiscoding.github.io/multiple-select-vanilla/) for all available options/methods. The intention is to use this demo to add Cypress E2E tests.
10+
We now have a fully working and official release including a [**Live demo**](https://ghiscoding.github.io/multiple-select-vanilla/) for all available options/methods. The intention is to eventually use this demo to add Cypress E2E tests.
1111

1212
## Description
1313
Multiple-Select-Vanilla is a fork of the popular [Multiple-Select (jQuery)](https://github.com/wenzhixin/multiple-select) original lib, it is based on the latest version `1.5.2` from the original lib. The main difference is that we dropped jQuery and rewrote necessary code in plain vanilla/pure JavaScript without any dependencies (zero dependency). We will also add nice extra features pretty soon, for example auto-position (top/bottom & left/right) is planned.

demo/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,6 @@
2727
"multiple-select-vanilla": "workspace:*",
2828
"sass": "^1.58.3",
2929
"typescript": "^4.9.5",
30-
"vite": "^4.1.2"
30+
"vite": "^4.1.4"
3131
}
3232
}

lib/build-prod.mjs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
import { buildSync } from 'esbuild';
2-
import glob from 'glob';
2+
import { globSync } from 'glob';
33

44
const buildFormats = ['cjs', 'esm'];
5-
const localeFiles = glob.sync('src/locales/**/*.ts');
5+
const localeFiles = globSync('src/locales/**/*.ts');
66
const localeEntryPoints = [];
77

88
for (const format of buildFormats) {

lib/vite-locales.config.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
11
import { defineConfig } from 'vite';
22
import { resolve } from 'path';
33
import path from 'node:path';
4-
import glob from 'glob';
4+
import { globSync } from 'glob';
55

66
const dirname = path.dirname(__filename);
7-
const localeFiles: string[] = glob.sync('src/locales/**/*.ts');
7+
const localeFiles: string[] = globSync('src/locales/**/*.ts');
88
const localeEntryPoints: string[] = [];
99
const locales: string[] = [resolve(dirname, `src/locales/all-locales-index.ts`)];
1010
const localeInputs: { [locale: string]: string } = {

package.json

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -37,19 +37,19 @@
3737
"devDependencies": {
3838
"@lerna-lite/cli": "^1.16.0",
3939
"@lerna-lite/watch": "^1.16.0",
40-
"@typescript-eslint/eslint-plugin": "^5.52.0",
41-
"@typescript-eslint/parser": "^5.52.0",
40+
"@typescript-eslint/eslint-plugin": "^5.54.1",
41+
"@typescript-eslint/parser": "^5.54.1",
4242
"cross-env": "^7.0.3",
43-
"eslint": "^8.34.0",
43+
"eslint": "^8.35.0",
4444
"eslint-config-airbnb-base": "^15.0.0",
45-
"eslint-config-prettier": "^8.6.0",
45+
"eslint-config-prettier": "^8.7.0",
4646
"eslint-plugin-import": "^2.27.5",
4747
"eslint-plugin-node": "^11.1.0",
4848
"eslint-plugin-prefer-arrow": "^1.2.3",
4949
"npm-run-all2": "^6.0.4",
50-
"pnpm": "^7.27.1",
50+
"pnpm": "^7.29.1",
5151
"prettier": "^2.8.4",
52-
"rimraf": "^4.3.0",
52+
"rimraf": "^4.4.0",
5353
"typescript": "^4.9.5"
5454
}
5555
}

0 commit comments

Comments
 (0)