mirror of
https://github.com/Alfresco/alfresco-ng2-components.git
synced 2026-09-02 17:53:30 +00:00
* [AAE-46514] - Fix release workflow * [AAE-46514] - Fix release workflow - devDependencies * [AAE-46514] - Command parameters are wrong when setting now the options * [AAE-46514] - It should call the script not the standard command * [AAE-46514] - fixed path for eslint plugin publish
75 lines
1.8 KiB
JSON
75 lines
1.8 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",
|
|
"outputs": ["{workspaceRoot}/dist/libs/cli"],
|
|
"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",
|
|
"cache": false,
|
|
"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": "@nx/eslint:lint",
|
|
"options": {
|
|
"lintFilePatterns": ["lib/cli/**/*.ts", "lib/cli/**/*.html"]
|
|
}
|
|
},
|
|
"npm-publish": {
|
|
"executor": "nx:run-commands",
|
|
"dependsOn": ["build"],
|
|
"options": {
|
|
"cwd": "dist/libs/cli",
|
|
"commands": [
|
|
{
|
|
"command": "pnpm publish --no-git-checks --tag {args.tag}",
|
|
"forwardAllArgs": true
|
|
}
|
|
]
|
|
}
|
|
}
|
|
}
|
|
}
|