ngx-ratio-image 0.1.0 → 0.1.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (103) hide show
  1. package/package.json +46 -96
  2. package/.editorconfig +0 -16
  3. package/.eslintrc.json +0 -38
  4. package/.github/workflows/node.js.yml +0 -45
  5. package/.github/workflows/npm-publish.yml +0 -64
  6. package/.husky/pre-commit +0 -1
  7. package/.npmrc.bak +0 -2
  8. package/.nvmrc +0 -1
  9. package/.prettierignore +0 -2
  10. package/.run/lint.run.xml +0 -12
  11. package/.run/test.run.xml +0 -12
  12. package/.vscode/extensions.json +0 -4
  13. package/.vscode/launch.json +0 -20
  14. package/.vscode/tasks.json +0 -42
  15. package/angular.json +0 -167
  16. package/copyVersion.js +0 -40
  17. package/dist/ngx-ratio-image/LICENSE +0 -21
  18. package/dist/ngx-ratio-image/README.md +0 -27
  19. package/dist/ratio-image-app/3rdpartylicenses.txt +0 -363
  20. package/dist/ratio-image-app/assets/1to1.jpg +0 -0
  21. package/dist/ratio-image-app/assets/3to4.jpg +0 -0
  22. package/dist/ratio-image-app/assets/4to3.jpg +0 -0
  23. package/dist/ratio-image-app/favicon.ico +0 -0
  24. package/dist/ratio-image-app/index.html +0 -16
  25. package/dist/ratio-image-app/main.cd7d3f0091564799.js +0 -1
  26. package/dist/ratio-image-app/polyfills.89916ba7b8964ab6.js +0 -1
  27. package/dist/ratio-image-app/runtime.404a4a95eb22c4fe.js +0 -1
  28. package/dist/ratio-image-app/styles.0a5653d1595871d1.css +0 -1
  29. package/ng-package.json +0 -8
  30. package/prettier.config.js +0 -16
  31. package/projects/ngx-ratio-image/.eslintrc.json +0 -31
  32. package/projects/ngx-ratio-image/LICENSE +0 -21
  33. package/projects/ngx-ratio-image/README.md +0 -27
  34. package/projects/ngx-ratio-image/ng-package.json +0 -7
  35. package/projects/ngx-ratio-image/node_modules/.package-lock.json +0 -14
  36. package/projects/ngx-ratio-image/node_modules/tslib/CopyrightNotice.txt +0 -15
  37. package/projects/ngx-ratio-image/node_modules/tslib/LICENSE.txt +0 -12
  38. package/projects/ngx-ratio-image/node_modules/tslib/README.md +0 -164
  39. package/projects/ngx-ratio-image/node_modules/tslib/SECURITY.md +0 -41
  40. package/projects/ngx-ratio-image/node_modules/tslib/modules/index.d.ts +0 -38
  41. package/projects/ngx-ratio-image/node_modules/tslib/modules/index.js +0 -70
  42. package/projects/ngx-ratio-image/node_modules/tslib/modules/package.json +0 -3
  43. package/projects/ngx-ratio-image/node_modules/tslib/package.json +0 -47
  44. package/projects/ngx-ratio-image/node_modules/tslib/tslib.d.ts +0 -460
  45. package/projects/ngx-ratio-image/node_modules/tslib/tslib.es6.html +0 -1
  46. package/projects/ngx-ratio-image/node_modules/tslib/tslib.es6.js +0 -402
  47. package/projects/ngx-ratio-image/node_modules/tslib/tslib.es6.mjs +0 -401
  48. package/projects/ngx-ratio-image/node_modules/tslib/tslib.html +0 -1
  49. package/projects/ngx-ratio-image/node_modules/tslib/tslib.js +0 -484
  50. package/projects/ngx-ratio-image/package-lock.json +0 -26
  51. package/projects/ngx-ratio-image/package.json +0 -34
  52. package/projects/ngx-ratio-image/src/lib/ratio-image/ratio-image.component.html +0 -42
  53. package/projects/ngx-ratio-image/src/lib/ratio-image/ratio-image.component.spec.ts +0 -21
  54. package/projects/ngx-ratio-image/src/lib/ratio-image/ratio-image.component.ts +0 -75
  55. package/projects/ngx-ratio-image/src/lib/ratio-image.module.ts +0 -10
  56. package/projects/ngx-ratio-image/src/public-api.ts +0 -6
  57. package/projects/ngx-ratio-image/tsconfig.lib.json +0 -12
  58. package/projects/ngx-ratio-image/tsconfig.lib.prod.json +0 -10
  59. package/projects/ngx-ratio-image/tsconfig.spec.json +0 -9
  60. package/projects/ratio-image-app/.eslintrc.json +0 -31
  61. package/projects/ratio-image-app/src/app/app-routing.module.ts +0 -26
  62. package/projects/ratio-image-app/src/app/app.component.html +0 -14
  63. package/projects/ratio-image-app/src/app/app.component.scss +0 -25
  64. package/projects/ratio-image-app/src/app/app.component.spec.ts +0 -38
  65. package/projects/ratio-image-app/src/app/app.component.ts +0 -19
  66. package/projects/ratio-image-app/src/app/app.module.ts +0 -33
  67. package/projects/ratio-image-app/src/app/header.component.html +0 -10
  68. package/projects/ratio-image-app/src/app/header.component.scss +0 -25
  69. package/projects/ratio-image-app/src/app/header.component.spec.ts +0 -35
  70. package/projects/ratio-image-app/src/app/header.component.ts +0 -13
  71. package/projects/ratio-image-app/src/app/home/home-routing.module.ts +0 -17
  72. package/projects/ratio-image-app/src/app/home/home.component.html +0 -24
  73. package/projects/ratio-image-app/src/app/home/home.component.scss +0 -0
  74. package/projects/ratio-image-app/src/app/home/home.component.spec.ts +0 -24
  75. package/projects/ratio-image-app/src/app/home/home.component.ts +0 -12
  76. package/projects/ratio-image-app/src/app/home/home.module.ts +0 -14
  77. package/projects/ratio-image-app/src/app/interactive/interactive-routing.module.ts +0 -17
  78. package/projects/ratio-image-app/src/app/interactive/interactive.component.html +0 -40
  79. package/projects/ratio-image-app/src/app/interactive/interactive.component.scss +0 -0
  80. package/projects/ratio-image-app/src/app/interactive/interactive.component.spec.ts +0 -43
  81. package/projects/ratio-image-app/src/app/interactive/interactive.component.ts +0 -32
  82. package/projects/ratio-image-app/src/app/interactive/interactive.module.ts +0 -31
  83. package/projects/ratio-image-app/src/assets/.gitkeep +0 -0
  84. package/projects/ratio-image-app/src/assets/1to1.jpg +0 -0
  85. package/projects/ratio-image-app/src/assets/3to4.jpg +0 -0
  86. package/projects/ratio-image-app/src/assets/4to3.jpg +0 -0
  87. package/projects/ratio-image-app/src/favicon.ico +0 -0
  88. package/projects/ratio-image-app/src/index.html +0 -16
  89. package/projects/ratio-image-app/src/main.ts +0 -7
  90. package/projects/ratio-image-app/src/styles.scss +0 -15
  91. package/projects/ratio-image-app/tsconfig.app.json +0 -10
  92. package/projects/ratio-image-app/tsconfig.spec.json +0 -9
  93. package/tsconfig.json +0 -33
  94. /package/{dist/ngx-ratio-image/esm2022 → esm2022}/lib/ratio-image/ratio-image.component.mjs +0 -0
  95. /package/{dist/ngx-ratio-image/esm2022 → esm2022}/lib/ratio-image.module.mjs +0 -0
  96. /package/{dist/ngx-ratio-image/esm2022 → esm2022}/ngx-ratio-image.mjs +0 -0
  97. /package/{dist/ngx-ratio-image/esm2022 → esm2022}/public-api.mjs +0 -0
  98. /package/{dist/ngx-ratio-image/fesm2022 → fesm2022}/ngx-ratio-image.mjs +0 -0
  99. /package/{dist/ngx-ratio-image/fesm2022 → fesm2022}/ngx-ratio-image.mjs.map +0 -0
  100. /package/{dist/ngx-ratio-image/index.d.ts → index.d.ts} +0 -0
  101. /package/{dist/ngx-ratio-image/lib → lib}/ratio-image/ratio-image.component.d.ts +0 -0
  102. /package/{dist/ngx-ratio-image/lib → lib}/ratio-image.module.d.ts +0 -0
  103. /package/{dist/ngx-ratio-image/public-api.d.ts → public-api.d.ts} +0 -0
package/package.json CHANGED
@@ -1,97 +1,47 @@
1
1
  {
2
- "name": "ngx-ratio-image",
3
- "version": "0.1.0",
4
- "author": {
5
- "name": "Gerd Siebert"
6
- },
7
- "engines": {
8
- "node": "^18.13.0 || ^20.9.0"
9
- },
10
- "repository": {
11
- "type": "git",
12
- "url": "git+https://github.com/gerd-siebert/ngx-ratio-image.git"
13
- },
14
- "keywords": [
15
- "Image",
16
- "Scaling",
17
- "Ratio",
18
- "Angular 17",
19
- "Angular 18",
20
- "Angular 19",
21
- "Angular 20"
22
- ],
23
- "license": "MIT",
24
- "main": "dist/ngx-ratio-image/esm2022/ratio-image.mjs",
25
- "scripts": {
26
- "ng": "ng",
27
- "prettier": "prettier --write \"**/*.{js,json,css,scss,less,md,ts,html,component.html}\"",
28
- "start": "ng serve",
29
- "prebuild": "rimraf .angular dist && cp ./README.md ./LICENSE projects/ngx-ratio-image",
30
- "build": "echo 'Prepare-Builds' && npm run build:lib && npm run build:app",
31
- "build:lib": "ng build --project ratioImage --configuration production ",
32
- "build:app": "ng build --project ratioImageApp --configuration production ",
33
- "watch": "ng build --watch --configuration development",
34
- "test": "ng test",
35
- "test:ci": "ng test --code-coverage --no-watch --browsers=ChromeHeadless --source-map=false",
36
- "lint": "ng lint",
37
- "packagr": "ng-packagr -p ng-package.json",
38
- "publish": "rm -rf node_modules && npm install && npm run build && cd dist/ngx-ratio-image && npm publish && cd ../../",
39
- "postversion": "node ./copyVersion.js && npm pkg fix",
40
- "prepare": "husky"
41
- },
42
- "private": false,
43
- "dependencies": {
44
- "@angular/animations": "^17.3.12",
45
- "@angular/cdk": "^17.3.10",
46
- "@angular/common": "^17.3.12",
47
- "@angular/compiler": "^17.3.12",
48
- "@angular/core": "^17.3.12",
49
- "@angular/forms": "^17.3.12",
50
- "@angular/material": "^17.3.10",
51
- "@angular/platform-browser": "^17.3.12",
52
- "@angular/platform-browser-dynamic": "^17.3.12",
53
- "@angular/router": "^17.3.12",
54
- "rxjs": "~7.8.0",
55
- "tslib": "^2.3.0",
56
- "zone.js": "~0.14.10"
57
- },
58
- "devDependencies": {
59
- "@angular-devkit/build-angular": "^17.3.17",
60
- "@angular-eslint/builder": "17.5.3",
61
- "@angular-eslint/eslint-plugin": "17.5.3",
62
- "@angular-eslint/eslint-plugin-template": "17.5.3",
63
- "@angular-eslint/schematics": "17.5.3",
64
- "@angular-eslint/template-parser": "17.5.3",
65
- "@angular/cli": "~17.3.17",
66
- "@angular/compiler-cli": "^17.3.12",
67
- "@schuchard/prettier": "5.1.0",
68
- "@types/jasmine": "~4.3.0",
69
- "@types/node": "20.19.41",
70
- "@typescript-eslint/eslint-plugin": "^7.2.0",
71
- "@typescript-eslint/parser": "^7.2.0",
72
- "eslint": "^8.57.0",
73
- "husky": "9.1.7",
74
- "jasmine-core": "~4.6.0",
75
- "karma": "~6.4.0",
76
- "karma-chrome-launcher": "~3.2.0",
77
- "karma-coverage": "~2.2.0",
78
- "karma-jasmine": "~5.1.0",
79
- "karma-jasmine-html-reporter": "~2.1.0",
80
- "lint-staged": "latest",
81
- "ng-packagr": "^17.3.0",
82
- "prettier": "^2.8.8",
83
- "rimraf": "^5.0.1",
84
- "tslint-config-prettier": "latest",
85
- "typescript": "~5.4.5"
86
- },
87
- "husky": {
88
- "hooks": {
89
- "pre-commit": "lint-staged"
90
- }
91
- },
92
- "lint-staged": {
93
- "*.{js,json,css,scss,less,md,ts,html,component.html}": [
94
- "prettier --write"
95
- ]
96
- }
97
- }
2
+ "name": "ngx-ratio-image",
3
+ "version": "0.1.1",
4
+ "author": {
5
+ "name": "Gerd Siebert"
6
+ },
7
+ "keywords": [
8
+ "Image",
9
+ "Scaling",
10
+ "Ratio",
11
+ "Angular 17",
12
+ "Angular 18",
13
+ "Angular 19",
14
+ "Angular 20"
15
+ ],
16
+ "description": "An Angular lib to show an image with variable ratio in container with a fixed ratio.",
17
+ "license": "MIT",
18
+ "peerDependencies": {
19
+ "@angular/common": "^17.0.0 || ^18.0.0 || ^19.0.0 || ^20.0.0",
20
+ "@angular/core": "^17.0.0 || ^18.0.0 || ^19.0.0 || ^20.0.0"
21
+ },
22
+ "dependencies": {
23
+ "tslib": "^2.3.0"
24
+ },
25
+ "sideEffects": false,
26
+ "repository": {
27
+ "type": "git",
28
+ "url": "https://github.com/gerd-siebert/ngx-ratio-image.git"
29
+ },
30
+ "bugs": {
31
+ "url": "https://github.com/gerd-siebert/ngx-ratio-image/issues"
32
+ },
33
+ "homepage": "https://github.com/gerd-siebert/ngx-ratio-image#readme",
34
+ "module": "fesm2022/ngx-ratio-image.mjs",
35
+ "typings": "index.d.ts",
36
+ "exports": {
37
+ "./package.json": {
38
+ "default": "./package.json"
39
+ },
40
+ ".": {
41
+ "types": "./index.d.ts",
42
+ "esm2022": "./esm2022/ngx-ratio-image.mjs",
43
+ "esm": "./esm2022/ngx-ratio-image.mjs",
44
+ "default": "./fesm2022/ngx-ratio-image.mjs"
45
+ }
46
+ }
47
+ }
package/.editorconfig DELETED
@@ -1,16 +0,0 @@
1
- # Editor configuration, see https://editorconfig.org
2
- root = true
3
-
4
- [*]
5
- charset = utf-8
6
- indent_style = tab
7
- indent_size = 4
8
- insert_final_newline = true
9
- trim_trailing_whitespace = true
10
-
11
- [*.ts]
12
- quote_type = single
13
-
14
- [*.md]
15
- max_line_length = off
16
- trim_trailing_whitespace = false
package/.eslintrc.json DELETED
@@ -1,38 +0,0 @@
1
- {
2
- "root": true,
3
- "ignorePatterns": ["projects/**/*"],
4
- "overrides": [
5
- {
6
- "files": ["*.ts"],
7
- "extends": [
8
- "eslint:recommended",
9
- "plugin:@typescript-eslint/recommended",
10
- "plugin:@angular-eslint/recommended",
11
- "plugin:@angular-eslint/template/process-inline-templates"
12
- ],
13
- "rules": {
14
- "@angular-eslint/directive-selector": [
15
- "error",
16
- {
17
- "type": "attribute",
18
- "prefix": "",
19
- "style": "camelCase"
20
- }
21
- ],
22
- "@angular-eslint/component-selector": [
23
- "error",
24
- {
25
- "type": "element",
26
- "prefix": "",
27
- "style": "kebab-case"
28
- }
29
- ]
30
- }
31
- },
32
- {
33
- "files": ["*.html"],
34
- "extends": ["plugin:@angular-eslint/template/recommended", "plugin:@angular-eslint/template/accessibility"],
35
- "rules": {}
36
- }
37
- ]
38
- }
@@ -1,45 +0,0 @@
1
- # This workflow will do a clean installation of node dependencies, cache/restore them, build the source code and run tests across different versions of node
2
- # For more information see: https://docs.github.com/en/actions/automating-builds-and-tests/building-and-testing-nodejs
3
-
4
- name: Node.js CI
5
-
6
- on:
7
- workflow_dispatch:
8
- push:
9
- branches: ['main']
10
- pull_request:
11
- branches: ['main']
12
-
13
- env:
14
- CI: true
15
- DISPLAY: ':10.0'
16
- CHROME_BIN: '/usr/bin/chromium'
17
-
18
- jobs:
19
- build:
20
- runs-on: ubuntu-22.04
21
- timeout-minutes: 5
22
- strategy:
23
- matrix:
24
- node-version: [ 18.x, 20.x ]
25
-
26
- steps:
27
- - uses: actions/checkout@v3
28
- - name: Use Node.js ${{ matrix.node-version }}
29
- uses: actions/setup-node@v3
30
- with:
31
- node-version: ${{ matrix.node-version }}
32
- cache: 'npm'
33
- - name: Setup Chrome
34
- uses: browser-actions/setup-chrome@v1.7.3
35
- - run: npm ci
36
- - run: npm run build --if-present
37
- - run: npm run test:ci
38
-
39
- # NEU: Lädt das fertige Paket hoch, sobald die Tests bestanden sind (nur für Node 20)
40
- - name: Save the Lib dist folder for inspection
41
- if: matrix.node-version == '20.x'
42
- uses: actions/upload-artifact@v4
43
- with:
44
- name: ngx-ratio-image
45
- path: dist/ngx-ratio-image
@@ -1,64 +0,0 @@
1
- name: Node.js Package
2
-
3
- on:
4
- release:
5
- types: [ created ]
6
-
7
- env:
8
- CI: true
9
- DISPLAY: ':10.0'
10
- CHROME_BIN: '/usr/bin/chromium'
11
-
12
- jobs:
13
- build:
14
- runs-on: ubuntu-22.04
15
- timeout-minutes: 10
16
- steps:
17
- - name: Checkout
18
- uses: actions/checkout@v4
19
-
20
- - name: Setup Node.js
21
- uses: actions/setup-node@v4
22
- with:
23
- node-version: 20
24
- cache: 'npm'
25
-
26
- - run: npm ci
27
- - run: npm run build
28
-
29
- # Das gebaute Paket temporär zwischenspeichern
30
- - name: Save the Lib dist folder
31
- uses: actions/upload-artifact@v4
32
- with:
33
- name: ngx-ratio-image
34
- path: dist/ngx-ratio-image
35
-
36
- - name: Setup Chrome
37
- uses: browser-actions/setup-chrome@v1
38
- - run: npm run test:ci
39
-
40
- publish-npm:
41
- needs: build
42
- runs-on: ubuntu-22.04
43
- steps:
44
- - name: Checkout
45
- uses: actions/checkout@v4
46
-
47
- - name: Setup Node.js
48
- uses: actions/setup-node@v4
49
- with:
50
- node-version: 20
51
- registry-url: https://registry.npmjs.org/
52
-
53
- # Holt das fertige Build-Ergebnis aus dem "build"-Job ab
54
- - name: Download Built Package
55
- uses: actions/download-artifact@v4
56
- with:
57
- name: ngx-ratio-image
58
- path: ./dist-package
59
-
60
- # Veröffentlicht das Paket mit korrekt geschriebenem Secret
61
- - name: Publish to NPM
62
- run: npm publish ./dist-package
63
- env:
64
- NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
package/.husky/pre-commit DELETED
@@ -1 +0,0 @@
1
- echo pre-commit
package/.npmrc.bak DELETED
@@ -1,2 +0,0 @@
1
- //registry.npmjs.org/:_authToken=${NODE_AUTH_TOKEN}
2
- registry=https://registry.npmjs.org/
package/.nvmrc DELETED
@@ -1 +0,0 @@
1
- 20
package/.prettierignore DELETED
@@ -1,2 +0,0 @@
1
- .angular
2
- dist
package/.run/lint.run.xml DELETED
@@ -1,12 +0,0 @@
1
- <component name="ProjectRunConfigurationManager">
2
- <configuration default="false" name="lint" type="js.build_tools.npm" singleton="false" nameIsGenerated="true">
3
- <package-json value="$PROJECT_DIR$/package.json" />
4
- <command value="run" />
5
- <scripts>
6
- <script value="lint" />
7
- </scripts>
8
- <node-interpreter value="project" />
9
- <envs />
10
- <method v="2" />
11
- </configuration>
12
- </component>
package/.run/test.run.xml DELETED
@@ -1,12 +0,0 @@
1
- <component name="ProjectRunConfigurationManager">
2
- <configuration default="false" name="test" type="js.build_tools.npm" singleton="false" nameIsGenerated="true">
3
- <package-json value="$PROJECT_DIR$/package.json" />
4
- <command value="run" />
5
- <scripts>
6
- <script value="test" />
7
- </scripts>
8
- <node-interpreter value="project" />
9
- <envs />
10
- <method v="2" />
11
- </configuration>
12
- </component>
@@ -1,4 +0,0 @@
1
- {
2
- // For more information, visit: https://go.microsoft.com/fwlink/?linkid=827846
3
- "recommendations": ["angular.ng-template"]
4
- }
@@ -1,20 +0,0 @@
1
- {
2
- // For more information, visit: https://go.microsoft.com/fwlink/?linkid=830387
3
- "version": "0.2.0",
4
- "configurations": [
5
- {
6
- "name": "ng serve",
7
- "type": "chrome",
8
- "request": "launch",
9
- "preLaunchTask": "npm: start",
10
- "url": "http://localhost:4200/"
11
- },
12
- {
13
- "name": "ng test",
14
- "type": "chrome",
15
- "request": "launch",
16
- "preLaunchTask": "npm: test",
17
- "url": "http://localhost:9876/debug.html"
18
- }
19
- ]
20
- }
@@ -1,42 +0,0 @@
1
- {
2
- // For more information, visit: https://go.microsoft.com/fwlink/?LinkId=733558
3
- "version": "2.0.0",
4
- "tasks": [
5
- {
6
- "type": "npm",
7
- "script": "start",
8
- "isBackground": true,
9
- "problemMatcher": {
10
- "owner": "typescript",
11
- "pattern": "$tsc",
12
- "background": {
13
- "activeOnStart": true,
14
- "beginsPattern": {
15
- "regexp": "(.*?)"
16
- },
17
- "endsPattern": {
18
- "regexp": "bundle generation complete"
19
- }
20
- }
21
- }
22
- },
23
- {
24
- "type": "npm",
25
- "script": "test",
26
- "isBackground": true,
27
- "problemMatcher": {
28
- "owner": "typescript",
29
- "pattern": "$tsc",
30
- "background": {
31
- "activeOnStart": true,
32
- "beginsPattern": {
33
- "regexp": "(.*?)"
34
- },
35
- "endsPattern": {
36
- "regexp": "bundle generation complete"
37
- }
38
- }
39
- }
40
- }
41
- ]
42
- }
package/angular.json DELETED
@@ -1,167 +0,0 @@
1
- {
2
- "$schema": "./node_modules/@angular/cli/lib/config/schema.json",
3
- "version": 1,
4
- "cli": {
5
- "packageManager": "npm",
6
- "schematicCollections": [
7
- "@angular-eslint/schematics"
8
- ],
9
- "analytics": false
10
- },
11
- "newProjectRoot": "projects",
12
- "projects": {
13
- "ratioImageApp": {
14
- "projectType": "application",
15
- "schematics": {
16
- "@schematics/angular:component": {
17
- "style": "scss"
18
- }
19
- },
20
- "root": "projects/ratio-image-app",
21
- "sourceRoot": "projects/ratio-image-app/src",
22
- "prefix": "app",
23
- "architect": {
24
- "build": {
25
- "builder": "@angular-devkit/build-angular:browser",
26
- "options": {
27
- "outputPath": "dist/ratio-image-app",
28
- "index": "projects/ratio-image-app/src/index.html",
29
- "main": "projects/ratio-image-app/src/main.ts",
30
- "polyfills": [
31
- "zone.js"
32
- ],
33
- "tsConfig": "projects/ratio-image-app/tsconfig.app.json",
34
- "inlineStyleLanguage": "scss",
35
- "assets": [
36
- "projects/ratio-image-app/src/favicon.ico",
37
- "projects/ratio-image-app/src/assets"
38
- ],
39
- "styles": [
40
- "@angular/material/prebuilt-themes/pink-bluegrey.css",
41
- "projects/ratio-image-app/src/styles.scss"
42
- ],
43
- "scripts": []
44
- },
45
- "configurations": {
46
- "production": {
47
- "budgets": [
48
- {
49
- "type": "initial",
50
- "maximumWarning": "500kb",
51
- "maximumError": "1mb"
52
- },
53
- {
54
- "type": "anyComponentStyle",
55
- "maximumWarning": "2kb",
56
- "maximumError": "4kb"
57
- }
58
- ],
59
- "outputHashing": "all"
60
- },
61
- "development": {
62
- "buildOptimizer": false,
63
- "optimization": false,
64
- "vendorChunk": true,
65
- "extractLicenses": false,
66
- "sourceMap": true,
67
- "namedChunks": true
68
- }
69
- },
70
- "defaultConfiguration": "production"
71
- },
72
- "serve": {
73
- "builder": "@angular-devkit/build-angular:dev-server",
74
- "configurations": {
75
- "production": {
76
- "buildTarget": "ratioImageApp:build:production"
77
- },
78
- "development": {
79
- "buildTarget": "ratioImageApp:build:development"
80
- }
81
- },
82
- "options": {
83
- "port": 4202
84
- },
85
- "defaultConfiguration": "development"
86
- },
87
- "extract-i18n": {
88
- "builder": "@angular-devkit/build-angular:extract-i18n",
89
- "options": {
90
- "buildTarget": "ratioImageApp:build"
91
- }
92
- },
93
- "test": {
94
- "builder": "@angular-devkit/build-angular:karma",
95
- "options": {
96
- "polyfills": [
97
- "zone.js",
98
- "zone.js/testing"
99
- ],
100
- "tsConfig": "projects/ratio-image-app/tsconfig.spec.json",
101
- "inlineStyleLanguage": "scss",
102
- "assets": [
103
- "projects/ratio-image-app/src/favicon.ico",
104
- "projects/ratio-image-app/src/assets"
105
- ],
106
- "styles": [
107
- "@angular/material/prebuilt-themes/pink-bluegrey.css",
108
- "projects/ratio-image-app/src/styles.scss"
109
- ],
110
- "scripts": []
111
- }
112
- },
113
- "lint": {
114
- "builder": "@angular-eslint/builder:lint",
115
- "options": {
116
- "lintFilePatterns": [
117
- "projects/ratio-image-app/**/*.ts",
118
- "projects/ratio-image-app/**/*.html"
119
- ]
120
- }
121
- }
122
- }
123
- },
124
- "ratioImage": {
125
- "projectType": "library",
126
- "root": "projects/ngx-ratio-image",
127
- "sourceRoot": "projects/ngx-ratio-image/src",
128
- "prefix": "lib",
129
- "architect": {
130
- "build": {
131
- "builder": "@angular-devkit/build-angular:ng-packagr",
132
- "options": {
133
- "project": "projects/ngx-ratio-image/ng-package.json"
134
- },
135
- "configurations": {
136
- "production": {
137
- "tsConfig": "projects/ngx-ratio-image/tsconfig.lib.prod.json"
138
- },
139
- "development": {
140
- "tsConfig": "projects/ngx-ratio-image/tsconfig.lib.json"
141
- }
142
- },
143
- "defaultConfiguration": "production"
144
- },
145
- "test": {
146
- "builder": "@angular-devkit/build-angular:karma",
147
- "options": {
148
- "tsConfig": "projects/ngx-ratio-image/tsconfig.spec.json",
149
- "polyfills": [
150
- "zone.js",
151
- "zone.js/testing"
152
- ]
153
- }
154
- },
155
- "lint": {
156
- "builder": "@angular-eslint/builder:lint",
157
- "options": {
158
- "lintFilePatterns": [
159
- "projects/ngx-ratio-image/**/*.ts",
160
- "projects/ngx-ratio-image/**/*.html"
161
- ]
162
- }
163
- }
164
- }
165
- }
166
- }
167
- }
package/copyVersion.js DELETED
@@ -1,40 +0,0 @@
1
- const fs = require('fs');
2
- const path = require('path');
3
-
4
- // Pfade zu den package.json-Dateien
5
- const mainPackagePath = path.join(__dirname, 'package.json');
6
- const libPackagePath = path.join(__dirname, 'projects', 'ngx-ratio-image', 'package.json');
7
-
8
- // Funktion zum Lesen und Parsen der package.json-Dateien
9
- function readPackageJson(filePath) {
10
- return JSON.parse(fs.readFileSync(filePath, 'utf8'));
11
- }
12
-
13
- // Funktion zum Schreiben der aktualisierten package.json-Dateien
14
- function writePackageJson(filePath, data) {
15
- fs.writeFileSync(filePath, JSON.stringify(data, null, 2), 'utf8');
16
- }
17
-
18
- // Funktion zur Erhöhung der Version
19
- function incrementVersion(version) {
20
- const versionParts = version.split('.').map(Number);
21
- versionParts[2] += 1; // Patch-Version erhöhen
22
- return versionParts.join('.');
23
- }
24
-
25
- // Hauptlogik
26
- function copyVersions() {
27
- // Haupt-package.json lesen und Version hochsetzen
28
- const mainPackageJson = readPackageJson(mainPackagePath);
29
- const newVersion = mainPackageJson.version;
30
-
31
- // lib/package.json lesen und Version synchronisieren
32
- const libPackageJson = readPackageJson(libPackagePath);
33
- libPackageJson.version = newVersion;
34
- writePackageJson(libPackagePath, libPackageJson);
35
-
36
- console.log(`Version updated to ${newVersion} in both package.json files.`);
37
- }
38
-
39
- // Skript ausführen
40
- copyVersions();
@@ -1,21 +0,0 @@
1
- MIT License
2
-
3
- Copyright (c) 2023 gerd-siebert
4
-
5
- Permission is hereby granted, free of charge, to any person obtaining a copy
6
- of this software and associated documentation files (the "Software"), to deal
7
- in the Software without restriction, including without limitation the rights
8
- to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
- copies of the Software, and to permit persons to whom the Software is
10
- furnished to do so, subject to the following conditions:
11
-
12
- The above copyright notice and this permission notice shall be included in all
13
- copies or substantial portions of the Software.
14
-
15
- THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
- IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
- FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
- AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
- LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
- OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21
- SOFTWARE.