Skip to content

Commit

Permalink
build: correct css not generated (#1811)
Browse files Browse the repository at this point in the history
  • Loading branch information
cipchk authored Jul 4, 2024
1 parent ff7cf38 commit 22d3878
Show file tree
Hide file tree
Showing 5 changed files with 8 additions and 31 deletions.
25 changes: 0 additions & 25 deletions packages/abc/st/test/st.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -750,31 +750,6 @@ describe('abc: st', () => {
.asyncEnd();
}));
});
// TODO: 当前版本自动设置,无须参与计算
xdescribe('[fixed]', () => {
it('should be fixed left column', fakeAsync(() => {
page.updateColumn([
{ title: '1', index: 'id', fixed: 'left', width: '100px' },
{ title: '2', index: 'id', fixed: 'left', width: '100px' },
{ title: '3', index: 'id', fixed: 'left', width: '100px' }
]);
expect(page.getCell(1, 1).style.left).toBe('0px');
expect(page.getCell(1, 2).style.left).toBe('100px');
expect(page.getCell(1, 3).style.left).toBe('200px');
page.asyncEnd();
}));
it('should be fixed right column', fakeAsync(() => {
page.updateColumn([
{ title: '1', index: 'id', fixed: 'right', width: '100px' },
{ title: '2', index: 'id', fixed: 'right', width: '100px' },
{ title: '3', index: 'id', fixed: 'right', width: '100px' }
]);
expect(page.getCell(1, 1).style.right).toBe('200px');
expect(page.getCell(1, 2).style.right).toBe('100px');
expect(page.getCell(1, 3).style.right).toBe('0px');
page.asyncEnd();
}));
});
describe('[Mulit Headers]', () => {
it('should be working', fakeAsync(() => {
page.updateColumn([
Expand Down
3 changes: 1 addition & 2 deletions scripts/build/generate-css.js
Original file line number Diff line number Diff line change
Expand Up @@ -21,8 +21,7 @@ async function genCss(name, min) {
less.render
.call(less, content, {
plugins,
paths: ['node_modules/'],
javascriptEnabled: true,
paths: [path.join(__dirname, '../../node_modules/')]
})
.then(({ css }) => {
const savePath = path.join(ROOT_DIR, `theme/${name}${min ? '.min' : ''}.css`);
Expand Down
3 changes: 3 additions & 0 deletions scripts/ci/build-artifacts-site.sh
Original file line number Diff line number Diff line change
Expand Up @@ -102,7 +102,10 @@ echo "https://${ACCESS_TOKEN}:@github.com" > .git/credentials

if [[ $(git ls-remote origin "refs/tags/${buildTagName}") ]]; then
echo "removed tag because tag is already published"
git tag -d ${buildTagName}
git push --delete origin ${buildTagName}
git push origin :refs/tags/${buildTagName}
sleep 2
fi

echo "Git configuration has been updated to match the last commit author. Publishing now.."
Expand Down
3 changes: 2 additions & 1 deletion scripts/ci/build-artifacts.sh
Original file line number Diff line number Diff line change
Expand Up @@ -92,9 +92,10 @@ echo "https://${ACCESS_TOKEN}:@github.com" > .git/credentials

if [[ $(git ls-remote origin "refs/tags/${buildTagName}") ]]; then
echo "removed tag because tag is already published"
git tag -d ${buildTagName}
git push --delete origin ${buildTagName}
git push origin :refs/tags/${buildTagName}
sleep 5
sleep 2
fi

echo "Git configuration has been updated to match the last commit author. Publishing now.."
Expand Down
5 changes: 2 additions & 3 deletions scripts/ci/build-delon.sh
Original file line number Diff line number Diff line change
Expand Up @@ -42,9 +42,8 @@ buildLess() {
node ./scripts/build/copy-less.js
echo 'fix zorro path...'
node ./scripts/build/fix-zorro-path.js
# TODO: https://github.com/NG-ZORRO/ng-zorro-antd/issues/8618
# echo 'build full css...'
# node ./scripts/build/generate-css.js
echo 'build full css...'
node ./scripts/build/generate-css.js
}

addBanners() {
Expand Down

0 comments on commit 22d3878

Please sign in to comment.