mirror of
https://github.com/ant-design/ant-design.git
synced 2024-12-21 04:48:02 +08:00
29 lines
552 B
JavaScript
29 lines
552 B
JavaScript
|
'use strict';
|
||
|
|
||
|
const $ = require('dekko');
|
||
|
|
||
|
$('lib')
|
||
|
.isDirectory()
|
||
|
.hasFile('index.js')
|
||
|
.hasFile('index.d.ts');
|
||
|
|
||
|
$('lib/*')
|
||
|
.filter((filename) => {
|
||
|
return !filename.endsWith('index.js') &&
|
||
|
!filename.endsWith('index.d.ts');
|
||
|
})
|
||
|
.isDirectory()
|
||
|
.filter((filename) => {
|
||
|
return !filename.endsWith('style') &&
|
||
|
!filename.endsWith('_util');
|
||
|
})
|
||
|
.hasFile('index.js')
|
||
|
.hasFile('index.d.ts')
|
||
|
.hasDirectory('style');
|
||
|
|
||
|
$('lib/*/style')
|
||
|
.hasFile('css.js')
|
||
|
.hasFile('index.js');
|
||
|
|
||
|
console.log('`lib` directory is valid.');
|