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
1
Merge Requests
1
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
ce915acf
Commit
ce915acf
authored
Mar 04, 2026
by
Vitaly Lipatov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
rpmgs: add yarn support for predownloaded vendoring
parent
366ccc68
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
32 additions
and
2 deletions
+32
-2
rpmgs
bin/rpmgs
+32
-2
No files found.
bin/rpmgs
View file @
ce915acf
...
...
@@ -642,8 +642,38 @@ update_predownloaded()
#### end of cargo only part
#### yarn only part
if
[
-s
"./yarn.lock"
]
;
then
local
COMMITMSG
=
''
local
PRODUCTION
=
''
[
"
$MODE
"
=
"production"
]
&&
PRODUCTION
=
'--production'
info
"Detected yarn.lock install hook, running ..."
docmd yarn
install
--frozen-lockfile
--ignore-scripts
$PRODUCTION
||
fatal
COMMITMSG
=
"update node_modules with yarn 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 ..."
$RUNHOOK
$RGD
/.gear/predownloaded-postinstall-hook
$MODE
$VERSION
fi
info
"Removing binaries ..."
if
[
-d
vendor
]
;
then
find vendor
-name
"*.a"
-type
f
-delete
-print
find vendor
-name
"*.so"
-type
f
-delete
-print
find vendor
-name
"*.dll"
-type
f
-delete
-print
fi
# drop all exclude node_modules
# TODO: correct .* removing
rm
-rf
$(
ls
-1
|
grep
-v
node_modules
)
.[a-zA-Z0-9]
*
# remove build related modules we have in system
rm
-rfv
node_modules/
{
npm,node-gyp
}
/ node_modules/.bin/
{
npm,npx,node-gyp
}
#### npm only part
if
[
-s
"./package.json"
]
;
then
el
if
[
-s
"./package.json"
]
;
then
# CHECKME: drop postinstall due run dev scripts during install --production
# replace with fake commands?
...
...
@@ -687,7 +717,7 @@ update_predownloaded()
#epm assure jq || fatal
#(cd node_modules && rm -rf $(jq -r -c '.devDependencies | keys[]' ../package.json))
fi
### end of npm part
### end of
yarn/
npm part
# some modules contains own .git
find
-type
d
-name
".git"
-print
-exec
rm
-rvf
"{}"
\;
...
...
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