Skip to content

Commit b540ffd

Browse files
Chore/update ng 20 (#590)
* chore: prepare ng update * chore: update ng and storybook * chore: mini src * chore: scss and cdk upgrade * fix: namespace error * chore: no more check selector-no-redundant-nesting-selector * chore: mod workflow * chore: mod publish version * chore: use script exec lin * chore: use npm exec jest * chore: update jest and prepare * chore: update git ignore * chore: update angular cli * chore: update files * chore: update core and cli 21 * chore: update storybook * chore: up angular cdk * chore: update unit test * fix: missing table import * fix: add missing var namespace prefix * fix: cdk layer use origin no popover * feat: export theme scss * chore: add changeset --------- Co-authored-by: fengtianze <fengtianze@icloud.com>
1 parent a3d18ce commit b540ffd

247 files changed

Lines changed: 31264 additions & 20817 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

.changeset/strong-lions-upgrade.md

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
---
2+
"@alauda/ui": major
3+
---
4+
5+
feat: upgrade Angular toolchain and Sass theme exports
6+
7+
BREAKING CHANGE: The main branch now targets the Angular 20+ toolchain and updates Sass theme exports and build outputs. Applications that still depend on the v9 Sass import paths, theme structure, or Angular 19-compatible build setup should stay on the `release/v9` maintenance branch until they complete the migration.

.github/workflows/release.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,9 @@ jobs:
2929
# This makes Actions fetch all Git history so that Changesets can generate changelogs with the correct commits
3030
fetch-depth: 0
3131

32+
- name: Corepack Enable
33+
run: corepack enable
34+
3235
- name: Setup Node.js
3336
uses: actions/setup-node@v4
3437
with:

.github/workflows/stories.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,9 @@ jobs:
1212
- name: Checkout Repo
1313
uses: actions/checkout@v4
1414

15+
- name: Corepack Enable
16+
run: corepack enable
17+
1518
- name: Setup Node.js
1619
uses: actions/setup-node@v4
1720
with:

.github/workflows/test.yml

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,9 @@ jobs:
1010
- name: Checkout Repo
1111
uses: actions/checkout@v4
1212

13+
- name: Corepack Enable
14+
run: corepack enable
15+
1316
- name: Setup Node.js
1417
uses: actions/setup-node@v4
1518
with:
@@ -23,4 +26,4 @@ jobs:
2326
run: yarn lint
2427

2528
- name: Run test
26-
run: yarn test:ci
29+
run: npm run test:ci

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,3 +12,4 @@ reports
1212
/documentation.json
1313
/ng-package.debug.json
1414
/report.*.json
15+
.yarn/install-state.gz

.storybook/global.scss

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
1-
@import './reset-browser';
2-
@import '../src/theme/style.scss';
1+
@use './reset-browser' as *;
2+
@use '../src/theme/style.scss' as *;

.storybook/main.ts

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,6 @@ const config: StorybookConfig = {
55
stories: ['../stories/**/*.mdx', '../stories/**/*.stories.@(js|jsx|ts|tsx)'],
66
addons: [
77
'@storybook/addon-links',
8-
'@storybook/addon-essentials',
9-
'@storybook/addon-interactions',
108
{
119
name: '@storybook/addon-docs',
1210
options: {

.storybook/manager.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
1-
import { addons } from '@storybook/manager-api';
2-
import { create } from '@storybook/theming';
1+
import { addons } from 'storybook/manager-api';
2+
import { create } from 'storybook/theming';
33

44
addons.setConfig({
55
panelPosition: 'right',

.storybook/preview.ts

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,9 @@
11
import { setCompodocJson } from '@storybook/addon-docs/angular';
22
import type { Preview } from '@storybook/angular';
3-
import { addons } from '@storybook/manager-api';
3+
import { addons } from 'storybook/manager-api';
44

55
import docJson from '../documentation.json';
66

7-
// eslint-disable-next-line import/no-webpack-loader-syntax, import/no-unresolved
87
import '!style-loader!css-loader!sass-loader!./global.scss';
98

109
setCompodocJson(docJson);

.storybook/reset-browser.scss

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
1-
@import '../src/theme/var';
2-
@import '../src/theme/mixin';
1+
@use '../src/theme/var' as var;
2+
@use '../src/theme/mixin' as mixin;
33

44
* {
55
&,
@@ -55,8 +55,8 @@ body {
5555
justify-content: center;
5656
min-width: 100%;
5757
min-height: 100%;
58-
color: use-text-color(main);
59-
background-color: use-rgb(n-10);
58+
color: var.use-text-color(main);
59+
background-color: var.use-rgb(n-10);
6060
font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'PingFang SC',
6161
Arial, 'Microsoft YaHei', sans-serif;
6262
font-size: 14px;
@@ -71,7 +71,7 @@ code {
7171
font-size: 14px;
7272
line-height: 20px;
7373
padding: 12px;
74-
background: use-rgb(n-9);
74+
background: var.use-rgb(n-9);
7575
border-radius: 2px;
7676

7777
&[ngCodeColorize] {
@@ -83,8 +83,8 @@ input:-webkit-autofill,
8383
input:-webkit-autofill:hover,
8484
input:-webkit-autofill:focus,
8585
input:-webkit-autofill:active {
86-
-webkit-text-fill-color: #{use-text-color(main)} !important;
87-
box-shadow: 0 0 0 3000px #{use-rgb(main-bg)} inset !important;
86+
-webkit-text-fill-color: #{var.use-text-color(main)} !important;
87+
box-shadow: 0 0 0 3000px #{var.use-rgb(main-bg)} inset !important;
8888
}
8989

9090
[hidden] {

0 commit comments

Comments
 (0)