mirror of
https://github.com/Alfresco/alfresco-ng2-components.git
synced 2025-07-24 17:32:15 +00:00
Fix/AAE 24522 js api build (#10010)
* Fixing js-api build * AAE-24522 js api build normally * [ci:force] * [ci:force] * [ci:force] - package-lock update * [ci:force] - fixing dependsOn for cli and testing * [ci:force] - These changes needs to be reviewed
This commit is contained in:
@@ -8,36 +8,61 @@
|
||||
"build": {
|
||||
"executor": "@nrwl/js:tsc",
|
||||
"outputs": ["{options.outputPath}"],
|
||||
"dependsOn": ["build-esm5", "build-esm2015", "build-cjs"],
|
||||
"options": {
|
||||
"outputPath": "dist/libs/js-api",
|
||||
"outputPath": "dist/libs/js-api/typings",
|
||||
"main": "lib/js-api/src/index.ts",
|
||||
"tsConfig": "lib/js-api/tsconfig.lib.json",
|
||||
"assets": ["lib/js-api/*.md"],
|
||||
"externalBuildTargets": [
|
||||
"build"
|
||||
]
|
||||
"tsConfig": "lib/js-api/tsconfig/tsconfig.types.json",
|
||||
"externalBuildTargets": ["build"]
|
||||
},
|
||||
"configurations": {
|
||||
"test": {
|
||||
"outputPath": "dist/tmp/libs/js-api",
|
||||
"tsConfig": "lib/js-api/tsconfig.spec.json",
|
||||
"assets": [
|
||||
"lib/js-api/test/mockObjects/assets/**/*"
|
||||
]
|
||||
"assets": ["lib/js-api/test/mockObjects/assets/**/*"]
|
||||
}
|
||||
}
|
||||
},
|
||||
"build-all": {
|
||||
"executor": "nx:run-commands",
|
||||
"build-cjs": {
|
||||
"executor": "@nrwl/js:tsc",
|
||||
"outputs": ["{options.outputPath}"],
|
||||
"options": {
|
||||
"commands": [
|
||||
"npm run js_api_build"
|
||||
]
|
||||
"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-esm5": {
|
||||
"executor": "@nrwl/js:tsc",
|
||||
"outputs": ["{options.outputPath}"],
|
||||
"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": "@nrwl/js:tsc",
|
||||
"outputs": ["{options.outputPath}"],
|
||||
"options": {
|
||||
"outputPath": "dist/libs/js-api/esm2015",
|
||||
"main": "lib/js-api/src/index.ts",
|
||||
"tsConfig": "lib/js-api/tsconfig/tsconfig.esm2015.json"
|
||||
}
|
||||
},
|
||||
"build-types": {
|
||||
"executor": "@nrwl/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-all" ],
|
||||
"dependsOn": ["build"],
|
||||
"options": {
|
||||
"cwd": "dist/libs/js-api",
|
||||
"commands": [
|
||||
@@ -64,9 +89,7 @@
|
||||
}
|
||||
]
|
||||
},
|
||||
"dependsOn": [
|
||||
"copyToNodeModules"
|
||||
]
|
||||
"dependsOn": ["copyToNodeModules"]
|
||||
},
|
||||
"copyToNodeModules": {
|
||||
"executor": "nx:run-commands",
|
||||
@@ -77,22 +100,13 @@
|
||||
}
|
||||
]
|
||||
},
|
||||
"dependsOn": [
|
||||
{
|
||||
"projects": "self",
|
||||
"target": "build-all"
|
||||
}
|
||||
]
|
||||
"dependsOn": ["build"]
|
||||
},
|
||||
"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"
|
||||
],
|
||||
"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": {
|
||||
|
Reference in New Issue
Block a user