Skip to content

Commit 72f795b

Browse files
kroederfge-aeb
authored andcommitted
chore: update Angular (20), storybook (9), node (22), use npm instead of yarn
1 parent 6c0a049 commit 72f795b

File tree

31 files changed

+28378
-16936
lines changed

31 files changed

+28378
-16936
lines changed

.eslintrc.json

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -24,12 +24,18 @@
2424
{
2525
"files": ["*.ts", "*.tsx"],
2626
"extends": ["plugin:@nx/typescript"],
27-
"rules": {}
27+
"rules": {
28+
"@typescript-eslint/no-extra-semi": "error",
29+
"no-extra-semi": "off"
30+
}
2831
},
2932
{
3033
"files": ["*.js", "*.jsx"],
3134
"extends": ["plugin:@nx/javascript"],
32-
"rules": {}
35+
"rules": {
36+
"@typescript-eslint/no-extra-semi": "error",
37+
"no-extra-semi": "off"
38+
}
3339
}
3440
],
3541
"extends": ["plugin:storybook/recommended"]

.gitattributes

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1 @@
1-
/.yarn/** linguist-vendored
2-
/.yarn/releases/* binary
3-
/.yarn/plugins/**/* binary
4-
/.pnp.* binary linguist-generated
1+

.gitignore

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,4 +43,7 @@ Thumbs.db
4343
.idea
4444
.husky/_/*
4545

46-
.nx/cache
46+
.nx/cache
47+
.nx/workspace-data
48+
.cursor/rules/nx-rules.mdc
49+
.github/instructions/nx.instructions.md

.husky/_/husky.sh

Lines changed: 6 additions & 33 deletions
Original file line numberDiff line numberDiff line change
@@ -1,36 +1,9 @@
1-
#!/usr/bin/env sh
2-
if [ -z "$husky_skip_init" ]; then
3-
debug () {
4-
if [ "$HUSKY_DEBUG" = "1" ]; then
5-
echo "husky (debug) - $1"
6-
fi
7-
}
8-
9-
readonly hook_name="$(basename -- "$0")"
10-
debug "starting $hook_name..."
11-
12-
if [ "$HUSKY" = "0" ]; then
13-
debug "HUSKY env variable is set to 0, skipping hook"
14-
exit 0
15-
fi
1+
echo "husky - DEPRECATED
162
17-
if [ -f ~/.huskyrc ]; then
18-
debug "sourcing ~/.huskyrc"
19-
. ~/.huskyrc
20-
fi
3+
Please remove the following two lines from $0:
214
22-
readonly husky_skip_init=1
23-
export husky_skip_init
24-
sh -e "$0" "$@"
25-
exitCode="$?"
26-
27-
if [ $exitCode != 0 ]; then
28-
echo "husky - $hook_name hook exited with code $exitCode (error)"
29-
fi
30-
31-
if [ $exitCode = 127 ]; then
32-
echo "husky - command not found in PATH=$PATH"
33-
fi
5+
#!/usr/bin/env sh
6+
. \"\$(dirname -- \"\$0\")/_/husky.sh\"
347
35-
exit $exitCode
36-
fi
8+
They WILL FAIL in v10.0.0
9+
"

.prettierignore

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
dist
22
.angular/cache
33

4-
/.nx/cache
4+
/.nx/cache
5+
/.nx/workspace-data

.storybook/main.js

Lines changed: 0 additions & 10 deletions
This file was deleted.

.storybook/tsconfig.json

Lines changed: 0 additions & 14 deletions
This file was deleted.

.yarnclean

Lines changed: 0 additions & 1 deletion
This file was deleted.

.yarnrc.yml

Lines changed: 0 additions & 7 deletions
This file was deleted.

CONTRIBUTION.md

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,10 +4,11 @@
44
55
## Starting the playground
66

7-
1) Run `yarn`
8-
2) Run `yarn start-demo`
7+
1. Run `npm i`
8+
2. Run `npm run build`
9+
3. Run `npm run start-demo`
910

1011
## Project structure
1112

1213
- `packages/angular-demo` contains the playground. The stories and angular components can be used to test bugs or features.
13-
- `packages/storybook-webpack-angular-types-plugin` contains the webpack plugin and the type extractor for `<ArgsTable />`
14+
- `packages/storybook-webpack-angular-types-plugin` contains the webpack plugin and the type extractor for `<ArgTypes />`

0 commit comments

Comments
 (0)