generated from IgnacioNMiranda/vite-component-library-template
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
0 parents
commit bd7e2d8
Showing
32 changed files
with
11,698 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
module.exports = { | ||
env: { | ||
browser: true, | ||
es2021: true, | ||
}, | ||
extends: ['plugin:react/recommended', 'standard-with-typescript', 'prettier', 'plugin:storybook/recommended'], | ||
overrides: [], | ||
parserOptions: { | ||
ecmaVersion: 'latest', | ||
sourceType: 'module', | ||
}, | ||
plugins: ['react'], | ||
rules: { | ||
'react/jsx-key': 'off', | ||
'react/react-in-jsx-scope': 'off', | ||
'no-unused-vars': 'off', | ||
'@typescript-eslint/no-unused-vars': 'warn', | ||
'no-console': 'warn', | ||
}, | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,55 @@ | ||
on: | ||
push: | ||
branches: | ||
- main | ||
|
||
permissions: | ||
contents: write | ||
pull-requests: write | ||
|
||
name: release-please | ||
jobs: | ||
release-please: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Release | ||
id: release | ||
if: ${{ github.ref_name == 'main' }} | ||
uses: google-github-actions/release-please-action@v3 | ||
with: | ||
release-type: node | ||
default-branch: main | ||
token: ${{ secrets.GITHUB_TOKEN }} | ||
|
||
- name: Checkout | ||
uses: actions/checkout@v3 | ||
if: ${{ steps.release.outputs.releases_created }} | ||
|
||
- name: Install pnpm | ||
uses: pnpm/action-setup@v2 | ||
if: ${{ steps.release.outputs.releases_created }} | ||
with: | ||
version: 8 | ||
|
||
# Setup .npmrc file to publish to npm | ||
- name: Setup Node | ||
uses: actions/setup-node@v3 | ||
with: | ||
node-version: '18.x' | ||
registry-url: 'https://registry.npmjs.org' | ||
cache: 'pnpm' | ||
if: ${{ steps.release.outputs.releases_created }} | ||
|
||
- name: CI | ||
run: pnpm install --frozen-lockfile | ||
if: ${{ steps.release.outputs.releases_created }} | ||
|
||
- name: Build | ||
run: pnpm build:lib | ||
if: ${{ steps.release.outputs.releases_created }} | ||
|
||
- name: Publish | ||
run: pnpm publish | ||
if: ${{ steps.release.outputs.releases_created }} | ||
env: | ||
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,30 @@ | ||
# Logs | ||
logs | ||
*.log | ||
npm-debug.log* | ||
yarn-debug.log* | ||
yarn-error.log* | ||
pnpm-debug.log* | ||
lerna-debug.log* | ||
|
||
node_modules | ||
dist | ||
dist-ssr | ||
*.local | ||
|
||
# Editor directories and files | ||
.vscode/* | ||
!.vscode/extensions.json | ||
.idea | ||
.DS_Store | ||
*.suo | ||
*.ntvs* | ||
*.njsproj | ||
*.sln | ||
*.sw? | ||
|
||
# Storybook | ||
storybook-static | ||
|
||
# Testing | ||
coverage |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
_ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
#!/bin/sh | ||
. "$(dirname "$0")/_/husky.sh" | ||
|
||
npm run lint && npx lint-staged |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
v16.18.1 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
{ | ||
"semi": false, | ||
"trailingComma": "all", | ||
"singleQuote": true, | ||
"printWidth": 120, | ||
"endOfLine": "auto" | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
import type { StorybookConfig } from '@storybook/react-vite' | ||
const config: StorybookConfig = { | ||
stories: ['../src/**/*.stories.@(js|jsx|ts|tsx)'], | ||
addons: [ | ||
'@storybook/addon-links', | ||
'@storybook/addon-essentials', | ||
'@storybook/addon-interactions', | ||
'@storybook/addon-styling', | ||
], | ||
framework: { | ||
name: '@storybook/react-vite', | ||
options: { | ||
builder: { | ||
viteConfigPath: '.storybook/vite.config.ts', | ||
}, | ||
}, | ||
}, | ||
docs: { | ||
autodocs: 'tag', | ||
}, | ||
} | ||
export default config |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
import type { Preview } from '@storybook/react' | ||
import '../src/lib/tailwind/theme.css' | ||
|
||
const preview: Preview = { | ||
parameters: { | ||
actions: { argTypesRegex: '^on[A-Z].*' }, | ||
controls: { | ||
matchers: { | ||
color: /(background|color)$/i, | ||
date: /Date$/, | ||
}, | ||
}, | ||
}, | ||
} | ||
|
||
export default preview |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
import react from '@vitejs/plugin-react' | ||
import { defineConfig } from 'vitest/config' | ||
import tailwindcss from 'tailwindcss' | ||
import { UserConfigExport } from 'vite' | ||
|
||
const app = async (): Promise<UserConfigExport> => { | ||
return defineConfig({ | ||
plugins: [react()], | ||
css: { | ||
postcss: { | ||
plugins: [tailwindcss], | ||
}, | ||
}, | ||
}) | ||
} | ||
// https://vitejs.dev/config/ | ||
export default app |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,185 @@ | ||
# Changelog | ||
|
||
## [2.0.3](https://github.com/IgnacioNMiranda/vite-component-library-template/compare/v2.0.2...v2.0.3) (2023-08-09) | ||
|
||
|
||
### Miscellaneous Chores | ||
|
||
* update deps ([f8f240c](https://github.com/IgnacioNMiranda/vite-component-library-template/commit/f8f240caeff8250eef2dc8ba6f0f7412c5fe9e18)) | ||
|
||
## [2.0.2](https://github.com/IgnacioNMiranda/vite-component-library-template/compare/v2.0.1...v2.0.2) (2023-08-09) | ||
|
||
|
||
### Miscellaneous Chores | ||
|
||
* remove react/jsx-runtime from bundle ([85e881e](https://github.com/IgnacioNMiranda/vite-component-library-template/commit/85e881ecf85ecad6aa356a90fad4f8ceb6ea9930)) | ||
|
||
## [2.0.1](https://github.com/IgnacioNMiranda/vite-component-library-template/compare/v2.0.0...v2.0.1) (2023-07-28) | ||
|
||
|
||
### Bug Fixes | ||
|
||
* include types check to package.json exports to fix recent typescript export issues ([de8c55c](https://github.com/IgnacioNMiranda/vite-component-library-template/commit/de8c55c6e9da79e027981f5866563793f9a28daf)) | ||
|
||
## [2.0.0](https://github.com/IgnacioNMiranda/vite-component-library-template/compare/v1.5.11...v2.0.0) (2023-06-26) | ||
|
||
|
||
### Bug Fixes | ||
|
||
* add custom vite storybook config ([535de90](https://github.com/IgnacioNMiranda/vite-component-library-template/commit/535de90a78abed5e5c115a1093db0ca611c15ee4)) | ||
|
||
|
||
### Miscellaneous Chores | ||
|
||
* update deps ([3a20a38](https://github.com/IgnacioNMiranda/vite-component-library-template/commit/3a20a3873e247e128f13d30718633e1d57bf5dfa)) | ||
|
||
## [1.5.11](https://github.com/IgnacioNMiranda/vite-component-library-template/compare/v1.5.10...v1.5.11) (2023-01-22) | ||
|
||
|
||
### Documentation | ||
|
||
* small update in README ([07c3766](https://github.com/IgnacioNMiranda/vite-component-library-template/commit/07c3766baf787b21598c2c0e3a8847a1dcb172d4)) | ||
|
||
## [1.5.10](https://github.com/IgnacioNMiranda/vite-component-library-template/compare/v1.5.9...v1.5.10) (2023-01-22) | ||
|
||
|
||
### Miscellaneous Chores | ||
|
||
* fix typo in lib exports ([d93532f](https://github.com/IgnacioNMiranda/vite-component-library-template/commit/d93532fce8490d86ce9ef942d78c47d5361fe878)) | ||
|
||
## [1.5.9](https://github.com/IgnacioNMiranda/vite-component-library-template/compare/v1.5.8...v1.5.9) (2023-01-22) | ||
|
||
|
||
### Miscellaneous Chores | ||
|
||
* remove peer dependency ([e94e49b](https://github.com/IgnacioNMiranda/vite-component-library-template/commit/e94e49b2310aa3bc466df6e13eae37bbc36319c2)) | ||
* v1.5.9 ([c64fc19](https://github.com/IgnacioNMiranda/vite-component-library-template/commit/c64fc19e914fc287159e07973b8a46dbb3a43f09)) | ||
|
||
## [1.5.8](https://github.com/IgnacioNMiranda/vite-component-library-template/compare/v1.5.8...v1.5.8) (2023-01-22) | ||
|
||
|
||
### Miscellaneous Chores | ||
|
||
* remove peer dependency ([e94e49b](https://github.com/IgnacioNMiranda/vite-component-library-template/commit/e94e49b2310aa3bc466df6e13eae37bbc36319c2)) | ||
|
||
## [1.5.8](https://github.com/IgnacioNMiranda/vite-component-library-template/compare/v1.5.7...v1.5.8) (2023-01-22) | ||
|
||
|
||
### Miscellaneous Chores | ||
|
||
* remove tailwind from bundle ([1ed5ad4](https://github.com/IgnacioNMiranda/vite-component-library-template/commit/1ed5ad457ca8fe59572e98924f9bbda7872ad8b0)) | ||
|
||
## [1.5.7](https://github.com/IgnacioNMiranda/vite-component-library-template/compare/v1.5.6...v1.5.7) (2023-01-21) | ||
|
||
|
||
### Miscellaneous Chores | ||
|
||
* add style.css as an exported file ([c09be0a](https://github.com/IgnacioNMiranda/vite-component-library-template/commit/c09be0aedd89b4375fea9f792bc7a371d07fb372)) | ||
|
||
## [1.5.6](https://github.com/IgnacioNMiranda/react-library-template/compare/v1.5.5...v1.5.6) (2023-01-21) | ||
|
||
|
||
### Miscellaneous Chores | ||
|
||
* add build step ([9581695](https://github.com/IgnacioNMiranda/react-library-template/commit/9581695e0072893a04fc3ad279aea5053fabf5d2)) | ||
|
||
## [1.5.5](https://github.com/IgnacioNMiranda/react-library-template/compare/v1.5.4...v1.5.5) (2023-01-21) | ||
|
||
|
||
### Miscellaneous Chores | ||
|
||
* update lib name due to npm conflict naming ([561dc24](https://github.com/IgnacioNMiranda/react-library-template/commit/561dc2459f0768aa948f9d19a71491a3b4a6300e)) | ||
|
||
## [1.5.4](https://github.com/IgnacioNMiranda/react-library-template/compare/v1.5.3...v1.5.4) (2023-01-21) | ||
|
||
|
||
### Miscellaneous Chores | ||
|
||
* missing json dependency ([aa53ef5](https://github.com/IgnacioNMiranda/react-library-template/commit/aa53ef53dcf63712417a26236b710ce5c255c726)) | ||
|
||
## [1.5.3](https://github.com/IgnacioNMiranda/react-library-template/compare/v1.5.2...v1.5.3) (2023-01-21) | ||
|
||
|
||
### Features | ||
|
||
* set repo as public ([bc18db7](https://github.com/IgnacioNMiranda/react-library-template/commit/bc18db79273bc353f47b8259a868583047496a84)) | ||
|
||
|
||
### Bug Fixes | ||
|
||
* testing ([276ac3e](https://github.com/IgnacioNMiranda/react-library-template/commit/276ac3e00a8f97f6dc5c86e593c254ac860b1836)) | ||
|
||
|
||
### Miscellaneous Chores | ||
|
||
* v1.5.3 ([2c9f0c0](https://github.com/IgnacioNMiranda/react-library-template/commit/2c9f0c0b8fe5cac5fcdea944280f9efe4db900fd)) | ||
|
||
## [1.5.2](https://github.com/IgnacioNMiranda/react-library-template/compare/v1.5.1...v1.5.2) (2023-01-21) | ||
|
||
|
||
### Bug Fixes | ||
|
||
* yarn typo ([81f251a](https://github.com/IgnacioNMiranda/react-library-template/commit/81f251a1a8316c0d5dc3b91276d87ee047158336)) | ||
|
||
## [1.5.1](https://github.com/IgnacioNMiranda/react-library-template/compare/v1.5.0...v1.5.1) (2023-01-21) | ||
|
||
|
||
### Bug Fixes | ||
|
||
* rename workflows ([97cf279](https://github.com/IgnacioNMiranda/react-library-template/commit/97cf2799ffaebc186ae8a1a7f2b61c0dc0c935c4)) | ||
|
||
## [1.5.0](https://github.com/IgnacioNMiranda/react-library-template/compare/v1.4.0...v1.5.0) (2023-01-21) | ||
|
||
|
||
### Features | ||
|
||
* separate workflows for dev and main ([1afb0f1](https://github.com/IgnacioNMiranda/react-library-template/commit/1afb0f16d9f37cc6cb061dbfcdc062228c9862fc)) | ||
|
||
## [1.4.0](https://github.com/IgnacioNMiranda/react-library-template/compare/v1.3.0...v1.4.0) (2023-01-21) | ||
|
||
|
||
### Features | ||
|
||
* release_created typo ([cbc5c77](https://github.com/IgnacioNMiranda/react-library-template/commit/cbc5c778da262cff9c90d99f070f7e378de4e6d4)) | ||
|
||
## [1.3.0](https://github.com/IgnacioNMiranda/react-library-template/compare/v1.2.0...v1.3.0) (2023-01-21) | ||
|
||
|
||
### Features | ||
|
||
* add tertiary variant ([bd1fdbf](https://github.com/IgnacioNMiranda/react-library-template/commit/bd1fdbf0ec4b9471743106b4bb01dcab65a918d0)) | ||
|
||
## [1.2.0](https://github.com/IgnacioNMiranda/react-library-template/compare/v1.1.0...v1.2.0) (2023-01-21) | ||
|
||
|
||
### Features | ||
|
||
* move whole publishing workflow to 1 file ([9aac78c](https://github.com/IgnacioNMiranda/react-library-template/commit/9aac78c1f28586e4ccb0b772e4dd015ff4c7564f)) | ||
|
||
|
||
### Bug Fixes | ||
|
||
* revert miss typo ([8775418](https://github.com/IgnacioNMiranda/react-library-template/commit/8775418e01d6816d38e30daea30c9dca9e0c729d)) | ||
* typo in release-please github action ([7b3db07](https://github.com/IgnacioNMiranda/react-library-template/commit/7b3db07600123e469aa926bea93804e5a0e50736)) | ||
|
||
## [1.1.0](https://github.com/IgnacioNMiranda/react-library-template/compare/v1.0.0...v1.1.0) (2023-01-21) | ||
|
||
|
||
### Features | ||
|
||
* add onClick in at-button ([72bc964](https://github.com/IgnacioNMiranda/react-library-template/commit/72bc9648bca111184c42d65cb034762852c432ff)) | ||
|
||
## 1.0.0 (2023-01-21) | ||
|
||
|
||
### Features | ||
|
||
* add disabled state ([3c02421](https://github.com/IgnacioNMiranda/react-library-template/commit/3c02421e148b6ea16df1f51ea795ffa3d024e59d)) | ||
* add tailwind ([e57a365](https://github.com/IgnacioNMiranda/react-library-template/commit/e57a3659b975b2c44d85e2bb4cbf5e395187343b)) | ||
|
||
|
||
### Bug Fixes | ||
|
||
* add default-branches to github action ([05982ee](https://github.com/IgnacioNMiranda/react-library-template/commit/05982ee9a5130f98390531ae698b745e86bc1af4)) | ||
* add permissions to github action ([08b9e4e](https://github.com/IgnacioNMiranda/react-library-template/commit/08b9e4e1ed08b244ab64f1160c8eed0bad67cf4c)) | ||
* another fix to github action ([6189dde](https://github.com/IgnacioNMiranda/react-library-template/commit/6189ddec2c71e8e35fa1c4af1fc2c888eaa19526)) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
MIT License | ||
|
||
Copyright (c) [2023] [Ignacio Andrés Miranda Figueroa] | ||
|
||
Permission is hereby granted, free of charge, to any person obtaining a copy | ||
of this software and associated documentation files (the "Software"), to deal | ||
in the Software without restriction, including without limitation the rights | ||
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell | ||
copies of the Software, and to permit persons to whom the Software is | ||
furnished to do so, subject to the following conditions: | ||
|
||
The above copyright notice and this permission notice shall be included in all | ||
copies or substantial portions of the Software. | ||
|
||
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR | ||
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, | ||
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE | ||
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER | ||
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, | ||
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE | ||
SOFTWARE. |
Oops, something went wrong.