mirror of
https://github.com/Alfresco/alfresco-ng2-components.git
synced 2026-04-23 22:30:37 +00:00
117 lines
3.2 KiB
JSON
117 lines
3.2 KiB
JSON
{
|
|
"name": "js-api",
|
|
"$schema": "../../node_modules/nx/schemas/project-schema.json",
|
|
"sourceRoot": "lib/js-api",
|
|
"projectType": "library",
|
|
"prefix": "adf",
|
|
"tags": [],
|
|
"targets": {
|
|
"build": {
|
|
"executor": "@nx/js:tsc",
|
|
"outputs": ["{options.outputPath}"],
|
|
"dependsOn": ["build-esm5"],
|
|
"options": {
|
|
"outputPath": "dist/libs/js-api/typings",
|
|
"main": "lib/js-api/src/index.ts",
|
|
"tsConfig": "lib/js-api/tsconfig/tsconfig.types.json"
|
|
},
|
|
"configurations": {
|
|
"test": {
|
|
"outputPath": "dist/tmp/libs/js-api",
|
|
"tsConfig": "lib/js-api/tsconfig.spec.json",
|
|
"assets": ["lib/js-api/test/mockObjects/assets/**/*"]
|
|
}
|
|
}
|
|
},
|
|
"build-esm5": {
|
|
"executor": "@nx/js:tsc",
|
|
"outputs": ["{options.outputPath}"],
|
|
"dependsOn": ["build-esm2015"],
|
|
"options": {
|
|
"outputPath": "dist/libs/js-api/esm5",
|
|
"main": "lib/js-api/src/index.ts",
|
|
"tsConfig": "lib/js-api/tsconfig/tsconfig.esm5.json"
|
|
}
|
|
},
|
|
"build-esm2015": {
|
|
"executor": "@nx/js:tsc",
|
|
"outputs": ["{options.outputPath}"],
|
|
"dependsOn": ["build-cjs"],
|
|
"options": {
|
|
"outputPath": "dist/libs/js-api/esm2015",
|
|
"main": "lib/js-api/src/index.ts",
|
|
"tsConfig": "lib/js-api/tsconfig/tsconfig.esm2015.json"
|
|
}
|
|
},
|
|
"build-cjs": {
|
|
"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/tsconfig.cjs.json",
|
|
"assets": ["lib/js-api/*.md", "lib/js-api/LICENSE.txt"]
|
|
}
|
|
},
|
|
"build-types": {
|
|
"executor": "@nx/js:tsc",
|
|
"outputs": ["{options.outputPath}"],
|
|
"options": {
|
|
"outputPath": "dist/libs/js-api/typings",
|
|
"main": "lib/js-api/src/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": "npm publish --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 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": ["build"]
|
|
},
|
|
"test": {
|
|
"executor": "@nx/jest:jest",
|
|
"outputs": ["{workspaceRoot}/coverage/{projectRoot}"],
|
|
"options": {
|
|
"jestConfig": "lib/js-api/jest.config.ts",
|
|
"passWithNoTests": true
|
|
}
|
|
}
|
|
}
|
|
}
|