mirror of
https://github.com/ant-design/ant-design.git
synced 2024-12-18 19:39:51 +08:00
30 lines
671 B
JavaScript
30 lines
671 B
JavaScript
const $ = require('dekko');
|
|
const chalk = require('chalk');
|
|
|
|
$('lib')
|
|
.isDirectory()
|
|
.hasFile('index.js')
|
|
.hasFile('index.d.ts');
|
|
|
|
$('lib/*')
|
|
.filter(
|
|
filename =>
|
|
!filename.endsWith('index.js') &&
|
|
!filename.endsWith('index.d.ts') &&
|
|
!filename.endsWith('.map'),
|
|
)
|
|
.isDirectory()
|
|
.filter(filename => !filename.endsWith('style') && !filename.endsWith('_util'))
|
|
.hasFile('index.js')
|
|
.hasFile('index.d.ts')
|
|
.hasDirectory('style');
|
|
|
|
$('lib/*/style')
|
|
.hasFile('css.js')
|
|
.hasFile('index.js');
|
|
|
|
$('lib/style').hasFile('v2-compatible-reset.css');
|
|
|
|
// eslint-disable-next-line
|
|
console.log(chalk.green('✨ `lib` directory is valid.'));
|