mirror of
https://github.com/Alfresco/alfresco-ng2-components.git
synced 2026-09-09 18:03:21 +00:00
* [AAE-0000] - Fixed js-api error index.js * [AAE-46684] - readding js-api bundle
101 lines
2.6 KiB
JSON
101 lines
2.6 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: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/jest:jest",
|
|
"outputs": ["{workspaceRoot}/coverage/{projectRoot}"],
|
|
"options": {
|
|
"jestConfig": "lib/js-api/jest.config.ts",
|
|
"passWithNoTests": true
|
|
}
|
|
}
|
|
}
|
|
}
|