Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
E
etersoft-build-utils
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
korinf
etersoft-build-utils
Commits
d78abf7a
Commit
d78abf7a
authored
Jan 31, 2020
by
Vitaly Lipatov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
rpmgs: add composer.json support
parent
d2eb99bd
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
18 additions
and
0 deletions
+18
-0
rpmgs
bin/rpmgs
+18
-0
No files found.
bin/rpmgs
View file @
d78abf7a
...
...
@@ -357,6 +357,24 @@ update_predownloaded()
COMMITMSG
=
"update predownloaded-
$MODE
with a hook script"
fi
#### composer only part
if
[
-s
"./composer.json"
]
;
then
local
COMMITMSG
=
''
local
PRODUCTION
=
''
[
"
$MODE
"
=
"production"
]
&&
PRODUCTION
=
'--no-dev'
info
"Detected composer install hook, running composer install
$PRODUCTION
..."
a
=
composer
install
$PRODUCTION
||
fatal
COMMITMSG
=
"update php modules with composer install
$PRODUCTION
for
$VERSION
(see
$SDNAME
in .gear/rules)"
if
[
-s
$RGD
/.gear/predownloaded-postinstall-hook
]
;
then
info
"Detected .gear/predownloaded-postinstall-hook, running it ..."
sh
$RGD
/.gear/predownloaded-postinstall-hook
$MODE
$VERSION
fi
fi
#### end of composer only part
#### npm only part
if
[
-s
"./package.json"
]
;
then
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment