mirror of
https://github.com/Alfresco/alfresco-ng2-components.git
synced 2025-05-12 17:04:57 +00:00
* Ordered builds for js-api to avoid racing condition on dist folder * Reverted changes to tmp
124 lines
3.5 KiB
JSON
124 lines
3.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": "@nrwl/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",
|
|
"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-esm5": {
|
|
"executor": "@nrwl/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": "@nrwl/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": "@nrwl/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": "@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"],
|
|
"options": {
|
|
"cwd": "dist/libs/js-api",
|
|
"commands": [
|
|
{
|
|
"command": "npm publish --tag {args.tag}",
|
|
"forwardAllArgs": true
|
|
}
|
|
]
|
|
}
|
|
},
|
|
"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": ["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"],
|
|
"parallel": false
|
|
},
|
|
"configurations": {
|
|
"ci": {
|
|
"ci": true,
|
|
"codeCoverage": true
|
|
}
|
|
}
|
|
}
|
|
},
|
|
"tags": []
|
|
}
|