Skip to content

Commit 22d3878

Browse files
authored
build: correct css not generated (#1811)
1 parent ff7cf38 commit 22d3878

File tree

5 files changed

+8
-31
lines changed

5 files changed

+8
-31
lines changed

packages/abc/st/test/st.spec.ts

Lines changed: 0 additions & 25 deletions
Original file line numberDiff line numberDiff line change
@@ -750,31 +750,6 @@ describe('abc: st', () => {
750750
.asyncEnd();
751751
}));
752752
});
753-
// TODO: 当前版本自动设置,无须参与计算
754-
xdescribe('[fixed]', () => {
755-
it('should be fixed left column', fakeAsync(() => {
756-
page.updateColumn([
757-
{ title: '1', index: 'id', fixed: 'left', width: '100px' },
758-
{ title: '2', index: 'id', fixed: 'left', width: '100px' },
759-
{ title: '3', index: 'id', fixed: 'left', width: '100px' }
760-
]);
761-
expect(page.getCell(1, 1).style.left).toBe('0px');
762-
expect(page.getCell(1, 2).style.left).toBe('100px');
763-
expect(page.getCell(1, 3).style.left).toBe('200px');
764-
page.asyncEnd();
765-
}));
766-
it('should be fixed right column', fakeAsync(() => {
767-
page.updateColumn([
768-
{ title: '1', index: 'id', fixed: 'right', width: '100px' },
769-
{ title: '2', index: 'id', fixed: 'right', width: '100px' },
770-
{ title: '3', index: 'id', fixed: 'right', width: '100px' }
771-
]);
772-
expect(page.getCell(1, 1).style.right).toBe('200px');
773-
expect(page.getCell(1, 2).style.right).toBe('100px');
774-
expect(page.getCell(1, 3).style.right).toBe('0px');
775-
page.asyncEnd();
776-
}));
777-
});
778753
describe('[Mulit Headers]', () => {
779754
it('should be working', fakeAsync(() => {
780755
page.updateColumn([

scripts/build/generate-css.js

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,8 +21,7 @@ async function genCss(name, min) {
2121
less.render
2222
.call(less, content, {
2323
plugins,
24-
paths: ['node_modules/'],
25-
javascriptEnabled: true,
24+
paths: [path.join(__dirname, '../../node_modules/')]
2625
})
2726
.then(({ css }) => {
2827
const savePath = path.join(ROOT_DIR, `theme/${name}${min ? '.min' : ''}.css`);

scripts/ci/build-artifacts-site.sh

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -102,7 +102,10 @@ echo "https://${ACCESS_TOKEN}:@github.com" > .git/credentials
102102

103103
if [[ $(git ls-remote origin "refs/tags/${buildTagName}") ]]; then
104104
echo "removed tag because tag is already published"
105+
git tag -d ${buildTagName}
106+
git push --delete origin ${buildTagName}
105107
git push origin :refs/tags/${buildTagName}
108+
sleep 2
106109
fi
107110

108111
echo "Git configuration has been updated to match the last commit author. Publishing now.."

scripts/ci/build-artifacts.sh

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -92,9 +92,10 @@ echo "https://${ACCESS_TOKEN}:@github.com" > .git/credentials
9292

9393
if [[ $(git ls-remote origin "refs/tags/${buildTagName}") ]]; then
9494
echo "removed tag because tag is already published"
95+
git tag -d ${buildTagName}
9596
git push --delete origin ${buildTagName}
9697
git push origin :refs/tags/${buildTagName}
97-
sleep 5
98+
sleep 2
9899
fi
99100

100101
echo "Git configuration has been updated to match the last commit author. Publishing now.."

scripts/ci/build-delon.sh

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -42,9 +42,8 @@ buildLess() {
4242
node ./scripts/build/copy-less.js
4343
echo 'fix zorro path...'
4444
node ./scripts/build/fix-zorro-path.js
45-
# TODO: https://github.com/NG-ZORRO/ng-zorro-antd/issues/8618
46-
# echo 'build full css...'
47-
# node ./scripts/build/generate-css.js
45+
echo 'build full css...'
46+
node ./scripts/build/generate-css.js
4847
}
4948

5049
addBanners() {

0 commit comments

Comments
 (0)