Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

upgrade to react 19 #28

Merged
merged 3 commits into from
Dec 8, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
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
9 changes: 0 additions & 9 deletions .eslintignore

This file was deleted.

136 changes: 0 additions & 136 deletions .eslintrc.cjs

This file was deleted.

75 changes: 0 additions & 75 deletions .github/workflows/codeql.yml

This file was deleted.

10 changes: 7 additions & 3 deletions .github/workflows/continuous-integration.yml
Original file line number Diff line number Diff line change
@@ -1,21 +1,25 @@
name: React-PhoneNr-Input
name: react-rollup-boilerplate

on:
pull_request:
branches: [ main ]

concurrency:
group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }}
cancel-in-progress: true

jobs:
continuous-integration:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/setup-node@v3
with:
node-version: 16.x
node-version: 18.x

- name: Install dependencies
run: |
yarn install --frozen-lockfile
yarn install --immutable

- name: Run Continuous Integration
run: |
Expand Down
4 changes: 4 additions & 0 deletions .github/workflows/dependency-review.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,10 @@ on:
pull_request:
branches: [ main ]

concurrency:
group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }}
cancel-in-progress: true

permissions:
contents: read

Expand Down
25 changes: 25 additions & 0 deletions .github/workflows/deploy-storybook.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
name: deploy-storybook

on:
push:
branches:
- "main" # change to the branch you wish to deploy from

permissions:
contents: read
pages: write
id-token: write

jobs:
deploy:
environment:
name: github-pages
url: ${{ steps.build-publish.outputs.page_url }}
runs-on: ubuntu-latest
steps:
- id: build-publish
uses: bitovi/[email protected]
with:
path: storybook-static
install_command: yarn install --immutable
build_command: yarn run storybook:build
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
# dependencies
node_modules
.yarn/cache
.yarn/install-state.gz

# builds
build
Expand Down
1 change: 1 addition & 0 deletions .npmignore
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@
.travis.yml
.editorconfig
.eslint*
eslint.config.js
.yarnrc
.babel*
.stylelint*
Expand Down
40 changes: 17 additions & 23 deletions .storybook/main.ts
Original file line number Diff line number Diff line change
@@ -1,34 +1,28 @@
import { mergeConfig } from 'vite';
import svgr from 'vite-plugin-svgr';
import type { StorybookConfig } from '@storybook/react-vite';

const config: StorybookConfig = {
stories: [
'../src/**/*.stories.@(js|jsx|ts|tsx)',
'../src/**/*.story.@(js|jsx|ts|tsx)'
],
addons: [
'stories': ['../src/**/*.mdx', '../src/**/*.stories.@(js|jsx|mjs|ts|tsx)'],

'addons': [
'@storybook/addon-links',
'@storybook/addon-essentials',
'@storybook/addon-interactions',
{
name: '@storybook/addon-docs',
options: {
configureJSX: true,
babelOptions: {},
sourceLoaderOptions: null,
transcludeMarkdown: true
}
},
'@chromatic-com/storybook',
'@storybook/addon-interactions'
],
framework: {
name: '@storybook/react-vite',
options: {},

'framework': {
'name': '@storybook/react-vite',
'options': {},
},
'docs': {},
'typescript': {
'reactDocgen': 'react-docgen-typescript'
},
docs: {
autodocs: true,
'core': {
'disableTelemetry': true
},
core: {
disableTelemetry: true,
}
};

export default config;
5 changes: 3 additions & 2 deletions .storybook/preview.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,14 +2,15 @@ import type { Preview } from "@storybook/react";

const preview: Preview = {
parameters: {
actions: { argTypesRegex: "^on[A-Z].*" },
controls: {
matchers: {
color: /(background|color)$/i,
date: /Date$/,
date: /Date$/i,
},
},
},

tags: ['autodocs']
};

export default preview;
8 changes: 3 additions & 5 deletions .stylelintrc.cjs
Original file line number Diff line number Diff line change
Expand Up @@ -9,13 +9,11 @@ module.exports = {
// General / Sheet
'no-duplicate-at-import-rules': true,
'no-duplicate-selectors': true,
'selector-max-universal': 0,
'max-nesting-depth': 4,

'scss/at-import-no-partial-leading-underscore': true,
'selector-max-universal': 2,
'max-nesting-depth': 6,
'scss/load-no-partial-leading-underscore': true,

// Declaration block
'declaration-block-no-duplicate-properties': true,
'declaration-block-no-shorthand-property-overrides': true,

// Selector
Expand Down
Binary file removed .yarn/install-state.gz
Binary file not shown.
Loading
Loading