mirror of
https://github.com/Alfresco/alfresco-ng2-components.git
synced 2025-05-12 17:04:57 +00:00
* Release 7.0.0-alpha.1+angular.15 * Fix - removed installDeps as it leads to issues and the lib builds anyway * Use 7.9.0 js-api for cli * Cli fix * Use 7.8.0 --------- Co-authored-by: VitoAlbano <vito.albano.123@gmail.com>
73 lines
1.7 KiB
JSON
73 lines
1.7 KiB
JSON
{
|
|
"name": "cli",
|
|
"$schema": "../../node_modules/nx/schemas/project-schema.json",
|
|
"sourceRoot": "lib/cli",
|
|
"projectType": "library",
|
|
"prefix": "adf",
|
|
"targets": {
|
|
"build": {
|
|
"executor": "nx:run-commands",
|
|
"options": {
|
|
"command": "cd lib/cli && npm run dist"
|
|
},
|
|
"configurations": {
|
|
"production": {
|
|
"tsConfig": "lib/cli/tsconfig.json"
|
|
}
|
|
},
|
|
"defaultConfiguration": "production"
|
|
},
|
|
"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/adf-cli/ && mkdir -p ./node_modules/@alfresco/adf-cli/ && cp -R ./dist/libs/cli/* ./node_modules/@alfresco/adf-cli/"
|
|
}
|
|
]
|
|
},
|
|
"dependsOn": ["installDeps", "build"]
|
|
},
|
|
"installDeps": {
|
|
"executor": "nx:run-commands",
|
|
"options": {
|
|
"commands": [
|
|
{
|
|
"command": "cd lib/cli && npm i"
|
|
}
|
|
]
|
|
}
|
|
},
|
|
"lint": {
|
|
"executor": "@nrwl/linter:eslint",
|
|
"options": {
|
|
"lintFilePatterns": ["lib/cli/**/*.ts", "lib/cli/**/*.html"]
|
|
}
|
|
},
|
|
"npm-publish": {
|
|
"executor": "nx:run-commands",
|
|
"dependsOn": ["build"],
|
|
"options": {
|
|
"cwd": "dist/libs/cli",
|
|
"commands": [
|
|
{
|
|
"command": "npm publish --tag {args.tag}",
|
|
"forwardAllArgs": true
|
|
}
|
|
]
|
|
}
|
|
}
|
|
}
|
|
}
|