{"id":21827488,"url":"https://github.com/laixiangran/ng-xdesign-test","last_synced_at":"2026-05-09T17:51:59.581Z","repository":{"id":138975324,"uuid":"178696350","full_name":"laixiangran/ng-xdesign-test","owner":"laixiangran","description":"An enterprise-class UI components based on One Design and Angular 7.","archived":false,"fork":false,"pushed_at":"2019-05-31T06:29:57.000Z","size":12328,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"develop","last_synced_at":"2025-02-27T12:41:43.818Z","etag":null,"topics":["angular","component","xdesign"],"latest_commit_sha":null,"homepage":"http://www.laixiangran.cn/ng-xdesign-test","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/laixiangran.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":"CONTRIBUTING.md","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":"2019-03-31T14:06:40.000Z","updated_at":"2019-05-31T06:29:58.000Z","dependencies_parsed_at":"2023-06-26T01:47:09.489Z","dependency_job_id":null,"html_url":"https://github.com/laixiangran/ng-xdesign-test","commit_stats":null,"previous_names":[],"tags_count":25,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/laixiangran%2Fng-xdesign-test","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/laixiangran%2Fng-xdesign-test/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/laixiangran%2Fng-xdesign-test/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/laixiangran%2Fng-xdesign-test/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/laixiangran","download_url":"https://codeload.github.com/laixiangran/ng-xdesign-test/tar.gz/refs/heads/develop","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":244796229,"owners_count":20511663,"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","component","xdesign"],"created_at":"2024-11-27T18:13:17.662Z","updated_at":"2026-05-09T17:51:54.506Z","avatar_url":"https://github.com/laixiangran.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# ng-xdesign-test\n\n[![Build Status](https://travis-ci.com/laixiangran/ng-xdesign-test.svg?branch=develop)](https://travis-ci.com/laixiangran/ng-xdesign-test)\n[![codecov](https://codecov.io/gh/laixiangran/ng-xdesign-test/branch/develop/graph/badge.svg)](https://codecov.io/gh/laixiangran/ng-xdesign-test)\n[![GitHub Release Date](https://img.shields.io/github/release-date/laixiangran/ng-xdesign-test.svg)](https://github.com/laixiangran/ng-xdesign-test/releases)\n[![npm package](https://img.shields.io/npm/v/ng-xdesign-test.svg)](https://www.npmjs.com/package/ng-xdesign-test)\n[![npm downloads](https://img.shields.io/npm/dm/ng-xdesign-test.svg)](https://www.npmjs.com/package/ng-xdesign-test)\n[![GitHub License](https://img.shields.io/github/license/laixiangran/ng-xdesign-test.svg)](https://github.com/laixiangran/ng-xdesign-test/blob/master/LICENSE)\n\n## start\n\n```base\nnpm install ng-xdesign-test@latest\n```\n\n```javascript\nimport { NbButtonModule } from \"ng-xdesign-test\";\n@NgModule({\n    imports: [\n        NbButtonModule\n    ]\n})\n```\n\n```html\n\u003cbutton nb-button\u003e\u003c/button\u003e\n```\n\n## develop\n\n```bash\n$ npm install\n\n$ npm start\n```\n\n## commit\n\ninclude `git commit` and `git push`\n\n```bash\nnpm run commit -- -m 'type(scope): subject'\n```\n\n[AngularJS Git Commit Message Conventions](https://docs.google.com/document/d/1QrDFcIiPjSLDn3EL15IJygNPiHORgU1_OOAqWjiDU5Y/edit#)\n\n## lint\n\n```bash\n$ npm run lint\n```\n\n## test\n\n```bash\nnpm run test-once\n\nor\n\nnpm run test-watch\n```\n\n## e2e\n\n```bash\nnpm run e2e\n```\n\n## build\n\n```bash\nnpm run build\n```\n\n## release workflow\n\n### merge develop\n\n```\ngit checkout master\ngit merge develop\n```\n\n### release\n\n```\nnpm run release\n```\n\n发布之后，可以去 [travis](https://travis-ci.com/laixiangran/ng-xdesign-test) 查看最新的发布情况。\n\n如果没有问题，过几分钟后，travis 任务会自动推送最新的版本到 npm\n\n### merge master and push\n\n```\ngit checkout develop\ngit merge master\nnpm run commit -- -m 'type(scope): subject'\n```\n\n## Compose a component\n\nComponent code are in `src/component`.\n\nYou can use `npm run gc` to quickly scafford a component.\n\n```bash\n$ npm run gc -- --name your-component\n```\n\nA `your-component` folder will be created in `src/component`, and the contents are:\n\n```bash\nyour-component\n├── index.ts\n├── public_api.ts\n├── your-component.config.ts\n├── your-component.html\n├── your-component.less\n├── your-component.module.ts\n└── your-component.ts\n```\n\nand it will add your component entry to `src/component/index.ts`.\n\n## Write a demo for your component\n\nYou can then write a demo to test your component in `src/demo`.\n\nWhen you use `npm run gc -- --name your-component`, a folder will be generated in `src/demo` too.\n\n```bash\nyour-component\n├── index.ts\n├── your-component.html\n├── your-component.less\n└── your-component.ts\n```\n\nBut you will still config the `src/demo/app.router.ts` and `src/demo/app.module.ts`.\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Flaixiangran%2Fng-xdesign-test","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Flaixiangran%2Fng-xdesign-test","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Flaixiangran%2Fng-xdesign-test/lists"}