yandex / tartifacts

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

Ability to configure all the artifacts in the same place using CLI #95

Closed vitkarpov closed 6 years ago

vitkarpov commented 6 years ago

Hi @blond,

First of all thanks for your work! The package is awesome. I'd like to introduce a feature.

If there's a bunch of artifacts it'd be convenient to describe them in the same place:

module.exports = [
    {
        dest: '../foo.tar.gz',
        patterns: ...
    },
    {
        dest: '../bar.tar.gz',
        patterns: ...
    },
    ...
];

This pull request adds a special flag --config, using it you can specify a path to your config 👆

$ tartifacts --config=.config/tartifacts/pull-request.js

If --config is specified all the other flags would be ignored. If it's not specified the previous behavior comes to the stage.

Also, I found some bugs (does v2.0.0-1 work?):

blond commented 6 years ago

Thanks!

Tartifacts CLI moved to tartifacts-cli package.

I added --config option in tartifacts-cli.