bundles/{element-web,hedgedoc,powerdnsadmin}: use 'yarn install --ignore-scripts'

This commit is contained in:
Franzi 2021-11-09 18:08:31 +01:00
parent e6428ce029
commit 8f6b8632f5
Signed by: kunsi
GPG key ID: 12E3D2136B818350
3 changed files with 15 additions and 4 deletions

View file

@ -27,7 +27,12 @@ files = {
actions = {
'element-web_yarn': {
'command': 'cd /opt/element-web && npm install yarn && node_modules/yarn/bin/yarn install && node_modules/yarn/bin/yarn build',
'command': ' && '.join([
'cd /opt/element-web',
'npm install yarn',
'node_modules/yarn/bin/yarn install --pure-lockfile --ignore-scripts',
'node_modules/yarn/bin/yarn build',
]),
'needs': {
'pkg_apt:nodejs',
},

View file

@ -56,8 +56,8 @@ actions = {
'command': ' && '.join([
'cd /opt/hedgedoc',
'npm install yarn',
'node_modules/yarn/bin/yarn install --production=true --pure-lockfile',
'node_modules/yarn/bin/yarn install',
'node_modules/yarn/bin/yarn install --production=true --pure-lockfile --ignore-scripts',
'node_modules/yarn/bin/yarn install --ignore-scripts',
'node_modules/yarn/bin/yarn build',
]),
'needs': {

View file

@ -57,7 +57,13 @@ actions = {
},
'powerdnsadmin_compile_assets': {
'triggered': True,
'command': 'cd /opt/powerdnsadmin/src && npm install yarn && node_modules/yarn/bin/yarn install --pure-lockfile && FLASK_APP=/opt/powerdnsadmin/src/powerdnsadmin/__init__.py /opt/powerdnsadmin/venv/bin/flask assets build && chown -R powerdnsadmin:powerdnsadmin /opt/powerdnsadmin/src/powerdnsadmin/static/',
'command': ' && '.join([
'cd /opt/powerdnsadmin/src',
'npm install yarn',
'node_modules/yarn/bin/yarn install --pure-lockfile --ignore-scripts',
'FLASK_APP=/opt/powerdnsadmin/src/powerdnsadmin/__init__.py /opt/powerdnsadmin/venv/bin/flask assets build',
'chown -R powerdnsadmin:powerdnsadmin /opt/powerdnsadmin/src/powerdnsadmin/static/',
]),
'needs': {
'action:powerdnsadmin_install_deps',
'pkg_apt:',