зеркало из https://github.com/mozilla/fxa.git
123 строки
3.4 KiB
JSON
123 строки
3.4 KiB
JSON
{
|
|
"name": "payments-next",
|
|
"$schema": "../../../node_modules/nx/schemas/project-schema.json",
|
|
"sourceRoot": "apps/payments/next",
|
|
"projectType": "application",
|
|
"targets": {
|
|
"build": {
|
|
"executor": "@nx/next:build",
|
|
"outputs": ["{options.outputPath}"],
|
|
"defaultConfiguration": "production",
|
|
"options": {
|
|
"outputPath": "dist/apps/payments/next",
|
|
"postcssConfig": "apps/payments/next/postcss.config.js"
|
|
},
|
|
"configurations": {
|
|
"development": {
|
|
"outputPath": "apps/payments/next"
|
|
}
|
|
},
|
|
"dependsOn": ["l10n-bundle"]
|
|
},
|
|
"serve": {
|
|
"executor": "@nx/next:server",
|
|
"defaultConfiguration": "development",
|
|
"options": {
|
|
"buildTarget": "payments-next:build",
|
|
"dev": true,
|
|
"port": 3035,
|
|
"postcssConfig": "apps/payments/next/postcss.config.js"
|
|
},
|
|
"configurations": {
|
|
"development": {
|
|
"buildTarget": "payments-next:build:development",
|
|
"dev": true
|
|
},
|
|
"production": {
|
|
"buildTarget": "payments-next:build:production",
|
|
"dev": false
|
|
}
|
|
}
|
|
},
|
|
"export": {
|
|
"executor": "@nx/next:export",
|
|
"options": {
|
|
"buildTarget": "payments-next:build:production"
|
|
}
|
|
},
|
|
"test-unit": {
|
|
"executor": "@nx/jest:jest",
|
|
"outputs": ["{workspaceRoot}/coverage/{projectRoot}"],
|
|
"options": {
|
|
"jestConfig": "apps/payments/next/jest.config.ts"
|
|
}
|
|
},
|
|
"lint": {
|
|
"executor": "@nx/linter:eslint",
|
|
"outputs": ["{options.outputFile}"],
|
|
"options": {
|
|
"lintFilePatterns": ["apps/payments/next/**/*.{ts,tsx,js,jsx}"]
|
|
}
|
|
},
|
|
"start": {
|
|
"command": "pm2 start apps/payments/next/pm2.config.js"
|
|
},
|
|
"stop": {
|
|
"command": "pm2 stop apps/payments/next/pm2.config.js"
|
|
},
|
|
"restart": {
|
|
"command": "pm2 restart apps/payments/next/pm2.config.js"
|
|
},
|
|
"delete": {
|
|
"command": "pm2 delete apps/payments/next/pm2.config.js"
|
|
},
|
|
"l10n-merge": {
|
|
"dependsOn": ["l10n-convert"],
|
|
"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"
|
|
},
|
|
"l10n-convert": {
|
|
"dependsOn": ["l10n-prime"],
|
|
"command": "node -r esbuild-register apps/payments/next/app/_lib/scripts/convert.ts"
|
|
},
|
|
"ztest": {
|
|
"command": "node -r esbuild-register apps/payments/next/config/index.ts"
|
|
},
|
|
"storybook": {
|
|
"executor": "@nx/storybook:storybook",
|
|
"options": {
|
|
"port": 4400,
|
|
"configDir": "apps/payments/next/.storybook"
|
|
},
|
|
"configurations": {
|
|
"ci": {
|
|
"quiet": true
|
|
}
|
|
}
|
|
},
|
|
"build-storybook": {
|
|
"executor": "@nx/storybook:build",
|
|
"outputs": ["{options.outputDir}"],
|
|
"options": {
|
|
"outputDir": "dist/storybook/payments-next",
|
|
"configDir": "apps/payments/next/.storybook"
|
|
},
|
|
"configurations": {
|
|
"ci": {
|
|
"quiet": true
|
|
}
|
|
}
|
|
}
|
|
},
|
|
"tags": ["app", "payments", "type:sp3"]
|
|
}
|