Skip to content

Commit

Permalink
Merge pull request #112 from perimetre/feature/Update-Storybook-and-d…
Browse files Browse the repository at this point in the history
…ependencies_CU-86791wyem

upgrade node version to 18
  • Loading branch information
AssisrMatheus authored Oct 31, 2023
2 parents d6bcf8b + 5604199 commit 1e24ac9
Show file tree
Hide file tree
Showing 151 changed files with 20,377 additions and 50,510 deletions.
2 changes: 0 additions & 2 deletions .eslintrc.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,7 @@ module.exports = {
'plugin:jsdoc/recommended',
'plugin:jsx-a11y/recommended',
'plugin:@typescript-eslint/recommended', // Uses the recommended rules from the @typescript-eslint/eslint-plugin
'prettier/@typescript-eslint', // Uses eslint-config-prettier to disable ESLint rules from @typescript-eslint/eslint-plugin that would conflict with prettier
'plugin:react/recommended',
'prettier/react',
'plugin:react-hooks/recommended',
'plugin:storybook/recommended',
'plugin:prettier/recommended' // Enables eslint-plugin-prettier and displays prettier errors as ESLint errors. Make sure this is always the last configuration in the extends array.
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/publish-package.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ jobs:
- uses: actions/checkout@v2
- uses: actions/setup-node@v2
with:
node-version: '16.x'
node-version: '18.x'
check-latest: true
registry-url: 'https://npm.pkg.github.com'
- run: npm ci
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/push-page.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ jobs:
- uses: actions/checkout@v2
- uses: actions/setup-node@v2
with:
node-version: '16.x'
node-version: '18.x'
check-latest: true
registry-url: 'https://npm.pkg.github.com'
- run: npm ci
Expand Down
4 changes: 4 additions & 0 deletions .husky/commit-msg
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
#!/usr/bin/env sh
. "$(dirname -- "$0")/_/husky.sh"

npx --no -- commitlint --edit "$1"
4 changes: 4 additions & 0 deletions .husky/pre-commit
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
#!/usr/bin/env sh
. "$(dirname -- "$0")/_/husky.sh"

npm run check-commit
6 changes: 0 additions & 6 deletions .huskyrc

This file was deleted.

2 changes: 1 addition & 1 deletion .nvmrc
Original file line number Diff line number Diff line change
@@ -1 +1 @@
16
18.18.2
60 changes: 43 additions & 17 deletions .storybook/main.js
Original file line number Diff line number Diff line change
@@ -1,29 +1,55 @@
module.exports = {
stories: ['../src/**/*.stories.mdx', '../src/**/*.stories.@(js|jsx|ts|tsx)'],
staticDirs: ['../public'],

addons: [
'@storybook/addon-links',
'@storybook/addon-essentials',
'storybook-addon-jsx',
'@storybook/addon-a11y',
'@storybook/addon-styling-webpack',
{
name: '@storybook/addon-postcss',
name: '@storybook/addon-styling-webpack',

options: {
postcssLoaderOptions: {
implementation: require('postcss')
}
rules: [
{
test: /\.css$/,
sideEffects: true,
use: [
require.resolve('style-loader'),
{
loader: require.resolve('css-loader'),
options: {
importLoaders: 1
}
},
{
loader: require.resolve('postcss-loader'),
options: {
implementation: require.resolve('postcss')
}
}
]
}
]
}
},
'storybook-addon-jsx',
'@storybook/addon-a11y',
'@whitespace/storybook-addon-html'
}
],
core: {
// builder: '@storybook/builder-vite'
builder: 'webpack5'

// babel: async (options) => ({
// ...options,
// // If updating the plugin list make sure you update .babelrc as well, and vice versa
// // Macros is not needed here because styled components now includes it too
// plugins: [...options.plugins, 'babel-plugin-styled-components']
// }),

framework: {
name: '@storybook/nextjs',
options: {}
},
babel: async (options) => ({
...options,
// If updating the plugin list make sure you update .babelrc as well, and vice versa
// Macros is not needed here because styled components now includes it too
plugins: [...options.plugins, 'babel-plugin-styled-components']
})

docs: {
autodocs: true
}
};
4 changes: 0 additions & 4 deletions .storybook/preview.js
Original file line number Diff line number Diff line change
@@ -1,9 +1,5 @@
import { addDecorator } from '@storybook/react';
import { jsxDecorator } from 'storybook-addon-jsx';
import '../src/styles/globals.css';

addDecorator(jsxDecorator);

export const parameters = {
actions: { argTypesRegex: '^on[A-Z].*' }
};
11 changes: 11 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,17 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0

### Fixed

## [11.0.0] 2023-10-31

### **Breaking changes**

- Updated from node `16` to `18`
- Some ui lib components had to add breaking changes due to new storybook version

### Changes

- Updated storybook libraries, and its dependencies

## [10.5.1] 2023-09-18

### Fixed
Expand Down
Loading

0 comments on commit 1e24ac9

Please sign in to comment.