2016-11-12 16:21:11 +08:00
|
|
|
const $ = require('dekko');
|
2018-12-23 17:45:31 +08:00
|
|
|
const chalk = require('chalk');
|
2016-11-12 16:21:11 +08:00
|
|
|
|
|
|
|
$('dist')
|
|
|
|
.isDirectory()
|
2019-04-02 19:04:38 +08:00
|
|
|
.hasFile('antd-with-locales.js')
|
|
|
|
.hasFile('antd-with-locales.min.js')
|
2016-11-12 16:21:11 +08:00
|
|
|
.hasFile('antd.css')
|
|
|
|
.hasFile('antd.min.css')
|
|
|
|
.hasFile('antd.js')
|
2019-04-02 19:04:38 +08:00
|
|
|
.hasFile('antd.min.js')
|
2019-12-03 22:07:17 +08:00
|
|
|
.hasFile('antd.less')
|
2019-12-06 21:37:26 +08:00
|
|
|
.hasFile('antd.dark.less')
|
|
|
|
.hasFile('antd.dark.css')
|
2020-03-29 10:39:46 +08:00
|
|
|
.hasFile('antd.compact.less')
|
|
|
|
.hasFile('antd.compact.css')
|
2019-12-06 21:37:26 +08:00
|
|
|
.hasFile('dark-theme.js');
|
2016-11-12 16:21:11 +08:00
|
|
|
|
2020-04-03 15:02:11 +08:00
|
|
|
// eslint-disable-next-line no-console
|
2018-12-23 17:45:31 +08:00
|
|
|
console.log(chalk.green('✨ `dist` directory is valid.'));
|