feat(l10n): Add localization scripts/targets to payments-next

This commit is contained in:
Lisa Chan 2024-03-20 17:15:51 -04:00
Родитель 11289b5203
Коммит ad714efd00
Не найден ключ, соответствующий данной подписи
Идентификатор ключа GPG: 9052E177BBC5E764
2 изменённых файлов: 33 добавлений и 13 удалений

Просмотреть файл

@ -6,17 +6,31 @@ const PATH = process.env.PATH.split(':')
.filter((p) => !p.includes(process.env.TMPDIR))
.join(':');
const apps = [];
apps.push({
name: 'payments-next',
script: 'nx serve payments-next',
max_restarts: '1',
min_uptime: '2m',
env: {
PATH,
},
filter_env: ['npm_'],
});
if (process.env.CI !== 'true') {
apps.push({
name: 'payments-next-ftl',
script: 'nx watch-ftl payments-next',
cwd: __dirname,
filter_env: ['npm_'],
max_restarts: '1',
min_uptime: '2m',
time: true,
});
}
module.exports = {
apps: [
{
name: 'payments-next',
script: 'nx serve payments-next',
max_restarts: '1',
min_uptime: '2m',
env: {
PATH,
},
filter_env: ['npm_'],
},
],
apps,
};

Просмотреть файл

@ -25,7 +25,8 @@
}
]
}
}
},
"dependsOn": ["l10n-bundle"]
},
"serve": {
"executor": "@nx/next:server",
@ -80,14 +81,19 @@
"command": "pm2 delete apps/payments/next/pm2.config.js"
},
"l10n-merge": {
"dependsOn": ["l10n-prime"],
"command": "yarn grunt --gruntfile='apps/payments/next/Gruntfile.js' merge-ftl"
},
"l10n-prime": {
"command": "./_scripts/l10n/prime.sh apps/payments/next"
},
"l10n-bundle": {
"dependsOn": ["l10n-merge"],
"command": "./_scripts/l10n/bundle.sh apps/payments/next branding,react,payments"
},
"watch-ftl": {
"command": "yarn grunt --gruntfile='apps/payments/next/Gruntfile.js' watch-ftl"
},
"storybook": {
"executor": "@nx/storybook:storybook",
"options": {