2016-11-12 16:21:11 +08:00
|
|
|
const $ = require('dekko');
|
|
|
|
|
|
|
|
$('lib')
|
|
|
|
.isDirectory()
|
|
|
|
.hasFile('index.js')
|
|
|
|
.hasFile('index.d.ts');
|
|
|
|
|
|
|
|
$('lib/*')
|
|
|
|
.filter((filename) => {
|
2018-06-22 21:05:13 +08:00
|
|
|
return !filename.endsWith('index.js') && !filename.endsWith('index.d.ts');
|
2016-11-12 16:21:11 +08:00
|
|
|
})
|
|
|
|
.isDirectory()
|
|
|
|
.filter((filename) => {
|
2018-06-22 21:05:13 +08:00
|
|
|
return !filename.endsWith('style') && !filename.endsWith('_util');
|
2016-11-12 16:21:11 +08:00
|
|
|
})
|
|
|
|
.hasFile('index.js')
|
|
|
|
.hasFile('index.d.ts')
|
|
|
|
.hasDirectory('style');
|
|
|
|
|
|
|
|
$('lib/*/style')
|
|
|
|
.hasFile('css.js')
|
2017-12-05 15:25:18 +08:00
|
|
|
.hasFile('index.js');
|
|
|
|
|
|
|
|
$('lib/style')
|
2017-12-05 15:21:09 +08:00
|
|
|
.hasFile('v2-compatible-reset.css');
|
2016-11-12 16:21:11 +08:00
|
|
|
|
2016-12-11 14:01:14 +08:00
|
|
|
// eslint-disable-next-line
|
2016-11-12 16:21:11 +08:00
|
|
|
console.log('`lib` directory is valid.');
|