From 8b1aeabd74351f98b3fb070bff7be1be6d3edc67 Mon Sep 17 00:00:00 2001 From: Guillaume Briday Date: Tue, 27 Feb 2024 00:54:03 -0500 Subject: [PATCH] Updating config and move package to organization --- .babelrc | 10 +- .eslintignore | 1 - .eslintrc.js | 11 +- .github/workflows/lint.yml | 4 +- .github/workflows/test.yml | 4 +- .gitignore | 1 - .node-version | 2 +- .npmignore | 3 +- .prettierrc | 3 +- CHANGELOG.md | 14 + LICENSE | 2 +- index.html | 204 +- jest/jest-setup.ts | 4 +- package.json | 56 +- spec/index.test.ts | 18 +- src/index.ts | 36 +- tailwind.config.js | 7 +- tsconfig.json | 13 +- vite.config.mjs | 27 +- yarn.lock | 3955 ++++++++++++++---------------------- 20 files changed, 1705 insertions(+), 2670 deletions(-) diff --git a/.babelrc b/.babelrc index c9461f2..1517d09 100644 --- a/.babelrc +++ b/.babelrc @@ -1,10 +1,4 @@ { - "presets": [ - "@babel/env", - "@babel/preset-typescript" - ], - "plugins": [ - "@babel/plugin-transform-typescript", - "@babel/plugin-proposal-class-properties" - ] + "presets": ["@babel/env", "@babel/preset-typescript"], + "plugins": ["@babel/plugin-transform-typescript"] } diff --git a/.eslintignore b/.eslintignore index e628f72..1521c8b 100644 --- a/.eslintignore +++ b/.eslintignore @@ -1,2 +1 @@ dist -index.d.ts diff --git a/.eslintrc.js b/.eslintrc.js index b547807..78c9c90 100644 --- a/.eslintrc.js +++ b/.eslintrc.js @@ -1,14 +1,15 @@ // https://eslint.org/docs/user-guide/configuring module.exports = { + root: true, + parser: "@typescript-eslint/parser", env: { browser: true, node: true, es6: true, - jest: true + jest: true, }, - - globals: { - page: 'readonly' - } + // https://github.com/standard/standard/blob/master/docs/RULES-en.md + extends: ["standard", "prettier"], + plugins: ["@typescript-eslint"], } diff --git a/.github/workflows/lint.yml b/.github/workflows/lint.yml index 3352d3e..6d91238 100644 --- a/.github/workflows/lint.yml +++ b/.github/workflows/lint.yml @@ -9,8 +9,8 @@ jobs: - uses: actions/checkout@v2 - uses: actions/setup-node@v2 with: - node-version-file: '.node-version' - cache: 'yarn' + node-version-file: ".node-version" + cache: "yarn" - run: | yarn install --silent --non-interactive yarn lint diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index a44704f..7277652 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -9,8 +9,8 @@ jobs: - uses: actions/checkout@v2 - uses: actions/setup-node@v2 with: - node-version-file: '.node-version' - cache: 'yarn' + node-version-file: ".node-version" + cache: "yarn" - name: test run: | yarn install --silent --non-interactive diff --git a/.gitignore b/.gitignore index 492663e..63520da 100644 --- a/.gitignore +++ b/.gitignore @@ -1,4 +1,3 @@ node_modules dist build -index.d.ts diff --git a/.node-version b/.node-version index 3c03207..209e3ef 100644 --- a/.node-version +++ b/.node-version @@ -1 +1 @@ -18 +20 diff --git a/.npmignore b/.npmignore index 8a781d0..4d42642 100644 --- a/.npmignore +++ b/.npmignore @@ -6,10 +6,9 @@ index.html netlify.toml .node-version .eslintrc.js -src spec tsconfig.json -vite.config.js +vite.config.mjs .prettierignore postcss.config.js tailwind.config.js diff --git a/.prettierrc b/.prettierrc index 963354f..a13b242 100644 --- a/.prettierrc +++ b/.prettierrc @@ -1,3 +1,4 @@ { - "printWidth": 120 + "printWidth": 120, + "semi": false } diff --git a/CHANGELOG.md b/CHANGELOG.md index 472de64..69d8242 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,4 +1,5 @@ # Changelog + All notable changes to this project will be documented in this file. The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/), @@ -6,6 +7,16 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0 ## [Unreleased] +## [6.0.0] - 2024-02-27 + +### Chore + +- Renaming the component from `stimulus-checkbox-select-all` to `@stimulus-components/checkbox-select-all` +- Upgrading dependencies +- Exporting Typescript Types +- Updating demo UI +- Add [Stimulus LSP](https://github.com/marcoroth/stimulus-lsp) compatibility + ## [5.3.0] - 2023-12-22 ### Chore @@ -85,6 +96,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0 - **Breaking** `data-target="checkbox-select-all.checkboxAll"` is now required. - **Breaking** `data-action="change->checkbox-select-all#toggle"` has been be removed. + ```diff - + @@ -97,12 +109,14 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0 - Indeterminate state support Add `data-target="checkbox-select-all.checkboxAll"` attribute to use it. It's optional. + ```diff - + ``` ### Changed + - Adding `stimulus` as `peerDependencies` ## [1.0.0] - 2020-10-15 diff --git a/LICENSE b/LICENSE index 7fab72d..9f2b765 100644 --- a/LICENSE +++ b/LICENSE @@ -1,6 +1,6 @@ MIT License -Copyright (c) 2024 Guillaume Briday +Copyright (c) Guillaume Briday Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal diff --git a/index.html b/index.html index a180026..a2d913c 100644 --- a/index.html +++ b/index.html @@ -1,4 +1,4 @@ - + @@ -8,69 +8,45 @@ Stimulus Checkbox Select All - -
-