mirror of
https://github.com/aleleba/create-react-component-library.git
synced 2026-11-19 04:09:34 -06:00
Merge pull request #56 from aleleba/PR-218661
PR-218661: Update dependencies to latest versions and bump to v1.4.3
This commit is contained in:
+2
-1
@@ -87,7 +87,8 @@ module.exports = {
|
||||
if (!Array.isArray(preset)) return preset;
|
||||
const [name, options] = preset;
|
||||
if (typeof name === 'string' && name.includes('@babel/preset-env') && options?.bugfixes !== undefined) {
|
||||
const { bugfixes: _removed, ...rest } = options;
|
||||
const rest = { ...options };
|
||||
delete rest.bugfixes;
|
||||
return [name, rest];
|
||||
}
|
||||
return preset;
|
||||
|
||||
@@ -2,6 +2,23 @@
|
||||
|
||||
This project aims to have a starter kit for creating a new React Library with storybook.
|
||||
|
||||
## Tech stack
|
||||
Current package version: **1.4.3** (Node 24 in CI).
|
||||
|
||||
| Tool | Version |
|
||||
| --- | --- |
|
||||
| React / React DOM | 19.3.1 |
|
||||
| TypeScript | 6.0.3 |
|
||||
| Webpack / webpack-cli | 5.112.0 / 7.2.3 |
|
||||
| Babel | 8.0.7 |
|
||||
| Storybook | 10.6.2 |
|
||||
| Jest / ts-jest | 30.5.2 / 29.4.15 |
|
||||
| Cypress | 16.2.0 |
|
||||
| ESLint / typescript-eslint | 9.39.5 / 8.71.2 |
|
||||
| Sass | 1.105.2 |
|
||||
|
||||
TypeScript and ESLint are kept on their current major on purpose: `ts-jest` and `typescript-eslint` do not support TypeScript 7 yet, and `eslint-plugin-react` does not support ESLint 10 yet.
|
||||
|
||||
## Setup
|
||||
To create a new project run in the terminal:
|
||||
```
|
||||
|
||||
Generated
+1616
-3899
File diff suppressed because it is too large
Load Diff
+34
-34
@@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "@aleleba/create-react-component-library",
|
||||
"version": "1.4.2",
|
||||
"version": "1.4.3",
|
||||
"description": "A starter kit for create a React component Library with storybook",
|
||||
"bin": "./bin/cli.js",
|
||||
"main": "dist/index.js",
|
||||
@@ -44,68 +44,68 @@
|
||||
},
|
||||
"homepage": "https://github.com/aleleba/create-react-component-library#readme",
|
||||
"devDependencies": {
|
||||
"@babel/core": "^8.0.1",
|
||||
"@babel/preset-env": "^8.0.2",
|
||||
"@babel/core": "^8.0.7",
|
||||
"@babel/preset-env": "^8.0.7",
|
||||
"@babel/preset-react": "^8.0.1",
|
||||
"@babel/preset-typescript": "^8.0.1",
|
||||
"@babel/register": "^8.0.1",
|
||||
"@babel/preset-typescript": "^8.0.7",
|
||||
"@babel/register": "^8.0.6",
|
||||
"@eslint/js": "^9.39.4",
|
||||
"@mdx-js/react": "^3.1.1",
|
||||
"@storybook/addon-docs": "^10.5.0",
|
||||
"@storybook/addon-links": "^10.5.0",
|
||||
"@storybook/addon-docs": "^10.6.2",
|
||||
"@storybook/addon-links": "^10.6.2",
|
||||
"@storybook/addon-styling-webpack": "^3.0.2",
|
||||
"@storybook/addon-webpack5-compiler-babel": "^4.0.1",
|
||||
"@storybook/cli": "^10.5.0",
|
||||
"@storybook/cli": "^10.6.2",
|
||||
"@storybook/preset-scss": "^1.0.3",
|
||||
"@storybook/react-webpack5": "^10.5.0",
|
||||
"@testing-library/dom": "^10.4.1",
|
||||
"@testing-library/jest-dom": "^6.9.1",
|
||||
"@testing-library/react": "^16.3.2",
|
||||
"@testing-library/user-event": "^14.6.1",
|
||||
"@storybook/react-webpack5": "^10.6.2",
|
||||
"@testing-library/dom": "^10.4.2",
|
||||
"@testing-library/jest-dom": "^7.0.1",
|
||||
"@testing-library/react": "^16.3.3",
|
||||
"@testing-library/user-event": "^14.6.8",
|
||||
"@types/jest": "^30.0.0",
|
||||
"@types/node": "^26.1.1",
|
||||
"@types/react": "^19.2.17",
|
||||
"@types/react-dom": "^19.2.3",
|
||||
"@types/node": "^26.6.5",
|
||||
"@types/react": "^19.3.0",
|
||||
"@types/react-dom": "^19.3.0",
|
||||
"@types/webpack": "^5.28.5",
|
||||
"babel-loader": "^10.1.1",
|
||||
"clean-webpack-plugin": "^4.0.0",
|
||||
"css-loader": "^7.1.4",
|
||||
"css-loader": "^7.1.5",
|
||||
"css-minimizer-webpack-plugin": "^8.0.0",
|
||||
"cypress": "^15.18.1",
|
||||
"dotenv": "^17.4.2",
|
||||
"cypress": "^16.2.0",
|
||||
"dotenv": "^18.0.8",
|
||||
"eslint": "^9.39.4",
|
||||
"eslint-plugin-react": "^7.37.5",
|
||||
"eslint-plugin-storybook": "^10.4.6",
|
||||
"eslint-plugin-storybook": "^10.6.2",
|
||||
"eslint-webpack-plugin": "^6.0.0",
|
||||
"globals": "^17.7.0",
|
||||
"html-webpack-plugin": "^5.6.7",
|
||||
"globals": "^17.13.0",
|
||||
"html-webpack-plugin": "^5.6.8",
|
||||
"identity-obj-proxy": "^3.0.0",
|
||||
"jest": "^30.4.2",
|
||||
"jest-environment-jsdom": "^30.4.1",
|
||||
"jest": "^30.5.2",
|
||||
"jest-environment-jsdom": "^30.5.2",
|
||||
"jest-fetch-mock": "^4.2.0",
|
||||
"mini-css-extract-plugin": "^2.10.2",
|
||||
"react": "^19.2.7",
|
||||
"react-dom": "^19.2.7",
|
||||
"react": "^19.3.1",
|
||||
"react-dom": "^19.3.1",
|
||||
"resolve-ts-aliases": "^1.0.1",
|
||||
"sass": "^1.101.0",
|
||||
"sass-loader": "^17.0.0",
|
||||
"storybook": "^10.5.0",
|
||||
"sass": "^1.105.2",
|
||||
"sass-loader": "^17.0.1",
|
||||
"storybook": "^10.6.2",
|
||||
"style-loader": "^4.0.0",
|
||||
"terser-webpack-plugin": "^5.6.1",
|
||||
"ts-jest": "^29.4.11",
|
||||
"ts-jest": "^29.4.15",
|
||||
"ts-loader": "^9.6.2",
|
||||
"ts-node": "^10.9.2",
|
||||
"tsconfig-paths-webpack-plugin": "^4.2.0",
|
||||
"typescript": "^6.0.3",
|
||||
"typescript-eslint": "^8.61.1",
|
||||
"typescript-eslint": "^8.71.2",
|
||||
"url-loader": "^4.1.1",
|
||||
"webpack": "^5.108.4",
|
||||
"webpack-cli": "^7.2.1",
|
||||
"webpack": "^5.112.0",
|
||||
"webpack-cli": "^7.2.3",
|
||||
"webpack-node-externals": "^3.0.0"
|
||||
},
|
||||
"overrides": {
|
||||
"ts-jest": {
|
||||
"@babel/core": "^8.0.1"
|
||||
"@babel/core": "^8.0.7"
|
||||
},
|
||||
"js-yaml": "^4.2.0"
|
||||
},
|
||||
|
||||
@@ -49,9 +49,9 @@ export default {
|
||||
test: /\.(ts|tsx)$/,
|
||||
exclude: /node_modules/,
|
||||
use: {
|
||||
loader: 'ts-loader',
|
||||
options: { configFile: 'tsconfig.cy.json' },
|
||||
},
|
||||
loader: 'ts-loader',
|
||||
options: { configFile: 'tsconfig.cy.json' },
|
||||
},
|
||||
},
|
||||
{
|
||||
test: /\.(js|jsx)$/,
|
||||
|
||||
Reference in New Issue
Block a user