Files
alfresco-ng2-components/lib/js-api/project.json
T
Bartosz Sekula 3f232e75bc AAE-48934 Eslint v9 migration (#12110)
* update

* update

* update

* working

* cr

* cr

* update

* use nx boundaries

* fixes

* fixes

* fixes

* cr

* cr

* update

* update

* update

* cr

* fix null

* cr

* cr

* cr

* cr

* cr

* update

* update

* update

* update

* update

* remove some duplications

* fix units
2026-08-03 12:12:48 +02:00

104 lines
2.8 KiB
JSON

{
"name": "js-api",
"$schema": "../../node_modules/nx/schemas/project-schema.json",
"sourceRoot": "lib/js-api",
"projectType": "library",
"prefix": "adf",
"tags": ["scope:js-api", "type:api"],
"targets": {
"build": {
"executor": "nx:noop",
"dependsOn": ["build-esm2015", "build-types"],
"configurations": {
"test": {
"dependsOn": []
}
}
},
"build-cjs": {
"executor": "@nx/js:tsc",
"outputs": ["{options.outputPath}"],
"options": {
"outputPath": "dist/libs/js-api",
"main": "lib/js-api/index.ts",
"tsConfig": "lib/js-api/tsconfig/tsconfig.cjs.json",
"assets": ["lib/js-api/*.md", "lib/js-api/LICENSE.txt"]
}
},
"build-esm2015": {
"executor": "@nx/js:tsc",
"outputs": ["{options.outputPath}"],
"dependsOn": ["build-cjs"],
"options": {
"outputPath": "dist/libs/js-api/esm2015",
"main": "lib/js-api/index.ts",
"tsConfig": "lib/js-api/tsconfig/tsconfig.esm2015.json"
}
},
"build-types": {
"executor": "@nx/js:tsc",
"outputs": ["{options.outputPath}"],
"dependsOn": ["build-cjs"],
"options": {
"outputPath": "dist/libs/js-api/typings",
"main": "lib/js-api/index.ts",
"tsConfig": "lib/js-api/tsconfig/tsconfig.types.json"
}
},
"npm-publish": {
"executor": "nx:run-commands",
"dependsOn": ["build"],
"options": {
"cwd": "dist/libs/js-api",
"commands": [
{
"command": "pnpm publish --no-git-checks --tag {args.tag}",
"forwardAllArgs": true
}
]
}
},
"lint": {
"executor": "@nx/eslint:lint",
"outputs": ["{options.outputFile}"],
"options": {
"lintFilePatterns": ["lib/js-api/**/*.ts"]
}
},
"bundle": {
"executor": "nx:run-commands",
"options": {
"commands": [
{
"command": "echo js-api bundle created"
}
]
},
"dependsOn": ["copyToNodeModules"]
},
"copyToNodeModules": {
"executor": "nx:run-commands",
"cache": false,
"options": {
"commands": [
{
"command": "rm -rf ./node_modules/@alfresco/js-api/ && mkdir -p ./node_modules/@alfresco/js-api/ && cp -R ./dist/libs/js-api/* ./node_modules/@alfresco/js-api/"
}
]
},
"dependsOn": ["build"]
},
"test": {
"executor": "nx:run-commands",
"outputs": ["{workspaceRoot}/coverage/{projectRoot}"],
"options": {
"commands": [
{
"command": "TS_NODE_PROJECT=lib/js-api/tsconfig.spec.json TS_NODE_TRANSPILE_ONLY=true node --require ts-node/register --test 'lib/js-api/test/**/*.spec.ts'"
}
]
}
}
}
}