{"id":19835071,"url":"https://github.com/equinor/amplify-component-lib","last_synced_at":"2026-04-28T07:05:03.176Z","repository":{"id":62105113,"uuid":"363125042","full_name":"equinor/amplify-component-lib","owner":"equinor","description":"A react component library used by the amplify team.","archived":false,"fork":false,"pushed_at":"2024-10-23T11:43:49.000Z","size":21301,"stargazers_count":6,"open_issues_count":0,"forks_count":2,"subscribers_count":5,"default_branch":"main","last_synced_at":"2024-10-25T00:12:25.413Z","etag":null,"topics":["component-library","components-react"],"latest_commit_sha":null,"homepage":"https://storybook-amplify-components.app.radix.equinor.com","language":"TypeScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"isc","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/equinor.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":"CONTRIBUTING.md","funding":null,"license":"LICENSE.md","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":".github/CODEOWNERS","security":"SECURITY.md","support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2021-04-30T11:52:11.000Z","updated_at":"2024-10-23T11:43:53.000Z","dependencies_parsed_at":"2023-09-22T19:29:58.188Z","dependency_job_id":"fe661c64-327e-4538-a9b7-5f241bbefc40","html_url":"https://github.com/equinor/amplify-component-lib","commit_stats":{"total_commits":742,"total_committers":13,"mean_commits":57.07692307692308,"dds":"0.47843665768194066","last_synced_commit":"83ab69f1b2b20740053fab0c701a43a173063691"},"previous_names":["equinor/amplify-components"],"tags_count":54,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/equinor%2Famplify-component-lib","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/equinor%2Famplify-component-lib/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/equinor%2Famplify-component-lib/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/equinor%2Famplify-component-lib/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/equinor","download_url":"https://codeload.github.com/equinor/amplify-component-lib/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":224270291,"owners_count":17283649,"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":["component-library","components-react"],"created_at":"2024-11-12T12:06:30.001Z","updated_at":"2026-01-08T14:14:02.770Z","avatar_url":"https://github.com/equinor.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"\n\u003cimg alt=\"intro-logo\" src=\"https://raw.githubusercontent.com/equinor/amplify-component-lib/main/static/amplify.png\" width=\"300px\" /\u003e\n\n[![SCM Compliance](https://scm-compliance-api.radix.equinor.com/repos/equinor/amplify-component-lib/badge)](https://scm-compliance-api.radix.equinor.com/repos/equinor/amplify-component-lib/badge)\n\nAmplify Component Library (ACL) contains components, utils, providers and hooks developed and used by the Amplify team. \n\nThis package is first and foremost for our own Amplify applications. You can use them outside of Amplify if you want, but we will not be supporting any needs that don't align with our own Amplify applications. If you have an issue or find any bugs, create an issue in Github as we don't accept PRs from contributors outside of the Amplify team.\n\n# Quick links\n\n- [Storybook](https://storybook-amplify-components.app.radix.equinor.com/)\n- [Contributing](https://github.com/equinor/amplify-component-lib/blob/main/CONTRIBUTING.md)\n\n# Building amplify-component-lib\n\nBuild and publish is done automatically when code is merged into `main` branch, if the package.json version number is higher.\n\n# Using config files from amplify-component-lib\n\n1. Navigate to your projects root folder, `~/Projects/recap` for instance\n\n2. Copy and run the following command\n\n```bash\nwget -q -O - https://raw.githubusercontent.com/equinor/amplify-component-lib/main/config/install.sh | bash\n```\n\nThis should have downloaded the different config files to your project root folder.\n\nIf you want to ignore certain configuration files you can create a `.acl-ignore` file in the `client` folder in your project.\n\nFor example: `acquire/client/.acl-ignore`\n\n```text\neslint.config.mjs\nCODEOWNERS\npull_request.yaml\n```\n\n# Using github action workflows related to deploying from github from amplify-component-lib\n\n1. Navigate to your projects root folder, `~/Projects/recap` for instance\n\n2. Copy and run the following command\n\n```bash\nwget -q -O - https://raw.githubusercontent.com/equinor/amplify-component-lib/main/config/install-deployment-files.sh | bash\n```\n\nThis should have downloaded the `build_deploy_radix.yaml`, `promote.yaml`, `notify.yaml`, `push.yaml`\n\nNOTE: These files should eventually be served from the same install script we use for getting other config files. We serve it from a different script so that applications which are not ready for the change in deployment process don't have to rush.\n\n## Notes\n\nThis script assumes the following structure in the project\n\n```text\nproject\n│   README.md\n│\n└───client\n│   |   ...\n│\n└───server\n    │   ...\n```\n\n# Using [pre-commit](https://pre-commit.com/)\n\n## Download and install pre-commit\n\nUsing python's pip to download pre-commit\n\n```bash\npip install pre-commit\n```\n\nUsing brew to download pre-commit\n\n```bash\nbrew install pre-commit\n```\n\nfinally install pre-commit\n\n```bash\npre-commit\n```\n\n## Add config file, .pre-commit-config.yaml\n\nYour `.pre-commit-config.yaml` file should look something like below\n\n```yaml\nrepos:\n  - repo: local\n    hooks:\n      - id: hadolint\n        name: Lint Dockerfiles\n        description: Runs hadolint to lint Dockerfiles\n        language: system\n        types: ['dockerfile']\n        entry: hadolint\n      - id: trufflehog\n        name: TruffleHog\n        description: Detect secrets in your data with TruffleHog.\n        entry: trufflehog git file://. --since-commit HEAD --only-verified --fail\n        language: golang\n        pass_filenames: false\n      - id: prettier\n        name: Prettier\n        description: Runs prettier on supported files\n        language: system\n        entry: 'npx prettier --check'\n        files: .*\\.jsx?$|.*\\.tsx?$|.*\\.ts?$\n  - repo: https://github.com/pre-commit/mirrors-eslint\n    rev: v9.9.0\n    hooks:\n      - id: eslint\n        files: \\.[jt]sx?$ # *.js, *.jsx, *.ts and *.tsx\n        types: [file]\n        additional_dependencies:\n          - eslint@8.57.0\n          - eslint-config-prettier@9.1.0\n          - eslint-plugin-prettier@5.1.3\n          - eslint-plugin-react@7.34.0\n          - eslint-plugin-react-hooks@4.6.0\n          - eslint-plugin-simple-import-sort@12.0.0\n\n```\n\n## Install hooks\n\nWhen you have your config file in place you need to install the hooks\n\n```bash\npre-commit install\n```\n\n## Dockerfile linting\n\nWe use [hadolint](https://github.com/hadolint/hadolint) to check that our docker file is using best practice.\n\n### Install\n\nIn order to commit changes related to a dockerfile you need to have hadolint installed\n\n#### CLI\n\nOn OSX you can use [brew](https://brew.sh/) to install:\n\n```bash\nbrew install hadolint\n```\n\nOn Windows you can use [scoop](https://github.com/lukesampson/scoop) to install:\n\n```bash\nscoop install hadolint\n```\n\nIn any of these do not work then you can refer to the [installation section](https://github.com/hadolint/hadolint?tab=readme-ov-file#install) in hadolint's repository\n\n#### VS Code\n\nIf you want to shorten the feedback loop when changing your dockerfile you can optionally add the [hadolint extension](https://github.com/michaellzc/vscode-hadolint) (Extension id: `exiasr.hadolint`)\n\n#### WebStorm\n\nLooks like it is [not available](https://youtrack.jetbrains.com/issue/IJPL-69780/Bundle-hadolint-a-Docker-linting-tool) for WebStorm at the moment\n\n# Latest version\n\n[![main](https://img.shields.io/npm/v/@equinor/amplify-component-lib?color=%23c3f3d2\u0026label=%40equinor%2Famplify-component-lib\u0026logo=npm\u0026)](https://www.npmjs.com/package/@equinor/amplify-component-lib)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fequinor%2Famplify-component-lib","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fequinor%2Famplify-component-lib","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fequinor%2Famplify-component-lib/lists"}