mirror of
https://github.com/Alfresco/alfresco-ng2-components.git
synced 2026-09-02 17:53:30 +00:00
* [AAE-32905] - Improve ADF workflow * [ci:force] * [AAE-32905] - Improve cache use * [AAE-32905] - Improve cache use * [AAE-32905] - Improved workflows * [AAE-32905] - Checking cache * [AAE-32905] - Checking cache * [AAE-32905] - Fix cli * [AAE-32905] - Fix cache * [AAE-32905] - Fix cache * [AAE-32905] - Fix cache * [AAE-32905] - improving workflow and adding some storybook tests * [AAE-32905] - improving workflow and adding some storybook tests * [AAE-32905] - Added more improvements * [AAE-32905] - Added more improvements * [AAE-32905] - bugfix * [AAE-32905] - Added missing part to the cache * [AAE-32905] - bugfix * [AAE-32905] - fixed cache poisoning * [AAE-32905] - timing jobs * [AAE-32905] - chosen to build all together as it's more efficient * [AAE-32905] - Fixed script injection issue
118 lines
3.3 KiB
JSON
118 lines
3.3 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",
|
|
"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
|
|
}
|
|
}
|
|
}
|
|
}
|