mirror of
https://github.com/Alfresco/alfresco-ng2-components.git
synced 2025-05-26 17:24:56 +00:00
[ci:force] - fixed build for testing 1
This commit is contained in:
parent
579f3fa801
commit
1def5dcc0a
@ -45,10 +45,7 @@
|
||||
"browserTarget": "content-services:storybook",
|
||||
"configDir": "lib/content-services/.storybook",
|
||||
"compodoc": false,
|
||||
"styles": [
|
||||
"node_modules/cropperjs/dist/cropper.min.css",
|
||||
"node_modules/pdfjs-dist/web/pdf_viewer.css"
|
||||
],
|
||||
"styles": ["node_modules/cropperjs/dist/cropper.min.css", "node_modules/pdfjs-dist/web/pdf_viewer.css"],
|
||||
"stylePreprocessorOptions": {
|
||||
"includePaths": ["lib", "lib/core/src/lib"]
|
||||
}
|
||||
@ -66,10 +63,7 @@
|
||||
"configDir": "lib/content-services/.storybook",
|
||||
"outputDir": "dist/storybook/content-services",
|
||||
"compodoc": false,
|
||||
"styles": [
|
||||
"node_modules/cropperjs/dist/cropper.min.css",
|
||||
"node_modules/pdfjs-dist/web/pdf_viewer.css"
|
||||
],
|
||||
"styles": ["node_modules/cropperjs/dist/cropper.min.css", "node_modules/pdfjs-dist/web/pdf_viewer.css"],
|
||||
"stylePreprocessorOptions": {
|
||||
"includePaths": ["lib", "lib/core/src/lib"]
|
||||
}
|
||||
|
@ -71,10 +71,7 @@
|
||||
"browserTarget": "core:build",
|
||||
"configDir": "lib/core/.storybook",
|
||||
"compodoc": false,
|
||||
"styles": [
|
||||
"node_modules/cropperjs/dist/cropper.min.css",
|
||||
"node_modules/pdfjs-dist/web/pdf_viewer.css"
|
||||
],
|
||||
"styles": ["node_modules/cropperjs/dist/cropper.min.css", "node_modules/pdfjs-dist/web/pdf_viewer.css"],
|
||||
"stylePreprocessorOptions": {
|
||||
"includePaths": ["lib", "lib/core/src/lib"]
|
||||
}
|
||||
|
@ -45,10 +45,7 @@
|
||||
"browserTarget": "process-services-cloud:storybook",
|
||||
"configDir": "lib/process-services-cloud/.storybook",
|
||||
"compodoc": false,
|
||||
"styles": [
|
||||
"node_modules/cropperjs/dist/cropper.min.css",
|
||||
"node_modules/pdfjs-dist/web/pdf_viewer.css"
|
||||
],
|
||||
"styles": ["node_modules/cropperjs/dist/cropper.min.css", "node_modules/pdfjs-dist/web/pdf_viewer.css"],
|
||||
"stylePreprocessorOptions": {
|
||||
"includePaths": ["lib", "lib/core/src/lib"]
|
||||
}
|
||||
@ -66,10 +63,7 @@
|
||||
"configDir": "lib/process-services-cloud/.storybook",
|
||||
"outputDir": "dist/storybook/process-services-cloud",
|
||||
"compodoc": false,
|
||||
"styles": [
|
||||
"node_modules/cropperjs/dist/cropper.min.css",
|
||||
"node_modules/pdfjs-dist/web/pdf_viewer.css"
|
||||
],
|
||||
"styles": ["node_modules/cropperjs/dist/cropper.min.css", "node_modules/pdfjs-dist/web/pdf_viewer.css"],
|
||||
"stylePreprocessorOptions": {
|
||||
"includePaths": ["lib", "lib/core/src/lib"]
|
||||
}
|
||||
|
@ -14,10 +14,7 @@
|
||||
"stylePreprocessorOptions": {
|
||||
"includePaths": ["lib", "lib/core/src/lib"]
|
||||
},
|
||||
"styles": [
|
||||
"node_modules/cropperjs/dist/cropper.min.css",
|
||||
"node_modules/pdfjs-dist/web/pdf_viewer.css"
|
||||
]
|
||||
"styles": ["node_modules/cropperjs/dist/cropper.min.css", "node_modules/pdfjs-dist/web/pdf_viewer.css"]
|
||||
},
|
||||
"configurations": {
|
||||
"ci": {
|
||||
@ -32,10 +29,7 @@
|
||||
"configDir": "lib/stories/.storybook",
|
||||
"outputDir": "dist/storybook/stories",
|
||||
"compodoc": false,
|
||||
"styles": [
|
||||
"node_modules/cropperjs/dist/cropper.min.css",
|
||||
"node_modules/pdfjs-dist/web/pdf_viewer.css"
|
||||
],
|
||||
"styles": ["node_modules/cropperjs/dist/cropper.min.css", "node_modules/pdfjs-dist/web/pdf_viewer.css"],
|
||||
"stylePreprocessorOptions": {
|
||||
"includePaths": ["lib", "lib/core/src/lib"]
|
||||
}
|
||||
|
76
lib/testing/project.json
Normal file
76
lib/testing/project.json
Normal file
@ -0,0 +1,76 @@
|
||||
{
|
||||
"name": "testing",
|
||||
"$schema": "../../node_modules/nx/schemas/project-schema.json",
|
||||
"sourceRoot": "lib/testing/src",
|
||||
"projectType": "library",
|
||||
"prefix": "adf",
|
||||
"targets": {
|
||||
"build": {
|
||||
"executor": "@nrwl/webpack:webpack",
|
||||
"options": {
|
||||
"projectRoot": "lib/testing",
|
||||
"outputPath": "dist/libs/testing",
|
||||
"main": "lib/testing/index.ts",
|
||||
"generatePackageJson": true,
|
||||
"tsConfig": "lib/testing/tsconfig.lib.prod.json",
|
||||
"webpackConfig": "lib/testing/webpack.config.js",
|
||||
"stylePreprocessorOptions": {
|
||||
"includePaths": ["lib", "lib/core/src/lib"]
|
||||
},
|
||||
"target": "node",
|
||||
"compiler": "tsc"
|
||||
},
|
||||
"configurations": {
|
||||
"production": {
|
||||
"projectRoot": "lib/testing",
|
||||
"outputPath": "dist/libs/testing",
|
||||
"main": "lib/testing/index.ts",
|
||||
"generatePackageJson": true,
|
||||
"tsConfig": "lib/testing/tsconfig.lib.prod.json",
|
||||
}
|
||||
},
|
||||
"defaultConfiguration": "production"
|
||||
},
|
||||
"lint": {
|
||||
"executor": "@nrwl/linter:eslint",
|
||||
"options": {
|
||||
"lintFilePatterns": ["lib/testing/**/*.ts", "lib/testing/**/*.html"]
|
||||
}
|
||||
},
|
||||
"bundle": {
|
||||
"executor": "nx:run-commands",
|
||||
"options": {
|
||||
"commands": [
|
||||
{
|
||||
"command": "echo testing bundle created"
|
||||
}
|
||||
]
|
||||
},
|
||||
"dependsOn": ["copyToNodeModules"]
|
||||
},
|
||||
"copyToNodeModules": {
|
||||
"executor": "nx:run-commands",
|
||||
"options": {
|
||||
"commands": [
|
||||
{
|
||||
"command": "rm -rf ./node_modules/@alfresco/adf-testing/ && mkdir -p ./node_modules/@alfresco/adf-testing/ && cp -R ./dist/libs/testing/* ./node_modules/@alfresco/adf-testing/"
|
||||
}
|
||||
]
|
||||
},
|
||||
"dependsOn": ["build"]
|
||||
},
|
||||
"npm-publish": {
|
||||
"executor": "nx:run-commands",
|
||||
"dependsOn": ["build"],
|
||||
"options": {
|
||||
"cwd": "dist/libs/testing",
|
||||
"commands": [
|
||||
{
|
||||
"command": "npm publish --tag {args.tag}",
|
||||
"forwardAllArgs": true
|
||||
}
|
||||
]
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
20
lib/testing/webpack.config.js
Normal file
20
lib/testing/webpack.config.js
Normal file
@ -0,0 +1,20 @@
|
||||
var NxAppWebpackPlugin = require('@nx/webpack/app-plugin').NxAppWebpackPlugin;
|
||||
var join = require('path').join;
|
||||
|
||||
module.exports = {
|
||||
output: {
|
||||
path: join(__dirname, '../../dist/libs/testing')
|
||||
},
|
||||
devServer: {
|
||||
port: 4200
|
||||
},
|
||||
plugins: [
|
||||
new NxAppWebpackPlugin({
|
||||
main: './src/index.ts',
|
||||
tsConfig: './tsconfig.lib.json',
|
||||
index: './src/index.ts',
|
||||
outputHashing: process.env['NODE_ENV'] === 'production' ? 'all' : 'none',
|
||||
optimization: process.env['NODE_ENV'] === 'production'
|
||||
})
|
||||
]
|
||||
};
|
166
migrations.json
Normal file
166
migrations.json
Normal file
@ -0,0 +1,166 @@
|
||||
{
|
||||
"migrations": [
|
||||
{
|
||||
"cli": "nx",
|
||||
"version": "17.0.0-beta.1",
|
||||
"description": "Updates the default cache directory to .nx/cache",
|
||||
"implementation": "./src/migrations/update-17-0-0/move-cache-directory",
|
||||
"package": "nx",
|
||||
"name": "17.0.0-move-cache-directory"
|
||||
},
|
||||
{
|
||||
"cli": "nx",
|
||||
"version": "17.0.0-beta.3",
|
||||
"description": "Use minimal config for tasksRunnerOptions",
|
||||
"implementation": "./src/migrations/update-17-0-0/use-minimal-config-for-tasks-runner-options",
|
||||
"package": "nx",
|
||||
"name": "17.0.0-use-minimal-config-for-tasks-runner-options"
|
||||
},
|
||||
{
|
||||
"version": "17.0.0-rc.1",
|
||||
"description": "Migration for v17.0.0-rc.1",
|
||||
"implementation": "./src/migrations/update-17-0-0/rm-default-collection-npm-scope",
|
||||
"package": "nx",
|
||||
"name": "rm-default-collection-npm-scope"
|
||||
},
|
||||
{
|
||||
"cli": "nx",
|
||||
"version": "17.3.0-beta.6",
|
||||
"description": "Updates the nx wrapper.",
|
||||
"implementation": "./src/migrations/update-17-3-0/update-nxw",
|
||||
"package": "nx",
|
||||
"name": "17.3.0-update-nx-wrapper"
|
||||
},
|
||||
{
|
||||
"cli": "nx",
|
||||
"version": "17-2-6-beta.1",
|
||||
"description": "Rename workspace rules from @nx/workspace/name to @nx/workspace-name",
|
||||
"implementation": "./src/migrations/update-17-2-6-rename-workspace-rules/rename-workspace-rules",
|
||||
"package": "@nx/eslint-plugin",
|
||||
"name": "update-17-2-6-rename-workspace-rules"
|
||||
},
|
||||
{
|
||||
"cli": "nx",
|
||||
"version": "17.0.2",
|
||||
"description": "Remove deprecated build options",
|
||||
"implementation": "./src/migrations/update-17-0-0/remove-deprecated-build-options",
|
||||
"package": "@nx/js",
|
||||
"name": "update-17-0-0-remove-deprecated-build-options"
|
||||
},
|
||||
{
|
||||
"cli": "nx",
|
||||
"version": "17.1.0-beta.5",
|
||||
"requires": { "@angular/core": ">=17.0.0" },
|
||||
"description": "Update the @angular/cli package version to ~17.0.0.",
|
||||
"factory": "./src/migrations/update-17-1-0/update-angular-cli",
|
||||
"package": "@nx/angular",
|
||||
"name": "update-angular-cli-version-17-0-0"
|
||||
},
|
||||
{
|
||||
"cli": "nx",
|
||||
"version": "17.1.0-beta.5",
|
||||
"requires": { "@angular/core": ">=17.0.0" },
|
||||
"description": "Rename 'browserTarget' to 'buildTarget'.",
|
||||
"factory": "./src/migrations/update-17-1-0/browser-target-to-build-target",
|
||||
"package": "@nx/angular",
|
||||
"name": "rename-browser-target-to-build-target"
|
||||
},
|
||||
{
|
||||
"cli": "nx",
|
||||
"version": "17.1.0-beta.5",
|
||||
"requires": { "@angular/core": ">=17.0.0" },
|
||||
"description": "Replace usages of '@nguniversal/builders' with '@angular-devkit/build-angular'.",
|
||||
"factory": "./src/migrations/update-17-1-0/replace-nguniversal-builders",
|
||||
"package": "@nx/angular",
|
||||
"name": "replace-nguniversal-builders"
|
||||
},
|
||||
{
|
||||
"cli": "nx",
|
||||
"version": "17.1.0-beta.5",
|
||||
"requires": { "@angular/core": ">=17.0.0" },
|
||||
"description": "Replace usages of '@nguniversal/' packages with '@angular/ssr'.",
|
||||
"factory": "./src/migrations/update-17-1-0/replace-nguniversal-engines",
|
||||
"package": "@nx/angular",
|
||||
"name": "replace-nguniversal-engines"
|
||||
},
|
||||
{
|
||||
"cli": "nx",
|
||||
"version": "17.1.0-beta.5",
|
||||
"requires": { "@angular/core": ">=17.0.0" },
|
||||
"description": "Replace the deep imports from 'zone.js/dist/zone' and 'zone.js/dist/zone-testing' with 'zone.js' and 'zone.js/testing'.",
|
||||
"factory": "./src/migrations/update-17-1-0/update-zone-js-deep-import",
|
||||
"package": "@nx/angular",
|
||||
"name": "update-zone-js-deep-import"
|
||||
},
|
||||
{
|
||||
"cli": "nx",
|
||||
"version": "17.2.0-beta.2",
|
||||
"description": "Rename '@nx/angular:webpack-dev-server' executor to '@nx/angular:dev-server'",
|
||||
"factory": "./src/migrations/update-17-2-0/rename-webpack-dev-server",
|
||||
"package": "@nx/angular",
|
||||
"name": "rename-webpack-dev-server-executor"
|
||||
},
|
||||
{
|
||||
"cli": "nx",
|
||||
"version": "17.3.0-beta.10",
|
||||
"requires": { "@angular/core": ">=17.1.0" },
|
||||
"description": "Update the @angular/cli package version to ~17.1.0.",
|
||||
"factory": "./src/migrations/update-17-3-0/update-angular-cli",
|
||||
"package": "@nx/angular",
|
||||
"name": "update-angular-cli-version-17-1-0"
|
||||
},
|
||||
{
|
||||
"cli": "nx",
|
||||
"version": "17.3.0-beta.10",
|
||||
"requires": { "@angular/core": ">=17.1.0" },
|
||||
"description": "Add 'browser-sync' as dev dependency when '@angular-devkit/build-angular:ssr-dev-server' or '@nx/angular:module-federation-dev-ssr' is used.",
|
||||
"factory": "./src/migrations/update-17-3-0/add-browser-sync-dependency",
|
||||
"package": "@nx/angular",
|
||||
"name": "add-browser-sync-dependency"
|
||||
},
|
||||
{
|
||||
"cli": "nx",
|
||||
"version": "17.3.0-beta.10",
|
||||
"requires": { "@angular/core": ">=17.1.0" },
|
||||
"description": "Add 'autoprefixer' as dev dependency when '@nx/angular:ng-packagr-lite' or '@nx/angular:package` is used.",
|
||||
"factory": "./src/migrations/update-17-3-0/add-autoprefixer-dependency",
|
||||
"package": "@nx/angular",
|
||||
"name": "add-autoprefixer-dependency"
|
||||
},
|
||||
{
|
||||
"version": "17.0.0",
|
||||
"description": "Angular v17 introduces a new control flow syntax that uses the @ and } characters. This migration replaces the existing usages with their corresponding HTML entities.",
|
||||
"factory": "./migrations/block-template-entities/bundle",
|
||||
"package": "@angular/core",
|
||||
"name": "block-template-entities"
|
||||
},
|
||||
{
|
||||
"version": "17.0.0",
|
||||
"description": "CompilerOption.useJit and CompilerOption.missingTranslation are unused under Ivy. This migration removes their usage",
|
||||
"factory": "./migrations/compiler-options/bundle",
|
||||
"package": "@angular/core",
|
||||
"name": "migration-v17-compiler-options"
|
||||
},
|
||||
{
|
||||
"version": "17.0.0",
|
||||
"description": "Updates `TransferState`, `makeStateKey`, `StateKey` imports from `@angular/platform-browser` to `@angular/core`.",
|
||||
"factory": "./migrations/transfer-state/bundle",
|
||||
"package": "@angular/core",
|
||||
"name": "migration-transfer-state"
|
||||
},
|
||||
{
|
||||
"version": "17.0.0-0",
|
||||
"description": "Updates Angular Material to v17",
|
||||
"factory": "./ng-update/index_bundled#updateToV17",
|
||||
"package": "@angular/material",
|
||||
"name": "migration-v17"
|
||||
},
|
||||
{
|
||||
"version": "17.0.0-0",
|
||||
"description": "Updates the Angular CDK to v17",
|
||||
"factory": "./ng-update/index#updateToV17",
|
||||
"package": "@angular/cdk",
|
||||
"name": "migration-v17"
|
||||
}
|
||||
]
|
||||
}
|
24
nx.json
24
nx.json
@ -6,12 +6,22 @@
|
||||
"$schema": "./node_modules/nx/schemas/nx-schema.json",
|
||||
"targetDefaults": {
|
||||
"build": {
|
||||
"dependsOn": ["^build"],
|
||||
"inputs": ["production", "^production"],
|
||||
"dependsOn": [
|
||||
"^build"
|
||||
],
|
||||
"inputs": [
|
||||
"production",
|
||||
"^production"
|
||||
],
|
||||
"cache": true
|
||||
},
|
||||
"build-storybook": {
|
||||
"inputs": ["default", "^production", "{projectRoot}/.storybook/**/*", "{projectRoot}/tsconfig.storybook.json"]
|
||||
"inputs": [
|
||||
"default",
|
||||
"^production",
|
||||
"{projectRoot}/.storybook/**/*",
|
||||
"{projectRoot}/tsconfig.storybook.json"
|
||||
]
|
||||
},
|
||||
"lint": {
|
||||
"cache": true
|
||||
@ -26,7 +36,10 @@
|
||||
"tasksRunnerOptions": {
|
||||
"default": {
|
||||
"options": {
|
||||
"runtimeCacheInputs": ["node -v"]
|
||||
"cacheDirectory": "nxcache",
|
||||
"runtimeCacheInputs": [
|
||||
"node -v"
|
||||
]
|
||||
}
|
||||
}
|
||||
},
|
||||
@ -50,6 +63,5 @@
|
||||
"!{projectRoot}/karma.conf.js",
|
||||
"!{projectRoot}/tsconfig.storybook.json"
|
||||
]
|
||||
},
|
||||
"cacheDirectory": "nxcache"
|
||||
}
|
||||
}
|
||||
|
3259
package-lock.json
generated
3259
package-lock.json
generated
File diff suppressed because it is too large
Load Diff
@ -44,6 +44,7 @@
|
||||
"@cspell/eslint-plugin": "^8.16.0",
|
||||
"@mat-datetimepicker/core": "13.0.2",
|
||||
"@ngx-translate/core": "^14.0.0",
|
||||
"@nx/webpack": "^20.0.0",
|
||||
"@storybook/addon-interactions": "^8.2.9",
|
||||
"@storybook/core-server": "^8.2.9",
|
||||
"@storybook/theming": "^8.2.9",
|
||||
|
Loading…
x
Reference in New Issue
Block a user