Bug 36546: Deploy swagger_bundle.json via make
To test: 0. Apply patch 1a. perl Makefile.PL 1b. Choose "single" Installation mode 1c. Specify /opt/koha directory 2. make 2b. ls blib/API_CGI_DIR/v1/swagger/swagger_bundle.json 3. Ensure you're running as root or make koha user own /opt 4. make install 5. ls /opt/koha/api/v1/swagger/swagger_bundle.json Signed-off-by: Martin Renvoize <martin.renvoize@ptfs-europe.com> Signed-off-by: Katrin Fischer <katrin.fischer@bsz-bw.de>
This commit is contained in:
parent
e1bbbedb80
commit
fdeaaac81d
|
|
@ -683,6 +683,8 @@ $file_map->{'koha-tmpl/opac-tmpl/bootstrap/css/print.css'} = 'blib/OPAC_TMPL_DIR
|
|||
$file_map->{'koha-tmpl/opac-tmpl/bootstrap/css/print-rtl.css'} = 'blib/OPAC_TMPL_DIR/bootstrap/css/print-rtl.css';
|
||||
$file_map->{'koha-tmpl/opac-tmpl/bootstrap/css/sco.css'} = 'blib/OPAC_TMPL_DIR/bootstrap/css/sco.css';
|
||||
$file_map->{'koha-tmpl/opac-tmpl/bootstrap/css/sco-rtl.css'} = 'blib/OPAC_TMPL_DIR/bootstrap/css/sco-rtl.css';
|
||||
#API_CGI_DIR
|
||||
$file_map->{'api/v1/swagger/swagger_bundle.json'} = 'blib/API_CGI_DIR/v1/swagger/swagger_bundle.json';
|
||||
|
||||
my $pl_files = {
|
||||
'rewrite-config.PL' => [
|
||||
|
|
|
|||
|
|
@ -51,7 +51,7 @@
|
|||
"js:watch": "webpack --mode development --watch",
|
||||
"js:build:prod": "webpack --mode production",
|
||||
"build": "yarn css:build && yarn js:build && yarn api:bundle",
|
||||
"build:prod": "yarn css:build:prod && yarn js:build:prod",
|
||||
"build:prod": "yarn css:build:prod && yarn js:build:prod && yarn api:bundle",
|
||||
"cypress": "cypress",
|
||||
"prettier": "prettier",
|
||||
"api:bundle": "redocly bundle --ext json api/v1/swagger/swagger.yaml --output api/v1/swagger/swagger_bundle.json"
|
||||
|
|
|
|||
Loading…
Reference in New Issue