-
-
Notifications
You must be signed in to change notification settings - Fork 9.4k
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
Angular: Split @storybook/angular into three packages #29738
base: next
Are you sure you want to change the base?
Changes from all commits
127918c
ef902bf
d846f5b
5dbeff9
800c431
1abaeeb
f783b1e
d2f0499
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
export * from './error-handler'; | ||
export * from './run-compodoc'; |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,5 @@ | ||
export * from './client/index'; | ||
// For backwarts compatibility | ||
export * from '@storybook/angular-renderer'; | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. syntax: 'backwarts' is misspelled |
||
export * from './types'; | ||
|
||
/* | ||
|
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -4,5 +4,5 @@ | |
"noEmit": true, | ||
"strict": false | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. style: strict: false disables TypeScript's strict checks. Consider enabling strict mode for better type safety. |
||
}, | ||
"include": ["src/**/*", "src/**/*.json", "template/**/*"] | ||
"include": ["src/**/*", "src/**/*.json"] | ||
} |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
{ | ||
"extends": "../../tsconfig.json", | ||
"compileOnSave": false, | ||
"compilerOptions": { | ||
"target": "ES2020", | ||
"module": "CommonJS", | ||
"noEmit": false, | ||
"lib": ["es2020", "dom", "dom.iterable"], | ||
"experimentalDecorators": true, | ||
"emitDecoratorMetadata": true, | ||
"declaration": true, | ||
"outDir": "dist", | ||
"types": ["node"], | ||
"skipLibCheck": true, | ||
"resolveJsonModule": true, | ||
"allowJs": true, | ||
"pretty": true, | ||
"noErrorTruncation": true, | ||
"listEmittedFiles": false, | ||
"noUnusedLocals": false, | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. style: noUnusedLocals is set to false - consider enabling this for better code quality |
||
"baseUrl": ".", | ||
"paths": { | ||
"storybook/internal/*": ["../../lib/cli/core/*"] | ||
} | ||
}, | ||
"include": ["src/**/*", "src/**/*.json"] | ||
} |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,8 @@ | ||
{ | ||
"extends": "../../tsconfig.json", | ||
"compilerOptions": {}, | ||
"include": ["src/**/*"] | ||
"extends": "./tsconfig.build.json", | ||
"compilerOptions": { | ||
"noEmit": true, | ||
"strict": false | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. style: disabling strict type checking may allow type errors to slip through - consider enabling strict mode for better type safety |
||
}, | ||
"include": ["src/**/*", "src/**/*.json"] | ||
} |
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -116,6 +116,7 @@ | |
"@storybook/addon-toolbars": "workspace:*", | ||
"@storybook/addon-viewport": "workspace:*", | ||
"@storybook/angular": "workspace:*", | ||
"@storybook/angular-renderer": "workspace:*", | ||
"@storybook/bench": "next", | ||
"@storybook/blocks": "workspace:*", | ||
"@storybook/builder-vite": "workspace:*", | ||
|
@@ -200,6 +201,7 @@ | |
"happy-dom": "^14.12.0", | ||
"http-server": "^14.1.1", | ||
"husky": "^4.3.7", | ||
"jiti": "^2.4.1", | ||
"lint-staged": "^13.2.2", | ||
"mock-require": "^3.0.3", | ||
"nx": "20.2.2", | ||
|
@@ -225,6 +227,9 @@ | |
"vitest": "^2.1.3", | ||
"wait-on": "^7.0.1" | ||
}, | ||
"devDependencies": { | ||
"rimraf": "^6.0.1" | ||
}, | ||
Comment on lines
+230
to
+232
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. logic: rimraf should be in dependencies since it's used in build scripts, not devDependencies |
||
"dependenciesMeta": { | ||
"ejs": { | ||
"built": false | ||
|
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
{ | ||
"rules": { | ||
"@typescript-eslint/consistent-type-imports": [ | ||
"error", | ||
{ "prefer": "no-type-imports", "disallowTypeAnnotations": false } | ||
] | ||
} | ||
} |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
# Storybook Angular renderer |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
logic: original type compatibility fix for Angular <17.2 was removed - this could break builds for users on older Angular versions