[MIGRATION] - rebased after the move of AlfrescoApiService

This commit is contained in:
VitoAlbano 2024-09-09 14:31:32 +01:00 committed by Ehsan Rezaei
parent e4f7d5d47c
commit f143ff04a9
6 changed files with 38 additions and 16 deletions

View File

@ -24,13 +24,13 @@
"defaultConfiguration": "production"
},
"build-schematics": {
"executor": "nx:run-commands",
"executor": "@nrwl/js:tsc",
"outputs": ["{options.outputPath}"],
"options": {
"commands": [
{
"command": "npx tsc -p lib/core/tsconfig.schematics.json && cp lib/core/schematics/migrations/collection.json dist/libs/core/schematics/migrations/collection.json"
}
]
"outputPath": "dist/libs/core/schematics/migrations",
"main": "lib/core/schematics/migrations/index.ts",
"tsConfig": "lib/core/tsconfig.schematics.json",
"externalBuildTargets": ["build-schematics"]
}
},
"test": {

View File

@ -1,5 +1,5 @@
{
"$schema": "../../../node_modules/@angular-devkit/schematics/collection-schema.json",
"$schema": "../../../../node_modules/@angular-devkit/schematics/collection-schema.json",
"schematics": {
"move-out-alfresco-api": {
"description": "Update alfresco-api imports",

View File

@ -21,7 +21,8 @@
"sourceMap": true,
"strictNullChecks": true,
"target": "es2015",
"types": []
"typeRoots": ["node_modules/@types"],
"types": ["node"]
},
"include": [
"migrations/**/*"

View File

@ -20,7 +20,8 @@
"sourceMap": true,
"strictNullChecks": true,
"target": "es2015",
"types": []
"typeRoots": ["node_modules/@types"],
"types": ["node"]
},
"include": [
"schematics/**/*"

View File

@ -18,7 +18,7 @@
"outDir": "./.out",
"lib": ["es2018", "dom"],
"typeRoots": ["node_modules/@types"],
"types": []
"types": ["node"]
},
"exclude": [".history", "*/node_modules", "config", "performance", "coverage", "node_modules", "package", "dist", "test"]
}

32
nx.json
View File

@ -7,25 +7,45 @@
"$schema": "./node_modules/nx/schemas/nx-schema.json",
"targetDefaults": {
"build": {
"dependsOn": ["^build"],
"inputs": ["production", "^production"]
"dependsOn": [
"^build"
],
"inputs": [
"production",
"^production"
]
},
"build-storybook": {
"inputs": ["default", "^production", "{projectRoot}/.storybook/**/*", "{projectRoot}/tsconfig.storybook.json"]
"inputs": [
"default",
"^production",
"{projectRoot}/.storybook/**/*",
"{projectRoot}/tsconfig.storybook.json"
]
}
},
"tasksRunnerOptions": {
"default": {
"runner": "nx/tasks-runners/default",
"options": {
"cacheableOperations": ["build", "lint", "test", "stylelint"],
"cacheableOperations": [
"build",
"lint",
"test",
"stylelint"
],
"cacheDirectory": "nxcache",
"runtimeCacheInputs": ["node -v"]
"runtimeCacheInputs": [
"node -v"
]
}
}
},
"namedInputs": {
"default": ["{projectRoot}/**/*", "sharedGlobals"],
"default": [
"{projectRoot}/**/*",
"sharedGlobals"
],
"sharedGlobals": [
"{workspaceRoot}/angular.json",
"{workspaceRoot}/demo-shell/src/index.html",