{"id":13481941,"url":"https://github.com/manekinekko/angular-library-starter","last_synced_at":"2025-04-15T19:43:28.216Z","repository":{"id":57127351,"uuid":"77546382","full_name":"manekinekko/angular-library-starter","owner":"manekinekko","description":"🎩 A Minimalist Starter for Angular (v2+) libraries (w/ AOT support)","archived":false,"fork":false,"pushed_at":"2018-02-02T16:47:39.000Z","size":80,"stargazers_count":71,"open_issues_count":1,"forks_count":14,"subscribers_count":6,"default_branch":"master","last_synced_at":"2025-04-08T20:49:03.171Z","etag":null,"topics":["angular","library","starter","typescript"],"latest_commit_sha":null,"homepage":"","language":"TypeScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/manekinekko.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2016-12-28T16:29:46.000Z","updated_at":"2023-01-03T13:19:31.000Z","dependencies_parsed_at":"2022-08-31T17:20:29.079Z","dependency_job_id":null,"html_url":"https://github.com/manekinekko/angular-library-starter","commit_stats":null,"previous_names":[],"tags_count":4,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/manekinekko%2Fangular-library-starter","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/manekinekko%2Fangular-library-starter/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/manekinekko%2Fangular-library-starter/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/manekinekko%2Fangular-library-starter/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/manekinekko","download_url":"https://codeload.github.com/manekinekko/angular-library-starter/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":249141324,"owners_count":21219468,"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":["angular","library","starter","typescript"],"created_at":"2024-07-31T17:00:57.641Z","updated_at":"2025-04-15T19:43:28.196Z","avatar_url":"https://github.com/manekinekko.png","language":"TypeScript","funding_links":[],"categories":["Uncategorized"],"sub_categories":["Uncategorized"],"readme":"[![Build status](https://ci.appveyor.com/api/projects/status/hhk7cc6vtlf2j6dl/branch/master?svg=true)](https://ci.appveyor.com/project/manekinekko/angular-library-starter/branch/master)\n[![CircleCI](https://circleci.com/gh/manekinekko/angular-library-starter.svg?style=svg)](https://circleci.com/gh/manekinekko/angular-library-starter)\n\n### Due to the limited time on our planet Earth (24 hours a day is too short!), I'm sadly not supporting this project anymore. Please use [Jurgen's Yeoman generator](https://github.com/jvandemo/generator-angular2-library).\n\n![](https://cloud.githubusercontent.com/assets/1859381/24447242/901c8a1a-1470-11e7-8b55-2484b7825722.jpg)\n\n\u003cbr/\u003e\n\u003cbr/\u003e\n\u003cbr/\u003e\n\u003cbr/\u003e\n\u003cbr/\u003e\n\n## 🎩 Minimalist Angular Library Starter\n\nThis is a minimalist starter if you need to (quickly) create and ship a library for your Angular (v2+) applications.\n\n## Most Important Files\n\n#### package.json\n\n```\n{\n    \"name\": \"@manekinekko/angular-library-starter\",\n    \"version\": \"1.0.0\",\n    \"main\": \"dist/index.js\",\n    \"types\": \"dist/index.d.ts\",\n    \"private\": false,\n    \"scripts\": {\n        \"build:aot\": \"ngc -p tsconfig.json\",\n    },\n    //...\n}\n```\n\n#### tsconfig.json\n\n```\n{\n    \"compilerOptions\": {\n        \"target\": \"es5\",\n        \"module\": \"es2015\",\n        \"moduleResolution\": \"node\",\n        \"declaration\": true,\n        \"noImplicitAny\": false,\n        \"sourceMap\": true,\n        \"emitDecoratorMetadata\": true,\n        \"experimentalDecorators\": true,\n        \"skipLibCheck\": true,\n        \"typeRoots\": [\"./node_modules/@types\"],\n        \"types\": [\"node\"],\n        \"lib\": [\"dom\", \"es2015\"]\n    },\n    \n    // this is for the AOT compiler\n    \"angularCompilerOptions\": {\n        \"genDir\": \"tmp\",\n        \"entryModule\": \"src/lib/app.module#AppModule\"\n    },\n    //...\n}\n```\n\n## Using you library in another project\n\n### yarn or npm it in your `package.json`\n\n```json\n\"dependencies\": {\n  \"@angular/common\": \"^2.3.1\",\n  \"@angular/compiler\": \"^2.3.1\",\n  \"@angular/core\": \"^2.3.1\",\n  //...\n  \"@manekinekko/angular-library-starter\": \"^1.0.0\",\n},\n//...\n```\n\n### import the `AppModule` from the library\n\n```typescript\nimport { NgModule } from '@angular/core';\nimport { AppModule } from '@manekinekko/angular-library-starter';\n\n@NgModule({\n  imports: [\n    AppModule.forRoot()\n  ],\n  //...\n})\nexport class AppModule { }\n```\n\n### use it anywhere in your NgModules\n\n```typescript\nimport { Component } from '@angular/core';\nimport { AppService } from '@manekinekko/angular-library-starter';\n\n// AppService and AppPipe are imported by the AppModule\n\n@Component({\n  selector: 'app-root',\n  template: `\n   {{ text | truncate }}\n   \u003cangular-library-component\u003e\u003c/angular-library-component\u003e\n  `\n})\nexport class AppComponent {\n  text = 'Lorem ipsum dolor sit amet';\n  constructor(as: AppService) {\n    this.date = as.getDate().toString();\n  }\n}\n```\n\n### Custom types\n\nIf you have custom typings you want to include in your project, use the [custom-typings.d.ts](https://github.com/manekinekko/angular-library-starter/blob/master/src/custom-typings.d.ts) for that purpose.\n\n\n## Disclaimers\n1. This starter contains the minimum configuration for your library so it can be shared and used across other projects.\n2. Tests are not included in this starter!\n3. This starter is not compatible with the angular-cli **YET**.\n\n\n## Have a PR?\n\nAll contributions are welcome ;)\n\n## License\n\nThe MIT License (MIT)\nCopyright (c) 2017 - Wassim CHEGHAM\n\nPermission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the \"Software\"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:\n\nThe above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.\n\nTHE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmanekinekko%2Fangular-library-starter","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmanekinekko%2Fangular-library-starter","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmanekinekko%2Fangular-library-starter/lists"}