diff --git a/.travis.yml b/.travis.yml index e5089327e..d13dacb39 100644 --- a/.travis.yml +++ b/.travis.yml @@ -9,7 +9,7 @@ before_install: - git config --global user.email $HOSTNAME":not-for-mail@travis-ci.org" install: - cpanm --quiet --notest --skip-installed Dist::Zilla - - dzil authordeps | grep -ve '^\W' | xargs -n 5 -P 10 cpanm --quiet --notest --skip-installed + - dzil authordeps | grep -ve '^\W' | xargs -n 5 -P 10 cpanm --quiet --notest --skip-installed --mirror http://www.cpan.org/ --mirror http://duckpan.org - dzil listdeps | grep -ve '^\W' | cpanm --quiet --notest --skip-installed - cpanm --quiet --notest App::DuckPAN autodie - duckpan DDG diff --git a/dist.ini b/dist.ini index 85b177e4b..e3931603c 100644 --- a/dist.ini +++ b/dist.ini @@ -11,6 +11,7 @@ main_module = lib/DDG/GoodieBundle/OpenSourceDuckDuckGo.pm [PromptIfStale] index = http://duckpan.org module = Dist::Zilla::Plugin::UploadToDuckPAN +module = Dist::Zilla::Plugin::BuildShareAssets [Prereqs] Time::Duration = 1.1 @@ -47,7 +48,6 @@ CGI = 3.60 Email::Valid = 1.192 Net::Domain::TLD = 1.70 Convert::Pluggable = 0.027 -YAML = 0 Encode = 2.62 ; ParseCron Schedule::Cron::Events = 0 @@ -108,34 +108,29 @@ File::Temp = 0.22 run = mkdir -p share/goodie/meta run = curl https://duck.co/ia/repo/goodies/json -o "share/goodie/meta/metadata.json" [GatherDir] +[BuildShareAssets] +[PruneFiles] +match = \.(?:handlebars|ini|p[ly]|rb|go|tcl|sh|md|tx|gitignore)$ +; No javascript files, except those we build, i.e. .spice.js +match = ^share/.+(?