commit perl-Mojolicious-Plugin-AssetPack for openSUSE:Factory
Hello community, here is the log from the commit of package perl-Mojolicious-Plugin-AssetPack for openSUSE:Factory checked in at 2019-05-06 13:27:18 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Comparing /work/SRC/openSUSE:Factory/perl-Mojolicious-Plugin-AssetPack (Old) and /work/SRC/openSUSE:Factory/.perl-Mojolicious-Plugin-AssetPack.new.5148 (New) ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Package is "perl-Mojolicious-Plugin-AssetPack" Mon May 6 13:27:18 2019 rev:42 rq:700691 version:2.07 Changes: -------- --- /work/SRC/openSUSE:Factory/perl-Mojolicious-Plugin-AssetPack/perl-Mojolicious-Plugin-AssetPack.changes 2018-09-20 11:42:35.788816551 +0200 +++ /work/SRC/openSUSE:Factory/.perl-Mojolicious-Plugin-AssetPack.new.5148/perl-Mojolicious-Plugin-AssetPack.changes 2019-05-06 13:27:19.653270749 +0200 @@ -1,0 +2,10 @@ +Sun May 5 05:18:28 UTC 2019 - Stephan Kulow <coolo@suse.com> + +- updated to 2.07 + see /usr/share/doc/packages/perl-Mojolicious-Plugin-AssetPack/Changes + + 2.07 2019-05-04T23:54:32+0700 + - Add RollupJs->add_global(); + - Add note about Mojolicious::Plugin::AssetPack::Webpack + +------------------------------------------------------------------- Old: ---- Mojolicious-Plugin-AssetPack-2.06.tar.gz New: ---- Mojolicious-Plugin-AssetPack-2.07.tar.gz ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Other differences: ------------------ ++++++ perl-Mojolicious-Plugin-AssetPack.spec ++++++ --- /var/tmp/diff_new_pack.q4DeAa/_old 2019-05-06 13:27:20.329271956 +0200 +++ /var/tmp/diff_new_pack.q4DeAa/_new 2019-05-06 13:27:20.333271963 +0200 @@ -1,7 +1,7 @@ # # spec file for package perl-Mojolicious-Plugin-AssetPack # -# Copyright (c) 2018 SUSE LINUX GmbH, Nuernberg, Germany. +# Copyright (c) 2019 SUSE LINUX GmbH, Nuernberg, Germany. # # All modifications and additions to the file contributed by third parties # remain the property of their copyright owners, unless otherwise agreed @@ -17,13 +17,13 @@ Name: perl-Mojolicious-Plugin-AssetPack -Version: 2.06 +Version: 2.07 Release: 0 %define cpan_name Mojolicious-Plugin-AssetPack Summary: Compress and convert css, less, sass, javascript and coffeescript files License: Artistic-2.0 Group: Development/Libraries/Perl -Url: http://search.cpan.org/dist/Mojolicious-Plugin-AssetPack/ +Url: https://metacpan.org/release/%{cpan_name} Source0: https://cpan.metacpan.org/authors/id/J/JH/JHTHORSEN/%{cpan_name}-%{version}.tar.gz Source1: cpanspec.yml BuildArch: noarch @@ -44,6 +44,14 @@ assets. The idea is that JavaScript and CSS files should be served as one minified file to save bandwidth and roundtrip time to the server. +Note that the main author have moved on to using +Mojolicious::Plugin::AssetPack::Webpack instead, which uses +https://webpack.js.org/ under the hood, but is just as convenient to use as +this plugin. It is very easy to try out +Mojolicious::Plugin::AssetPack::Webpack, since it will detect your +AssetPack based project automatically, and migrate them over to webpack +once the plugin is loaded. + There are many external tools for doing this, but integrating them with Mojolicious can be a struggle: You want to serve the source files directly while developing, but a minified version in production. This assetpack @@ -59,11 +67,11 @@ find . -type f ! -name \*.pl -print0 | xargs -0 chmod 644 %build -%{__perl} Makefile.PL INSTALLDIRS=vendor -%{__make} %{?_smp_mflags} +perl Makefile.PL INSTALLDIRS=vendor +make %{?_smp_mflags} %check -%{__make} test +make test %install %perl_make_install @@ -72,6 +80,6 @@ %files -f %{name}.files %defattr(-,root,root,755) -%doc Changes examples +%doc Changes examples README.md %changelog ++++++ Mojolicious-Plugin-AssetPack-2.06.tar.gz -> Mojolicious-Plugin-AssetPack-2.07.tar.gz ++++++ diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/Mojolicious-Plugin-AssetPack-2.06/Changes new/Mojolicious-Plugin-AssetPack-2.07/Changes --- old/Mojolicious-Plugin-AssetPack-2.06/Changes 2018-09-02 22:25:13.000000000 +0200 +++ new/Mojolicious-Plugin-AssetPack-2.07/Changes 2019-05-04 18:54:32.000000000 +0200 @@ -1,5 +1,9 @@ Revision history for perl distribution Mojolicious-Plugin-AssetPack +2.07 2019-05-04T23:54:32+0700 + - Add RollupJs->add_global(); + - Add note about Mojolicious::Plugin::AssetPack::Webpack + 2.06 2018-09-02T22:25:13+0200 - Fix deprecated coffee-script@1.12.7: CoffeeScript on NPM has moved to coffeescript - Fix RollupJs pipe compatible with new rollupjs #138 diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/Mojolicious-Plugin-AssetPack-2.06/MANIFEST new/Mojolicious-Plugin-AssetPack-2.07/MANIFEST --- old/Mojolicious-Plugin-AssetPack-2.06/MANIFEST 2018-09-02 22:25:15.000000000 +0200 +++ new/Mojolicious-Plugin-AssetPack-2.07/MANIFEST 2019-05-04 18:54:33.000000000 +0200 @@ -35,6 +35,7 @@ lib/Mojolicious/Plugin/AssetPack/Util.pm Makefile.PL MANIFEST This list of files +README.md t/00-basic.t t/assets/css-0-one.css t/assets/css-0-two.css diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/Mojolicious-Plugin-AssetPack-2.06/META.json new/Mojolicious-Plugin-AssetPack-2.07/META.json --- old/Mojolicious-Plugin-AssetPack-2.06/META.json 2018-09-02 22:25:15.000000000 +0200 +++ new/Mojolicious-Plugin-AssetPack-2.07/META.json 2019-05-04 18:54:33.000000000 +0200 @@ -53,6 +53,13 @@ "web" : "https://github.com/jhthorsen/mojolicious-plugin-assetpack" } }, - "version" : "2.06", + "version" : "2.07", + "x_contributors" : [ + "Jan Henning Thorsen <jhthorsen@cpan.org>", + "Alexander Rymasheusky", + "Mark Grimes <mgrimes@cpan.org>", + "Per Edin <info@peredin.com>", + "Viktor Turskyi" + ], "x_serialization_backend" : "JSON::PP version 2.97001" } diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/Mojolicious-Plugin-AssetPack-2.06/META.yml new/Mojolicious-Plugin-AssetPack-2.07/META.yml --- old/Mojolicious-Plugin-AssetPack-2.06/META.yml 2018-09-02 22:25:14.000000000 +0200 +++ new/Mojolicious-Plugin-AssetPack-2.07/META.yml 2019-05-04 18:54:32.000000000 +0200 @@ -25,5 +25,11 @@ bugtracker: https://github.com/jhthorsen/mojolicious-plugin-assetpack/issues homepage: https://github.com/jhthorsen/mojolicious-plugin-assetpack repository: https://github.com/jhthorsen/mojolicious-plugin-assetpack.git -version: '2.06' +version: '2.07' +x_contributors: + - 'Jan Henning Thorsen <jhthorsen@cpan.org>' + - 'Alexander Rymasheusky' + - 'Mark Grimes <mgrimes@cpan.org>' + - 'Per Edin <info@peredin.com>' + - 'Viktor Turskyi' x_serialization_backend: 'CPAN::Meta::YAML version 0.018' diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/Mojolicious-Plugin-AssetPack-2.06/Makefile.PL new/Mojolicious-Plugin-AssetPack-2.07/Makefile.PL --- old/Mojolicious-Plugin-AssetPack-2.06/Makefile.PL 2018-09-02 22:25:13.000000000 +0200 +++ new/Mojolicious-Plugin-AssetPack-2.07/Makefile.PL 2019-05-04 18:54:31.000000000 +0200 @@ -1,4 +1,5 @@ # Generated by git-ship. See 'git-ship --man' for help or https://github.com/jhthorsen/app-git-ship +use utf8; use ExtUtils::MakeMaker; my %WriteMakefileArgs = ( NAME => 'Mojolicious::Plugin::AssetPack', @@ -31,6 +32,14 @@ web => 'https://github.com/jhthorsen/mojolicious-plugin-assetpack', }, }, + 'x_contributors' => [ + 'Jan Henning Thorsen <jhthorsen@cpan.org>', + 'Alexander Rymasheusky', + 'Mark Grimes <mgrimes@cpan.org>', + 'Per Edin <info@peredin.com>', + 'Viktor Turskyi' +] +, }, test => {TESTS => (-e 'META.yml' ? 't/*.t' : 't/*.t xt/*.t')}, ); diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/Mojolicious-Plugin-AssetPack-2.06/README.md new/Mojolicious-Plugin-AssetPack-2.07/README.md --- old/Mojolicious-Plugin-AssetPack-2.06/README.md 1970-01-01 01:00:00.000000000 +0100 +++ new/Mojolicious-Plugin-AssetPack-2.07/README.md 2019-05-04 18:54:32.000000000 +0200 @@ -0,0 +1,239 @@ +# NAME + +Mojolicious::Plugin::AssetPack - Compress and convert css, less, sass, javascript and coffeescript files + +# VERSION + +2.07 + +# SYNOPSIS + +## Application + + use Mojolicious::Lite; + + # Load plugin and pipes in the right order + plugin AssetPack => { + pipes => [qw(Less Sass Css CoffeeScript Riotjs JavaScript Combine)] + }; + + # define asset + app->asset->process( + # virtual name of the asset + "app.css" => ( + + # source files used to create the asset + "sass/bar.scss", + "https://github.com/Dogfalo/materialize/blob/master/sass/materialize.scss", + ) + ); + +## Template + + <html> + <head> + %= asset "app.css" + </head> + <body><%= content %></body> + </html> + +# DESCRIPTION + +[Mojolicious::Plugin::AssetPack](https://metacpan.org/pod/Mojolicious::Plugin::AssetPack) is [Mojolicious plugin](https://metacpan.org/pod/Mojolicious::Plugin) +for processing static assets. The idea is that JavaScript and CSS files should +be served as one minified file to save bandwidth and roundtrip time to the +server. + +Note that the main author have moved on to using +[Mojolicious::Plugin::AssetPack::Webpack](https://metacpan.org/pod/Mojolicious::Plugin::AssetPack::Webpack) instead, which uses +[https://webpack.js.org/](https://webpack.js.org/) under the hood, but is just as convenient to use as +this plugin. It is very easy to try out +[Mojolicious::Plugin::AssetPack::Webpack](https://metacpan.org/pod/Mojolicious::Plugin::AssetPack::Webpack), since it will detect your AssetPack +based project automatically, and migrate them over to webpack once the plugin +is loaded. + +There are many external tools for doing this, but integrating them with +[Mojolicious](https://metacpan.org/pod/Mojolicious) can be a struggle: You want to serve the source files directly +while developing, but a minified version in production. This assetpack plugin +will handle all of that automatically for you. + +Your application creates and refers to an asset by its topic (virtual asset +name). The process of building actual assets from their components is +delegated to "pipe objects". Please see +["Pipes" in Mojolicious::Plugin::AssetPack::Guides::Tutorial](https://metacpan.org/pod/Mojolicious::Plugin::AssetPack::Guides::Tutorial#Pi...) for a complete list. + +# BREAKING CHANGES + +## assetpack.db (v1.47) + +`assetpack.db` no longer track files downloaded from the internet. It will +mostly "just work", but in some cases version 1.47 might download assets that +have already been downloaded with AssetPack version 1.46 and earlier. + +The goal is to remove `assetpack.db` completely. + +# GUIDES + +- [Mojolicious::Plugin::AssetPack::Guides::Tutorial](https://metacpan.org/pod/Mojolicious::Plugin::AssetPack::Guides::Tutorial) + + The tutorial will give an introduction to how AssetPack can be used. + +- [Mojolicious::Plugin::AssetPack::Guides::Developing](https://metacpan.org/pod/Mojolicious::Plugin::AssetPack::Guides::Developing) + + The "developing" guide will give insight on how to do effective development with + AssetPack and more details about the internals in this plugin. + +- [Mojolicious::Plugin::AssetPack::Guides::Cookbook](https://metacpan.org/pod/Mojolicious::Plugin::AssetPack::Guides::Cookbook) + + The cookbook has various receipes on how to cook with AssetPack. + +# HELPERS + +## asset + + $self = $app->asset; + $self = $c->asset; + $bytestream = $c->asset($topic, @args); + $bytestream = $c->asset("app.css", media => "print"); + +`asset()` is the main entry point to this plugin. It can either be used to +access the [Mojolicious::Plugin::AssetPack](https://metacpan.org/pod/Mojolicious::Plugin::AssetPack) instance or as a tag helper. + +The helper name "asset" can be customized by specifying "helper" when +[registering](#register) the plugin. + +See [Mojolicious::Plugin::AssetPack::Guides::Tutorial](https://metacpan.org/pod/Mojolicious::Plugin::AssetPack::Guides::Tutorial) for more details. + +# ATTRIBUTES + +## minify + + $bool = $self->minify; + $self = $self->minify($bool); + +Set this to true to combine and minify the assets. Defaults to false if +["mode" in Mojolicious](https://metacpan.org/pod/Mojolicious#mode) is "development" and true otherwise. + +See ["Application mode" in Mojolicious::Plugin::AssetPack::Guides::Tutorial](https://metacpan.org/pod/Mojolicious::Plugin::AssetPack::Guides::Tutorial#Ap...) +for more details. + +## route + + $route = $self->route; + $self = $self->route($route); + +A [Mojolicious::Routes::Route](https://metacpan.org/pod/Mojolicious::Routes::Route) object used to serve assets. The default route +responds to HEAD and GET requests and calls +[serve\_asset()](https://metacpan.org/pod/Mojolicious::Plugin::AssetPack::Store#serve_asset) on ["store"](#store) +to serve the asset. + +The default route will be built and added to the [application](https://metacpan.org/pod/Mojolicious) +when ["process"](#process) is called the first time. + +See ["ASSETS FROM CUSTOM DOMAIN" in Mojolicious::Plugin::AssetPack::Guides::Cookbook](https://metacpan.org/pod/Mojolicious::Plugin::AssetPack::Guides::Cookbook#AS...) +for an example on how to customize this route. + +## store + + $obj = $self->store; + $self = $self->store(Mojolicious::Plugin::AssetPack::Store->new); + +Holds a [Mojolicious::Plugin::AssetPack::Store](https://metacpan.org/pod/Mojolicious::Plugin::AssetPack::Store) object used to locate, store +and serve assets. + +## tag\_for + +Deprecated. Use ["renderer" in Mojolicious::Plugin::AssetPack::Asset](https://metacpan.org/pod/Mojolicious::Plugin::AssetPack::Asset#renderer) instead. + +## ua + + $ua = $self->ua; + +Holds a [Mojo::UserAgent](https://metacpan.org/pod/Mojo::UserAgent) which can be used to fetch assets either from local +application or from remote web servers. + +# METHODS + +## pipe + + $obj = $self->pipe($name); + $obj = $self->pipe("Css"); + +Will return a registered pipe by `$name` or `undef` if none could be found. + +## process + + $self = $self->process($topic => @assets); + $self = $self->process($definition_file); + +Used to process assets. A `$definition_file` can be used to define `$topic` +and `@assets` in a separate file. See +["Process assets" in Mojolicious::Plugin::AssetPack::Guides::Tutorial](https://metacpan.org/pod/Mojolicious::Plugin::AssetPack::Guides::Tutorial#Pr...) for more +details. + +`$definition_file` defaults to "assetpack.def". + +## processed + + $collection = $self->processed($topic); + +Can be used to retrieve a [Mojo::Collection](https://metacpan.org/pod/Mojo::Collection) object, with zero or more +[Mojolicious::Plugin::AssetPack::Asset](https://metacpan.org/pod/Mojolicious::Plugin::AssetPack::Asset) objects. Returns undef if `$topic` is +not defined with ["process"](#process). + +## register + + $self->register($app, \%config); + +Used to register the plugin in the application. `%config` can contain: + +- helper + + Name of the helper to add to the application. Default is "asset". + +- pipes + + This argument is mandatory and need to contain a complete list of pipes that is + needed. Example: + + $app->plugin(AssetPack => {pipes => [qw(Sass Css Combine)]); + + See ["Pipes" in Mojolicious::Plugin::AssetPack::Guides::Tutorial](https://metacpan.org/pod/Mojolicious::Plugin::AssetPack::Guides::Tutorial#Pi...) for a complete + list of available pipes. + +- proxy + + A hash of proxy settings. Set this to `0` to disable proxy detection. + Currently only "no\_proxy" is supported, which will set which requests that + should bypass the proxy (if any proxy is detected). Default is to bypass all + requests to localhost. + + See ["detect" in Mojo::UserAgent::Proxy](https://metacpan.org/pod/Mojo::UserAgent::Proxy#detect) for more information. + +# SEE ALSO + +[Mojolicious::Plugin::AssetPack::Webpack](https://metacpan.org/pod/Mojolicious::Plugin::AssetPack::Webpack). + +["GUIDES"](#guides), +[Mojolicious::Plugin::AssetPack::Asset](https://metacpan.org/pod/Mojolicious::Plugin::AssetPack::Asset), +[Mojolicious::Plugin::AssetPack::Pipe](https://metacpan.org/pod/Mojolicious::Plugin::AssetPack::Pipe) and +[Mojolicious::Plugin::AssetPack::Store](https://metacpan.org/pod/Mojolicious::Plugin::AssetPack::Store). + +# COPYRIGHT AND LICENSE + +Copyright (C) 2014, Jan Henning Thorsen + +This program is free software, you can redistribute it and/or modify it under +the terms of the Artistic License version 2.0. + +# AUTHOR + +Jan Henning Thorsen - `jhthorsen@cpan.org` + +Alexander Rymasheusky + +Mark Grimes - `mgrimes@cpan.org` + +Per Edin - `info@peredin.com` + +Viktor Turskyi diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/Mojolicious-Plugin-AssetPack-2.06/examples/rollup.pl new/Mojolicious-Plugin-AssetPack-2.07/examples/rollup.pl --- old/Mojolicious-Plugin-AssetPack-2.06/examples/rollup.pl 2017-10-14 17:14:31.000000000 +0200 +++ new/Mojolicious-Plugin-AssetPack-2.07/examples/rollup.pl 2018-09-08 16:19:25.000000000 +0200 @@ -2,13 +2,15 @@ die "Run $0 from ./mojolicious-plugin-assetpack/ root" unless -d 't/assets'; use lib 'lib'; use Mojolicious::Lite; +use Mojo::File 'path'; plugin 'AssetPack' => {pipes => ['RollupJs']}; -app->asset->store->paths(['t/assets']); +app->asset->store->paths([path('t/assets')->to_abs]); # Add Vuejs as dependencies -push @{app->asset->pipe('RollupJs')->modules}, 'vue'; -unshift @{app->asset->pipe('RollupJs')->plugins}, 'rollup-plugin-vue'; +app->asset->pipe('RollupJs')->add_global(vue => 'Vue'); +push @{app->asset->pipe('RollupJs')->modules}, 'vue-template-compiler'; +push @{app->asset->pipe('RollupJs')->plugins}, ['rollup-plugin-vue', 'vue']; # Process js/vue-app.js app->asset->process('app.js' => 'js/vue-app.js'); diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/Mojolicious-Plugin-AssetPack-2.06/lib/Mojolicious/Plugin/AssetPack/Pipe/RollupJs.pm new/Mojolicious-Plugin-AssetPack-2.07/lib/Mojolicious/Plugin/AssetPack/Pipe/RollupJs.pm --- old/Mojolicious-Plugin-AssetPack-2.06/lib/Mojolicious/Plugin/AssetPack/Pipe/RollupJs.pm 2018-09-02 22:24:41.000000000 +0200 +++ new/Mojolicious-Plugin-AssetPack-2.07/lib/Mojolicious/Plugin/AssetPack/Pipe/RollupJs.pm 2018-11-01 02:31:50.000000000 +0100 @@ -51,6 +51,11 @@ return [$self->_find_app([qw(nodejs node)]), $self->{_rollupjs_src}->realpath]; }; +sub add_global { + $_[0]->globals->{$_[1]} = $_[2]; + $_[0]; +} + sub process { my ($self, $assets) = @_; my $minify = $self->assetpack->minify; @@ -142,6 +147,13 @@ =head1 METHODS +=head2 add_global + + $self = $self->add_global($key => $value); + $self = $self->add_global(qw(vue Vue)); + +Used to add a key/value pair to L</globals>. + =head2 process See L<Mojolicious::Plugin::AssetPack::Pipe/process>. diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/Mojolicious-Plugin-AssetPack-2.06/lib/Mojolicious/Plugin/AssetPack.pm new/Mojolicious-Plugin-AssetPack-2.07/lib/Mojolicious/Plugin/AssetPack.pm --- old/Mojolicious-Plugin-AssetPack-2.06/lib/Mojolicious/Plugin/AssetPack.pm 2018-09-02 22:25:13.000000000 +0200 +++ new/Mojolicious-Plugin-AssetPack-2.07/lib/Mojolicious/Plugin/AssetPack.pm 2019-05-04 18:54:32.000000000 +0200 @@ -6,7 +6,7 @@ use Mojolicious::Plugin::AssetPack::Store; use Mojolicious::Plugin::AssetPack::Util qw(diag has_ro load_module DEBUG); -our $VERSION = '2.06'; +our $VERSION = '2.07'; has minify => sub { shift->_app->mode eq 'development' ? 0 : 1 }; @@ -218,7 +218,7 @@ sub _static_asset { my ($self, $topic) = @_; - my $asset = $self->store->asset($topic) or die qq(No assets registered by topic "$topic".); + my $asset = $self->store->asset($topic) or die qq(No assets registered by topic "$topic".); my $assets = Mojo::Collection->new($asset); $self->{by_checksum}{$_->checksum} = $_ for @$assets; return $assets; @@ -234,7 +234,7 @@ =head1 VERSION -2.06 +2.07 =head1 SYNOPSIS @@ -274,6 +274,14 @@ be served as one minified file to save bandwidth and roundtrip time to the server. +Note that the main author have moved on to using +L<Mojolicious::Plugin::AssetPack::Webpack> instead, which uses +L<https://webpack.js.org/> under the hood, but is just as convenient to use as +this plugin. It is very easy to try out +L<Mojolicious::Plugin::AssetPack::Webpack>, since it will detect your AssetPack +based project automatically, and migrate them over to webpack once the plugin +is loaded. + There are many external tools for doing this, but integrating them with L<Mojolicious> can be a struggle: You want to serve the source files directly while developing, but a minified version in production. This assetpack plugin @@ -442,6 +450,8 @@ =head1 SEE ALSO +L<Mojolicious::Plugin::AssetPack::Webpack>. + L</GUIDES>, L<Mojolicious::Plugin::AssetPack::Asset>, L<Mojolicious::Plugin::AssetPack::Pipe> and diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/Mojolicious-Plugin-AssetPack-2.06/t/rollup.t new/Mojolicious-Plugin-AssetPack-2.07/t/rollup.t --- old/Mojolicious-Plugin-AssetPack-2.06/t/rollup.t 2018-09-02 22:22:30.000000000 +0200 +++ new/Mojolicious-Plugin-AssetPack-2.07/t/rollup.t 2018-11-01 02:35:58.000000000 +0100 @@ -17,7 +17,7 @@ # With modules and plugins $t = t::Helper->t(pipes => [qw(RollupJs Combine)]); -$t->app->asset->pipe('RollupJs')->globals->{vue} = 'Vue'; +$t->app->asset->pipe('RollupJs')->add_global(vue => 'Vue'); push @{$t->app->asset->pipe('RollupJs')->modules}, 'vue-template-compiler'; push @{$t->app->asset->pipe('RollupJs')->plugins}, ['rollup-plugin-vue', 'vue']; $t->app->asset->process('app.js' => 'js/vue-app.js');
participants (1)
-
root