{"id":24965728,"url":"https://github.com/shiftcode/sc-ng-commons-public","last_synced_at":"2025-03-29T01:19:18.878Z","repository":{"id":37932067,"uuid":"450416097","full_name":"shiftcode/sc-ng-commons-public","owner":"shiftcode","description":"contains few commonly used angular packages","archived":false,"fork":false,"pushed_at":"2025-01-20T09:46:11.000Z","size":2642,"stargazers_count":1,"open_issues_count":1,"forks_count":0,"subscribers_count":5,"default_branch":"main","last_synced_at":"2025-02-03T11:15:15.330Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"TypeScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/shiftcode.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2022-01-21T08:44:24.000Z","updated_at":"2025-01-20T09:46:13.000Z","dependencies_parsed_at":"2024-06-03T17:02:43.879Z","dependency_job_id":"298c0c32-ef87-43d0-aa90-d0ba44b8f64f","html_url":"https://github.com/shiftcode/sc-ng-commons-public","commit_stats":null,"previous_names":[],"tags_count":30,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/shiftcode%2Fsc-ng-commons-public","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/shiftcode%2Fsc-ng-commons-public/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/shiftcode%2Fsc-ng-commons-public/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/shiftcode%2Fsc-ng-commons-public/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/shiftcode","download_url":"https://codeload.github.com/shiftcode/sc-ng-commons-public/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":246122445,"owners_count":20726831,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2025-02-03T11:15:19.500Z","updated_at":"2025-03-29T01:19:18.860Z","avatar_url":"https://github.com/shiftcode.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# sc-ng-commons-public\n\nPublic Angular libraries used in various shiftcode projects.\n\n\u003e [![@shiftcode/ngx-core](https://img.shields.io/github/package-json/v/shiftcode/sc-ng-commons-public?filename=%2Flibs%2Fcore%2Fpackage.json\u0026label=%40shiftcode%2Fngx-core)](libs/core)\\\n\u003e Core Utilities; mainly services and some helper functions and rxjs operators. More details in [README](./libs/core/README.md).\n\n\u003e [![@shiftcode/ngx-aws](https://img.shields.io/github/package-json/v/shiftcode/sc-ng-commons-public?filename=%2Flibs%2Faws%2Fpackage.json\u0026label=%40shiftcode%2Fngx-aws)](libs/aws)\\\n\u003e Angular Services working with AWS. More details in [README](./libs/aws/README.md).\n\n\u003e [![@shiftcode/ngx-components](https://img.shields.io/github/package-json/v/shiftcode/sc-ng-commons-public?filename=%2Flibs%2Fcomponents%2Fpackage.json\u0026label=%40shiftcode%2Fngx-components)](libs/components)\\\n\u003e Angular components/directives/pipes usable across different projects. More details in [README](./libs/components/README.md).\n\n\u003e ![@shiftcode/ngx-ssr](https://img.shields.io/badge/@shiftcode/ngx--ssr-deprecated-f48700)\\\n\u003e Not used anymore starting with Angular 17. See necessary changes in [ssr.md](./ssr.md)\n\n## Angular to Lib Version Mapping\nShows the mapping between the angular version and our lib versions.\n\n| Angular Version | Lib Version |\n|-----------------|-------------|\n| `^19`           | `^7`        | \n| `^18`           | `^6`        | \n| `^17`           | `^5`        |\n| `^16`           | `^4`        |\n| `^15`           | `^3`        |\n| `^14`           | `^2`        |\n| `^13`           | `^1`        |\n\n\n## Anatomy of this workspace\nPackage manager client: `npm`\n\nIndividual packages can depend on each other, the dependency is resolved using ts paths (see ./tsconfig.json) make sure to build the package you depend on. Or change the tsconfig.paths to reference the files under `src` directory.\n\nLerna is used to publish the packages and to run commands in multiple packages.\n\n\n## Dependencies\nAll dependencies of a library are defined as peerDependencies (except tslib)\n### root dependencies + libs peerDependencies\nWhen adding a peerDependency it must also be added to the root package.json as 'normal' dependency.\n\n## Versioning\nWhen opening a PR lerna publishes a new prerelease version with the preId `-prXX.{COUNT}`.\nBy creating this version lerna creates a commit with the updated versions in the package.json. It does not update the PeerDependencies versions.\n\nAfter merging the PR back to the master a new release is published with the graduated version (eg. `1.0.1-pr55.7` -\u003e `1.0.1`).\n\n### Hint\nIf it happens that you already have another commit locally, before updating the branch with this `build(release):..` commit:\n\u003e use `rebase` instead of `merge`\n\n## Add new library\n1. run `ng generate library my-lib`\n2. change `libs/my-lib/package.json#name` to `@shiftcode/ngx-my-lib`\n3. alter `libs/my-lib/ng-package.json#dest` to `./dist`\n4. add `\"assets\": [ \"LICENSE\", \"CHANGELOG.md\" ],` to `libs/my-lib/ng-package.json`\n5. alter `tsconfig.json#compilerOptions.paths` `my-lib` entry to `@shifcode/ng-my-lib` and edit paths according to #3\n6. update tsconfig files like other libs\n7. change from karma config to jest:\n  1. remove `libs/my-lib/src/test.ts`\n  2. remove `libs/my-lib/karam-config.js`\n  3. in `angular.json` replace the libs test architect to `\"test\": { \"builder\": \"@angular-builders/jest:run\" }`\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fshiftcode%2Fsc-ng-commons-public","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fshiftcode%2Fsc-ng-commons-public","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fshiftcode%2Fsc-ng-commons-public/lists"}