mirror of
https://github.com/Alfresco/alfresco-ng2-components.git
synced 2025-05-12 17:04:57 +00:00
* Fixing js-api build * AAE-24522 js api build normally * [ci:force] * [ci:force] * [ci:force] - package-lock update * [ci:force] - fixing dependsOn for cli and testing * [ci:force] - These changes needs to be reviewed
76 lines
2.0 KiB
JSON
76 lines
2.0 KiB
JSON
{
|
|
"name": "testing",
|
|
"$schema": "../../node_modules/nx/schemas/project-schema.json",
|
|
"sourceRoot": "lib/testing/src",
|
|
"projectType": "library",
|
|
"prefix": "adf",
|
|
"targets": {
|
|
"build": {
|
|
"executor": "@nrwl/webpack:webpack",
|
|
"options": {
|
|
"projectRoot": "lib/testing",
|
|
"outputPath": "dist/libs/testing",
|
|
"main": "lib/testing/index.ts",
|
|
"generatePackageJson": true,
|
|
"tsConfig": "lib/testing/tsconfig.lib.prod.json",
|
|
"stylePreprocessorOptions": {
|
|
"includePaths": ["lib", "lib/core/src/lib"]
|
|
},
|
|
"target": "node",
|
|
"compiler": "tsc"
|
|
},
|
|
"configurations": {
|
|
"production": {
|
|
"projectRoot": "lib/testing",
|
|
"outputPath": "dist/libs/testing",
|
|
"main": "lib/testing/index.ts",
|
|
"generatePackageJson": true,
|
|
"tsConfig": "lib/testing/tsconfig.lib.prod.json"
|
|
}
|
|
},
|
|
"defaultConfiguration": "production"
|
|
},
|
|
"lint": {
|
|
"executor": "@nrwl/linter:eslint",
|
|
"options": {
|
|
"lintFilePatterns": ["lib/testing/**/*.ts", "lib/testing/**/*.html"]
|
|
}
|
|
},
|
|
"bundle": {
|
|
"executor": "nx:run-commands",
|
|
"options": {
|
|
"commands": [
|
|
{
|
|
"command": "echo testing bundle created"
|
|
}
|
|
]
|
|
},
|
|
"dependsOn": ["copyToNodeModules"]
|
|
},
|
|
"copyToNodeModules": {
|
|
"executor": "nx:run-commands",
|
|
"options": {
|
|
"commands": [
|
|
{
|
|
"command": "rm -rf ./node_modules/@alfresco/adf-testing/ && mkdir -p ./node_modules/@alfresco/adf-testing/ && cp -R ./dist/libs/testing/* ./node_modules/@alfresco/adf-testing/"
|
|
}
|
|
]
|
|
},
|
|
"dependsOn": ["build"]
|
|
},
|
|
"npm-publish": {
|
|
"executor": "nx:run-commands",
|
|
"dependsOn": ["build"],
|
|
"options": {
|
|
"cwd": "dist/libs/testing",
|
|
"commands": [
|
|
{
|
|
"command": "npm publish --tag {args.tag}",
|
|
"forwardAllArgs": true
|
|
}
|
|
]
|
|
}
|
|
}
|
|
}
|
|
}
|