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-04 23:13:59 +08:00
|
|
|
.hasFile('dark.less')
|
|
|
|
.hasFile('dark.js');
|
2016-11-12 16:21:11 +08:00
|
|
|
|
2016-12-11 14:01:14 +08:00
|
|
|
// eslint-disable-next-line
|
2018-12-23 17:45:31 +08:00
|
|
|
console.log(chalk.green('✨ `dist` directory is valid.'));
|