Revert "Bug 36532: Protect opac-dismiss-message.pl from malicious usages"
[koha.git] / build-resources.PL
1 #!/usr/bin/perl
2 # This file is part of Koha.
3 #
4 # Koha is free software; you can redistribute it and/or modify it
5 # under the terms of the GNU General Public License as published by
6 # the Free Software Foundation; either version 3 of the License, or
7 # (at your option) any later version.
8 #
9 # Koha is distributed in the hope that it will be useful, but
10 # WITHOUT ANY WARRANTY; without even the implied warranty of
11 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12 # GNU General Public License for more details.
13 #
14 # You should have received a copy of the GNU General Public License
15 # along with Koha; if not, see <http://www.gnu.org/licenses>.
16 #
17
18 use Modern::Perl;
19 use ExtUtils::MakeMaker::Config;
20
21 =head1 NAME
22
23 build-resources.PL - helper for the Koha packager and installer
24
25 =head1 SYNOPSIS
26
27     perl build-resources.PL
28
29 =head1 DESCRIPTION
30
31 This helper script ensures that src JS and SCSS files are compiled for packaging.
32
33 =cut
34
35 my $install_command = "yarn install --frozen-lockfile";
36 system($install_command);
37
38 my $build_command = "yarn build:prod";
39 system($build_command);
40
41 1;