Browse Source

fix: dist build pipline

pull/20012/head
ycjcl868 5 years ago
parent
commit
e16b17b564
  1. 2
      .antd-tools.config.js
  2. 4
      tests/dekko/dist.test.js

2
.antd-tools.config.js

@ -70,7 +70,7 @@ function finalizeDist() {
console.log('Built a entry less file to dist/antd-dark.less'); console.log('Built a entry less file to dist/antd-dark.less');
// Build antd-dark.js: dist/antd-dark.js, for less-loader // Build antd-dark.js: dist/antd-dark.js, for less-loader
const stylePath = path.join(process.cwd(), 'lib', 'style'); const stylePath = path.join(process.cwd(), 'components', 'style');
const colorLess = fs.readFileSync(path.join(stylePath, 'color', 'colors.less'), 'utf8'); const colorLess = fs.readFileSync(path.join(stylePath, 'color', 'colors.less'), 'utf8');
const defaultLess = fs.readFileSync(path.join(stylePath, 'themes', 'default.less'), 'utf8'); const defaultLess = fs.readFileSync(path.join(stylePath, 'themes', 'default.less'), 'utf8');

4
tests/dekko/dist.test.js

@ -9,7 +9,9 @@ $('dist')
.hasFile('antd.min.css') .hasFile('antd.min.css')
.hasFile('antd.js') .hasFile('antd.js')
.hasFile('antd.min.js') .hasFile('antd.min.js')
.hasFile('antd.less'); .hasFile('antd.less')
.hasFile('antd-dark.less')
.hasFile('antd-dark.js');
// eslint-disable-next-line // eslint-disable-next-line
console.log(chalk.green('✨ `dist` directory is valid.')); console.log(chalk.green('✨ `dist` directory is valid.'));

Loading…
Cancel
Save