Files
firefox-accounts-mirror/apps/payments/next/project.json
dschom d96797ae6a task(CI): Improve nx caching for CI pipelines
Because:
- Not all CI operations where taking advantage of NX caches

This Commit:
- Adjusts nx.json config to ensure correct caching behavior
- Adjusts nx.json config to ensure proper target chains. ie build is dependent on pre-build
- Uses nx to directly run integration tests
- Uses nx to directly run unit tests
- Phases out dependency on generated .list files
- Ensures 'start up' for services for functional tests is done with nx and uses nx caches.
- Creates nx tags to facilitate test commands
- Fixes linter errors encountered
- Updates docker images to nx for builds
- Updates nx ignore files
2023-08-29 11:19:54 -07:00

84 lines
2.2 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"
},
"production": {}
}
},
"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",
"passWithNoTests": true
},
"configurations": {
"ci": {
"ci": true,
"codeCoverage": true
}
}
},
"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"
}
},
"tags": ["app", "payments"]
}