From c71c6803c8c4e58c6c04d1646944e8a4013f508f Mon Sep 17 00:00:00 2001 From: Guillaume Briday Date: Thu, 21 Mar 2024 21:52:43 -0400 Subject: [PATCH] Updating config and move package to organization --- .babelrc | 5 +- .eslintrc.js | 9 +- .github/workflows/lint.yml | 4 +- .node-version | 2 +- .npmignore | 5 +- .prettierrc | 3 +- CHANGELOG.md | 12 +- LICENSE | 2 +- index.html | 118 +- package.json | 49 +- src/index.ts | 20 +- tailwind.config.js | 7 +- tsconfig.json | 3 +- vite.config.js | 27 - vite.config.mjs | 30 + yarn.lock | 6507 ++++++++++++++++++++++-------------- 16 files changed, 4082 insertions(+), 2721 deletions(-) delete mode 100644 vite.config.js create mode 100644 vite.config.mjs diff --git a/.babelrc b/.babelrc index fe8e0cf..1517d09 100644 --- a/.babelrc +++ b/.babelrc @@ -1,7 +1,4 @@ { - "presets": [ - "@babel/env", - "@babel/preset-typescript" - ], + "presets": ["@babel/env", "@babel/preset-typescript"], "plugins": ["@babel/plugin-transform-typescript"] } diff --git a/.eslintrc.js b/.eslintrc.js index debc350..78c9c90 100644 --- a/.eslintrc.js +++ b/.eslintrc.js @@ -1,10 +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, + }, + // 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/.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 08377d2..4d42642 100644 --- a/.npmignore +++ b/.npmignore @@ -6,12 +6,9 @@ index.html netlify.toml .node-version .eslintrc.js -src spec tsconfig.json -vite.config.js +vite.config.mjs .prettierignore -.prettierrc -.eslintignore 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 7ed92f2..fd7a1e5 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] +## [3.0.0] - 2024-03-17 + +### Chore + +- Renaming the component from `stimulus-notification` to `@stimulus-components/notification` +- Upgrading dependencies +- Exporting Typescript Types +- Updating demo UI +- Add [Stimulus LSP](https://github.com/marcoroth/stimulus-lsp) compatibility + ## [2.2.0] - 2022-12-23 ### Added @@ -32,7 +43,6 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0 - Upgrading dependencies - Upgrading Node to 16.13.1. - ## [1.0.0] - 2021-07-14 ### Added 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 527989c..3c0b1e8 100644 --- a/index.html +++ b/index.html @@ -1,4 +1,4 @@ - + @@ -8,62 +8,45 @@ Stimulus Notification - -
-