ant-design/tests/dekko/dist.test.js
偏右 b369717181
chore: 🦄 Add eslint-plugin-unicorn (#22883)
* 🦄 Add eslint-plugin-unicorn

* fix eslint errors

* fix eslint errors

* fix lint demo

* fix lint demo
2020-04-03 15:02:11 +08:00

21 lines
533 B
JavaScript

const $ = require('dekko');
const chalk = require('chalk');
$('dist')
.isDirectory()
.hasFile('antd-with-locales.js')
.hasFile('antd-with-locales.min.js')
.hasFile('antd.css')
.hasFile('antd.min.css')
.hasFile('antd.js')
.hasFile('antd.min.js')
.hasFile('antd.less')
.hasFile('antd.dark.less')
.hasFile('antd.dark.css')
.hasFile('antd.compact.less')
.hasFile('antd.compact.css')
.hasFile('dark-theme.js');
// eslint-disable-next-line no-console
console.log(chalk.green('✨ `dist` directory is valid.'));