{"id":20806718,"url":"https://github.com/fed/ui-component-example","last_synced_at":"2026-04-25T09:36:40.582Z","repository":{"id":85048466,"uuid":"66556181","full_name":"fed/ui-component-example","owner":"fed","description":null,"archived":false,"fork":false,"pushed_at":"2016-08-25T12:32:33.000Z","size":17,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-12-25T20:59:22.505Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"JavaScript","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/fed.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","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":"AUTHORS.md","dei":null,"publiccode":null,"codemeta":null}},"created_at":"2016-08-25T12:30:50.000Z","updated_at":"2016-08-25T12:31:15.000Z","dependencies_parsed_at":"2023-03-08T17:30:41.910Z","dependency_job_id":null,"html_url":"https://github.com/fed/ui-component-example","commit_stats":null,"previous_names":[],"tags_count":1,"template":false,"template_full_name":null,"purl":"pkg:github/fed/ui-component-example","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/fed%2Fui-component-example","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/fed%2Fui-component-example/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/fed%2Fui-component-example/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/fed%2Fui-component-example/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/fed","download_url":"https://codeload.github.com/fed/ui-component-example/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/fed%2Fui-component-example/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":32257754,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-25T09:15:33.318Z","status":"ssl_error","status_checked_at":"2026-04-25T09:15:31.997Z","response_time":59,"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-11-17T19:24:53.437Z","updated_at":"2026-04-25T09:36:40.565Z","avatar_url":"https://github.com/fed.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# ui-component-example\n\nThis is a simple ui-component consisting just of a button that changes its background color randomly as it gets clicked on. This demo module was created to illustrate how ui-components work and get integrated to bigger projects.\n\n\u003e Created with [generator-ui-component](https://github.com/fknussel/generator-ui-component) v0.1.0.\n\n## Prerequisites\n\n1. Setup [npm](https://nodejs.org/) properly for your development environment.\n2. Run `npm install -g grunt-cli` to to install Grunt's command line interface (CLI) globally (you might as well use `npm start`, `npm build` and `npm test` if you don't want to install `grunt-cli` globally since it comes shipped as a dev dependency).\n\n## Setup\n\n```\nnpm install\n```\n\n## Run tests\n\n```\ngrunt test\n```\n\n## Build assets\n\n```\ngrunt build\n```\n\n## Build, run and watch for changes\n\n```\ngrunt\n```\n\n## Creating your module\n\n1. Edit mustache, SASS, JS files in `./src` (e.g. `./src/component.mustache`, `./src/component.scss`, and `./src/component.js`).\n2. Add mock JSON data model to `./model/usecases.json`.\n4. Build and run the app, and visit [http://localhost:4567](http://localhost:4567) in your browser.\n\n## Release versions\n\nThis repo uses [grunt-bump](https://github.com/gruntjs/grunt-bump) and Semantic Versioning to version and tag releases. To release a new version, run the appropriate command:\n\n```\ngrunt release:major       # bump major version, eg. 1.0.2 -\u003e 2.0.0\ngrunt release:minor       # bump minor version, eg. 0.1.3 -\u003e 0.2.0\ngrunt release:patch       # bump patch version, eg. 0.0.1 -\u003e 0.0.2\ngrunt release:prerelease  # bump pre-release version, eg. 1.0.0 -\u003e 1.0.0-1\n```\n\nMake sure to push tags:\n\n```\ngit push --tags origin master\n```\n\nPublish the package to [npm's public registry](https://www.npmjs.com/):\n\n```\nnpm publish\n```\n\n**Heads up!** To publish, you must have a user on the npm registry. If you don't have one, create it with `npm adduser`. If you created one on the site, use `npm login` to store the credentials on the client. You can use `npm config ls` to ensure that the credentials are stored on your client. Check that it has been added to the registry by going to [http://npmjs.com/~](http://npmjs.com/~).\n\n## Semantic versioning\n\nGiven a version number `MAJOR.MINOR.PATCH`, increment the:\n\n1. `MAJOR` version when you make incompatible API changes,\n2. `MINOR` version when you add functionality in a backwards-compatible manner, and\n3. `PATCH` version when you make backwards-compatible bug fixes.\n\nSee the [Semantic Versioning](http://semver.org/) specification for more information.\n\n## Release history\n\nSee the [CHANGELOG](CHANGELOG.md).\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ffed%2Fui-component-example","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ffed%2Fui-component-example","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ffed%2Fui-component-example/lists"}