You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

25 lines
614 B

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'))
.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');
6 years ago
$('lib/style').hasFile('v2-compatible-reset.css');
// eslint-disable-next-line
console.log(chalk.green('✨ `lib` directory is valid.'));