mirror of
https://github.com/Alfresco/alfresco-ng2-components.git
synced 2026-09-02 17:53:30 +00:00
* AAE-48934 Migrate to @angular/build * cr * cr * fix watch issue * fix insights tests
105 lines
2.8 KiB
JSON
105 lines
2.8 KiB
JSON
{
|
|
"name": "core",
|
|
"$schema": "../../node_modules/nx/schemas/project-schema.json",
|
|
"projectType": "library",
|
|
"sourceRoot": "lib/core",
|
|
"prefix": "adf",
|
|
"targets": {
|
|
"build": {
|
|
"executor": "@angular/build:ng-packagr",
|
|
"options": {
|
|
"tsConfig": "lib/core/tsconfig.lib.json",
|
|
"project": "lib/core/ng-package.json"
|
|
},
|
|
"dependsOn": ["^build", "license"],
|
|
"configurations": {
|
|
"production": {
|
|
"project": "lib/core/ng-package.json",
|
|
"tsConfig": "lib/core/tsconfig.lib.prod.json"
|
|
},
|
|
"development": {
|
|
"tsConfig": "lib/core/tsconfig.lib.json"
|
|
}
|
|
},
|
|
"defaultConfiguration": "production"
|
|
},
|
|
"build-schematics": {
|
|
"executor": "@nx/js:tsc",
|
|
"outputs": ["{options.outputPath}"],
|
|
"options": {
|
|
"outputPath": "dist/libs/core/schematics/migrations",
|
|
"main": "lib/core/schematics/migrations/index.ts",
|
|
"tsConfig": "lib/core/tsconfig.schematics.json",
|
|
"assets": ["lib/core/schematics/migrations/collection.json"]
|
|
}
|
|
},
|
|
"test": {
|
|
"executor": "@angular/build:karma",
|
|
"options": {
|
|
"main": "lib/core/test.ts",
|
|
"tsConfig": "lib/core/tsconfig.spec.json",
|
|
"karmaConfig": "lib/core/karma.conf.js",
|
|
"watch": false,
|
|
"sourceMap": true,
|
|
"codeCoverage": true,
|
|
"stylePreprocessorOptions": {
|
|
"includePaths": ["lib", "lib/core/src/lib"]
|
|
}
|
|
}
|
|
},
|
|
"lint": {
|
|
"executor": "@nx/eslint:lint",
|
|
"options": {
|
|
"lintFilePatterns": [
|
|
"lib/core/**/*.ts",
|
|
"lib/core/**/*.html",
|
|
"lib/core/api/**/*.ts",
|
|
"lib/core/api/**/*.html",
|
|
"lib/core/auth/**/*.ts",
|
|
"lib/core/auth/**/*.html",
|
|
"lib/core/shell/**/*.ts",
|
|
"lib/core/shell/**/*.html",
|
|
"lib/core/breadcrumbs/**/*.ts",
|
|
"lib/core/breadcrumbs/**/*.html"
|
|
]
|
|
}
|
|
},
|
|
"stylelint": {
|
|
"executor": "nx:run-commands",
|
|
"options": {
|
|
"commands": [
|
|
{
|
|
"command": "stylelint \"lib/core/**/*.scss\" --config .stylelintrc.json"
|
|
}
|
|
]
|
|
}
|
|
},
|
|
"license": {
|
|
"executor": "nx:run-commands",
|
|
"options": {
|
|
"commands": [
|
|
{
|
|
"command": "node scripts/check-licenses.mjs --out licenses.txt --deny GPL,GPL-2.0"
|
|
}
|
|
]
|
|
}
|
|
},
|
|
"npm-publish": {
|
|
"executor": "nx:run-commands",
|
|
"dependsOn": ["build", "build-schematics"],
|
|
"options": {
|
|
"cwd": "dist/libs/core",
|
|
"commands": [
|
|
{
|
|
"command": "pnpm publish --no-git-checks --tag {args.tag}",
|
|
"forwardAllArgs": true
|
|
}
|
|
],
|
|
"stylePreprocessorOptions": {
|
|
"includePaths": ["lib", "lib/core/src/lib"]
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|