mirror of
https://github.com/Alfresco/alfresco-ng2-components.git
synced 2025-07-24 17:32:15 +00:00
107 lines
2.5 KiB
JSON
107 lines
2.5 KiB
JSON
{
|
|
"name": "js-api",
|
|
"$schema": "../../node_modules/nx/schemas/project-schema.json",
|
|
"sourceRoot": "lib/js-api",
|
|
"projectType": "library",
|
|
"prefix": "adf",
|
|
"targets": {
|
|
"build": {
|
|
"executor": "@nx/js:tsc",
|
|
"outputs": ["{options.outputPath}"],
|
|
"options": {
|
|
"outputPath": "dist/libs/js-api",
|
|
"main": "lib/js-api/src/index.ts",
|
|
"tsConfig": "lib/js-api/tsconfig.lib.json",
|
|
"assets": ["lib/js-api/*.md"],
|
|
"externalBuildTargets": [
|
|
"build"
|
|
]
|
|
},
|
|
"configurations": {
|
|
"test": {
|
|
"outputPath": "dist/tmp/libs/js-api",
|
|
"tsConfig": "lib/js-api/tsconfig.spec.json",
|
|
"assets": [
|
|
"lib/js-api/test/mockObjects/assets/**/*"
|
|
]
|
|
}
|
|
}
|
|
},
|
|
"build-all": {
|
|
"executor": "nx:run-commands",
|
|
"options": {
|
|
"commands": [
|
|
"npm run js_api_build"
|
|
]
|
|
}
|
|
},
|
|
"publish": {
|
|
"executor": "nx:run-commands",
|
|
"options": {
|
|
"command": "node tools/scripts/publish.mjs lib-js-api {args.ver} {args.tag}"
|
|
},
|
|
"dependsOn": [
|
|
{
|
|
"projects": "self",
|
|
"target": "build-all"
|
|
}
|
|
]
|
|
},
|
|
"lint": {
|
|
"executor": "@nrwl/linter:eslint",
|
|
"outputs": ["{options.outputFile}"],
|
|
"options": {
|
|
"lintFilePatterns": ["lib/js-api/**/*.ts"]
|
|
}
|
|
},
|
|
"bundle": {
|
|
"executor": "nx:run-commands",
|
|
"options": {
|
|
"commands": [
|
|
{
|
|
"command": "echo cli bundle created"
|
|
}
|
|
]
|
|
},
|
|
"dependsOn": [
|
|
"copyToNodeModules"
|
|
]
|
|
},
|
|
"copyToNodeModules": {
|
|
"executor": "nx:run-commands",
|
|
"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": [
|
|
{
|
|
"projects": "self",
|
|
"target": "build-all"
|
|
}
|
|
]
|
|
},
|
|
"test": {
|
|
"executor": "nx:run-commands",
|
|
"outputs": ["{workspaceRoot}/coverage/{projectRoot}"],
|
|
"options": {
|
|
"commands": [
|
|
"nx run js-api:build:test",
|
|
"mocha --full-trace --config lib/js-api/.mocharc.json",
|
|
"rm -fr dist/tmp/libs/js-api"
|
|
],
|
|
"parallel": false
|
|
},
|
|
"configurations": {
|
|
"ci": {
|
|
"ci": true,
|
|
"codeCoverage": true
|
|
}
|
|
}
|
|
}
|
|
},
|
|
"tags": []
|
|
}
|