зеркало из https://github.com/mozilla/fxa.git
feat(l10n): Add localization scripts/targets to payments-next
This commit is contained in:
Родитель
11289b5203
Коммит
ad714efd00
|
@ -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": {
|
||||
|
|
Загрузка…
Ссылка в новой задаче