Skip to content

Commit c089826

Browse files
authored
chore: migrate to nx (#9871)
1 parent 81efd98 commit c089826

51 files changed

Lines changed: 24849 additions & 15430 deletions

Some content is hidden

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

.claude/NG-ZORRO.md

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -50,11 +50,11 @@ ng-zorro-antd/
5050
│ └── utils/
5151
├── scripts/ # Build and utility scripts
5252
│ ├── build/
53-
│ ├── gulp/
5453
│ ├── prerender/
5554
│ ├── release/
5655
│ ├── schematics/
57-
│ └── site/
56+
│ ├── site/
57+
│ └── tasks/ # Nx task entry points (run with tsx)
5858
├── .editorconfig # Editor configuration
5959
├── .gitignore # Git ignore rules
6060
├── .lintstagedrc # Lint-staged configuration
@@ -63,15 +63,14 @@ ng-zorro-antd/
6363
├── .prettierignore # Prettier ignore rules
6464
├── .prettierrc.js # Prettier configuration
6565
├── .stylelintrc.json # Stylelint configuration
66-
├── angular.json # Angular workspace configuration
66+
├── angular.json # Workspace schematic defaults (projects live in project.json files)
6767
├── azure-pipelines.yml # Azure DevOps pipeline
6868
├── build-config.js # Build configuration
6969
├── CHANGELOG.md # Version changelog
7070
├── CODE_OF_CONDUCT.md # Code of conduct
7171
├── commitlint.config.js # Commit message linting
7272
├── CONTRIBUTING.md # Contribution guidelines
7373
├── eslint.config.mjs # ESLint configuration
74-
├── gulpfile.js # Gulp build tasks
7574
├── LICENSE # MIT License
7675
├── logo.svg # Project logo
7776
├── ngsw-config.json # Angular service worker config

angular.json

Lines changed: 1 addition & 164 deletions
Original file line numberDiff line numberDiff line change
@@ -1,170 +1,7 @@
11
{
22
"$schema": "./node_modules/@angular/cli/lib/config/schema.json",
33
"version": 1,
4-
"newProjectRoot": "projects",
5-
"projects": {
6-
"ng-zorro-antd-doc": {
7-
"root": "",
8-
"sourceRoot": "site",
9-
"projectType": "application",
10-
"architect": {
11-
"build": {
12-
"builder": "@angular/build:application",
13-
"options": {
14-
"outputPath": "dist",
15-
"index": "site/index.html",
16-
"browser": "site/main.ts",
17-
"server": "site/main.server.ts",
18-
"tsConfig": "site/tsconfig.app.json",
19-
"serviceWorker": "ngsw-config.json",
20-
"prerender": true,
21-
"ssr": {
22-
"entry": "site/server.ts"
23-
},
24-
"assets": [
25-
"site/assets",
26-
"site/manifest.json",
27-
"site/favicon.ico",
28-
"site/404.html",
29-
"site/google854eb8b183564acb.html",
30-
"site/robots.txt",
31-
"site/llms.txt",
32-
"site/llms-full.txt",
33-
"site/llms-full-cn.txt",
34-
{
35-
"glob": "**/*.md",
36-
"input": "site/components",
37-
"output": "/components/"
38-
},
39-
{
40-
"glob": "**/*.md",
41-
"input": "site/docs",
42-
"output": "/docs/"
43-
},
44-
{
45-
"glob": "**/*",
46-
"input": "node_modules/@ant-design/icons-angular/src/inline-svg/",
47-
"output": "/assets/"
48-
},
49-
{
50-
"glob": "**/*",
51-
"input": "node_modules/monaco-editor/min/vs",
52-
"output": "/assets/vs/"
53-
}
54-
],
55-
"styles": [
56-
"site/styles.less"
57-
],
58-
"allowedCommonJsDependencies": [
59-
"@ant-design/colors",
60-
"cron-parser"
61-
]
62-
},
63-
"configurations": {
64-
"production": {
65-
"fileReplacements": [
66-
{
67-
"replace": "site/environments/environment.ts",
68-
"with": "site/environments/environment.prod.ts"
69-
}
70-
],
71-
"outputHashing": "all"
72-
},
73-
"development": {
74-
"optimization": false,
75-
"extractLicenses": false,
76-
"sourceMap": true,
77-
"namedChunks": true
78-
}
79-
},
80-
"defaultConfiguration": "production"
81-
},
82-
"serve": {
83-
"builder": "@angular/build:dev-server",
84-
"options": {
85-
"buildTarget": "ng-zorro-antd-doc:build"
86-
},
87-
"configurations": {
88-
"production": {
89-
"buildTarget": "ng-zorro-antd-doc:build:production"
90-
},
91-
"development": {
92-
"buildTarget": "ng-zorro-antd-doc:build:development"
93-
}
94-
},
95-
"defaultConfiguration": "development"
96-
}
97-
}
98-
},
99-
"ng-zorro-antd-lib": {
100-
"root": "components",
101-
"sourceRoot": "components",
102-
"projectType": "library",
103-
"prefix": "nz",
104-
"architect": {
105-
"build": {
106-
"builder": "@angular/build:ng-packagr",
107-
"options": {
108-
"project": "components/ng-package.json"
109-
},
110-
"configurations": {
111-
"production": {
112-
"tsConfig": "components/tsconfig.lib.prod.json"
113-
},
114-
"development": {
115-
"tsConfig": "components/tsconfig.lib.json"
116-
}
117-
},
118-
"defaultConfiguration": "production"
119-
},
120-
"test": {
121-
"builder": "@angular/build:unit-test",
122-
"options": {
123-
"buildTarget": "ng-zorro-antd-lib:build:development",
124-
"runner": "vitest",
125-
"runnerConfig": "components/vitest.config.mjs",
126-
"browsers": [
127-
"ChromiumHeadless"
128-
],
129-
"browserViewport": "1000x1000",
130-
"coverage": true,
131-
"coverageReporters": [
132-
"html",
133-
"text-summary",
134-
"lcovonly",
135-
"cobertura"
136-
],
137-
"reporters": [
138-
"default",
139-
[
140-
"junit",
141-
{
142-
"outputFile": "junit/TESTS-vitest.xml"
143-
}
144-
]
145-
],
146-
"setupFiles": [
147-
"components/vitest-setup.ts"
148-
],
149-
"tsConfig": "components/tsconfig.spec.json",
150-
"include": [
151-
"**/*.spec.ts"
152-
]
153-
}
154-
},
155-
"lint": {
156-
"builder": "@angular-eslint/builder:lint",
157-
"options": {
158-
"fix": true,
159-
"lintFilePatterns": [
160-
"components/**/*.ts",
161-
"components/**/*.html"
162-
]
163-
}
164-
}
165-
}
166-
}
167-
},
4+
"projects": {},
1685
"schematics": {
1696
"@schematics/angular:component": {
1707
"prefix": "app",

components/alert/style/index.less

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
display: flex;
1111
align-items: center;
1212
padding: @alert-padding-vertical @alert-padding-horizontal;
13-
word-wrap: break-word;
13+
overflow-wrap: break-word;
1414
border-radius: @border-radius-base;
1515

1616
&-content {

components/anchor/style/patch.less

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -8,10 +8,10 @@ nz-link {
88
&-wrapper {
99
// This is a feature of Antd 5, so we need add in the patch file.
1010
&-horizontal {
11-
margin-left: unset;
12-
padding-left: unset;
1311
margin-bottom: -4px;
12+
margin-left: unset;
1413
padding-bottom: 4px;
14+
padding-left: unset;
1515

1616
.ant-anchor {
1717
display: flex;
@@ -22,7 +22,7 @@ nz-link {
2222
width: 100%;
2323
height: unset;
2424

25-
&:before {
25+
&::before {
2626
width: 100%;
2727
height: 2px;
2828
}

components/color-picker/style/index.less

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -352,7 +352,6 @@
352352
}
353353

354354
// For bright backgrounds, use dark tick for contrast
355-
&-color-bright&-color-checked::after,
356355
&-color-checked&-color-bright::after {
357356
border-color: rgba(0, 0, 0, 0.88);
358357
}

components/comment/style/index.less

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@
3030
flex: 1 1 auto;
3131
min-width: 1px;
3232
font-size: @comment-font-size-base;
33-
word-wrap: break-word;
33+
overflow-wrap: break-word;
3434

3535
&-author {
3636
display: flex;

components/core/time/native-adapter.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -468,7 +468,7 @@ export class NativeDateAdapter extends NzDateAdapter<Date, string> {
468468
};
469469
const tokens = Object.keys(tokenPatterns).sort((a, b) => b.length - a.length);
470470
let source = '';
471-
for (let i = 0; i < formatStr.length; ) {
471+
for (let i = 0; i < formatStr.length;) {
472472
if (formatStr[i] === '[') {
473473
const end = formatStr.indexOf(']', i + 1);
474474
const literal = end === -1 ? formatStr.slice(i + 1) : formatStr.slice(i + 1, end);
@@ -590,7 +590,7 @@ export class NativeDateAdapter extends NzDateAdapter<Date, string> {
590590
const tokens = Object.keys(tokenValues).sort((a, b) => b.length - a.length);
591591
let result = '';
592592

593-
for (let i = 0; i < formatStr.length; ) {
593+
for (let i = 0; i < formatStr.length;) {
594594
if (formatStr[i] === '[') {
595595
const end = formatStr.indexOf(']', i + 1);
596596
result += end === -1 ? formatStr.slice(i + 1) : formatStr.slice(i + 1, end);

components/descriptions/style/index.less

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -87,7 +87,6 @@
8787
color: @text-color;
8888
font-size: @font-size-base;
8989
line-height: @line-height-base;
90-
word-break: break-word;
9190
overflow-wrap: break-word;
9291
}
9392

components/mention/style/index.less

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,8 +53,8 @@
5353
white-space: inherit;
5454
text-align: inherit;
5555
vertical-align: top;
56-
word-wrap: break-word;
5756
word-break: inherit;
57+
overflow-wrap: break-word;
5858
tab-size: inherit;
5959
}
6060

components/modal/style/modal.less

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@
2121
font-weight: 500;
2222
font-size: @modal-header-title-font-size;
2323
line-height: @modal-header-title-line-height;
24-
word-wrap: break-word;
24+
overflow-wrap: break-word;
2525
}
2626

2727
&-content {
@@ -82,7 +82,7 @@
8282
padding: @modal-body-padding;
8383
font-size: @font-size-base;
8484
line-height: @line-height-base;
85-
word-wrap: break-word;
85+
overflow-wrap: break-word;
8686
}
8787

8888
&-footer {

0 commit comments

Comments
 (0)