yandex / tartifacts

:package: Create artifacts for your assemblies
MIT License
20 stars 9 forks source link

Warnings #6

Open blond opened 8 years ago

blond commented 8 years ago

In CLI mode tartifacts should log warn messages about broken symlinks and mismatching patterns.

By API

const tartifacts = require('tartifacts');

tartifacts({ dest: 'dir', includes: ['no-file.ext', 'broken.symlink'] })
    .then({ warnings } => {
        console.log(warnings);
    });

// [
//    {
//         path: 'path/to/no-file.ext',
//         message: 'File not found.'
//    },
//    {
//         path: 'broken.symlink',
//         message: 'Symlink is broken.'
//    },
//]
blond commented 8 years ago

/cc @rndD