{"id":15835958,"url":"https://github.com/xrobert35/ae-lib-base","last_synced_at":"2026-02-22T04:33:30.131Z","repository":{"id":92415566,"uuid":"227206893","full_name":"xrobert35/ae-lib-base","owner":"xrobert35","description":"Demo fini","archived":false,"fork":false,"pushed_at":"2019-11-18T10:50:39.000Z","size":71,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"master","last_synced_at":"2025-10-25T10:27:36.657Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":null,"has_issues":false,"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/xrobert35.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,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2019-12-10T20:12:27.000Z","updated_at":"2019-12-10T20:14:21.000Z","dependencies_parsed_at":"2023-05-31T04:45:46.264Z","dependency_job_id":null,"html_url":"https://github.com/xrobert35/ae-lib-base","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/xrobert35/ae-lib-base","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/xrobert35%2Fae-lib-base","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/xrobert35%2Fae-lib-base/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/xrobert35%2Fae-lib-base/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/xrobert35%2Fae-lib-base/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/xrobert35","download_url":"https://codeload.github.com/xrobert35/ae-lib-base/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/xrobert35%2Fae-lib-base/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":29704808,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-02-22T03:17:42.375Z","status":"ssl_error","status_checked_at":"2026-02-22T03:17:31.622Z","response_time":110,"last_error":"SSL_read: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"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":"2024-10-05T15:00:26.075Z","updated_at":"2026-02-22T04:33:30.117Z","avatar_url":"https://github.com/xrobert35.png","language":null,"funding_links":[],"categories":[],"sub_categories":[],"readme":"# Guide to create an angular 8 library\n\n### Using the angular-cli\n\nCreate a new empty angular workspace\n\n```bash\nng new asi-esir-lib --create-application=false\n```\n\nOpen the workspace, and generate a new project\n\n```bash\nng generate library asi-esir-lib\n```\n\nEdit the archive\n\n- package.json : add author for exemple\n- modify angular.json et tslint, to change the prefix \n- create your first component : ng g component components/asi-esir-input\n- In the same directory create a new module for the component\n- taking exemple on the existing file exports in public-api.ts\n- import the commonModule to make the component working\n- Dont forget to export you component !\n\n- Modify ts-config and add some compilation rules\n\n``` typescript\n    \"allowSyntheticDefaultImports\": true,\n    \"alwaysStrict\": true,\n    \"noImplicitReturns\": true,\n    \"noImplicitThis\": true,\n    \"noUnusedParameters\": true,\n    \"noUnusedLocals\": true,\n```\n\n- Modify ts-lint to allow leading-underscore (you will have probleme cause of the \"noUnusedParameters\" if you dont do that)\n\n```\n    \"variable-name\": {\n      \"options\" : [\n        \"allow-leading-underscore\"\n      ]\n    },\n```\n\n- Check if test is working\n\n```\nnpm run test\n```\n\n- A chrome error ? perhaps you need to export CHROME_BIN var\n\n```shell\nexport CHROME_BIN=/usr/bin/chromium-browser\n```\n\n- remove chrome display and watch mode and add coverage\n\n```shell\n\"test:lib\": \"ng test asi-esir-lib --browsers ChromeHeadless --watch false --code-coverage=true\",\n```\n\n- try to build the application\n\n### create a new application to  test your component\n\n```shell\nng generate application asi-esir\n```\n\n- modify npm script\n\n```\n    \"start\": \"ng serve asi-esir\",\n    \"build:lib\": \"ng build asi-esir-lib\",\n    \"build:lib:watch\": \"ng build asi-esir-lib --watch\",\n    \"test:lib\": \"ng test asi-esir-lib --browsers ChromeHeadless --watch false --code-coverage=true\",\n    \"lint:lib\": \"ng lint asi-esir-lib\",\n```\n\n- import your component module and test your component on the website\n\n```\nimport { AsiEsirInputModule} from 'asi-esir-lib';\n```\n\n### Manage style\n\n* add a new folder for your less or sass application in your library\n\n* add copyfiles to copy this folder during the build process\n\n```\nnpm i --save-dev copyfiles\n```\n\n* update packages.json  (add copy:style and update build:lib)\n\n```\n\"copy:style\": \"./node_modules/.bin/copyfiles -u 3 projects/asi-esir-lib/style/**/* dist/asi-esir-lib/lib/style\",\n\"build:lib\": \"ng build asi-esir-lib \u0026\u0026 npm run copy:style\",\n```\n\n### Push on github and add travis configuration to manage ci ! https://travis-ci.com\n\n- add travis.yml\n\n```yml\nlanguage: node_js\nnode_js:\n  - \"12.4\"\n\nscript: 'true'\n\njobs:\n  include:\n    - stage: compile\n      script : npm run lint:lib\n    - script : npm run build:lib\n    - stage: test\n      script :\n        - npm run test:lib\n```\n\n- connect on travis-ci with your account and check your build after push\n\n\n### Add coveralls ! https://coveralls.io/\n\n- add coverolls dependencie\n\n```bash\nnpm i --save-dev coveralls\n```\n\n```\n\"coveralls\" : \"cat ./coverage/asi-esir-lib/lcov.info | ./node_modules/coveralls/bin/coveralls.js\",\n```\n\nupdate travis.yml  to add coveralls script\n\n```yml\nlanguage: node_js\nnode_js:\n  - \"12.4\"\n\nscript: 'true'\n\njobs:\n  include:\n    - stage: compile\n      script : npm run lint:lib\n    - script : npm run build:lib\n    - stage: test\n      script :\n        - npm run test:lib\n        - npm run coveralls\n```\n\n- Check your report on coveralls after travis build :)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fxrobert35%2Fae-lib-base","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fxrobert35%2Fae-lib-base","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fxrobert35%2Fae-lib-base/lists"}