alphagov/govuk-design-system
关于
服务团队可以在此查找设计政府服务所需的样式、组件和模式。
其他项目实测星标增长
- 24小时
- +1
- 7天
- +2
- 15天
- +3
- 1个月
- 正在收集历史
各周期内的星标净变化,周期相互重叠,并非每日新增。缺失的测量保持空白。星标代表关注度,不代表软件质量。
README.md
原文GOV.UK Design System
This repository contains the code for the GOV.UK Design System website. To find the code we provide for reuse by services, go to the govuk-frontend repository.
Run locally
You'll need Git and Node.js installed to get this project running.
Note: You will need the active LTS (Long-term support) Node.js version for this project (as specified in .nvmrc)
Fork repository (optional)
If you're an external contributor make sure to fork this project first
Clone repository
git clone [email protected]:alphagov/govuk-design-system.git # or clone your own fork
cd govuk-design-system
Using nvm (optional)
If you work across multiple Node.js projects there's a good chance they require different Node.js and npm versions.
To enable this we use nvm (Node Version Manager) to switch between versions easily.
- install nvm
- Run
nvm installin the project directory (this will use .nvmrc)
Install npm dependencies
npm install
Start a local server
This will build sources, serve pages and watch for changes.
npm start
By default, this will only accept connections from the same machine. If you need to allow external connections, for example if you want to test from another device, you'll need to set the ALLOW_EXTERNAL_CONNECTIONS environment variable to true:
ALLOW_EXTERNAL_CONNECTIONS=true npm start
Build
Build ./src to ./build
npm run build
Run the Sass linter
We are using the tool stylelint to lint the Sass files in
source/stylesheets. You can run the linter from command line by running:
npm run lint
GOV.UK Frontend packages
Design System consumes the GOV.UK Frontend package via NPM. This is defined in the package.json file.
Continuous integration
When changes are pushed to GitHub, Github Actions will:
- run the tests
- lint the Sass stylesheets in
source/stylesheets - run the
npm run buildcommand to ensure that the site can be generated
If any of these fail, this will be reported in the GitHub status checks interface.
Deployment
Security
GDS is an advocate of responsible vulnerability disclosure. If you’ve found a vulnerability, we would like to know so we can fix it.
To learn how to report a security vulnerability, see our security policy.
Contributing
The govuk-design-system repository is public and we welcome contributions from anyone.
Contributors to alphagov repositories are expected to follow the Contributor Covenant Code of Conduct. Contributors working within government are also expected to follow the Civil Service code.
We're unable to monitor activity on this repository outside of our office hours (10am to 4pm, UK time). To get a faster response at other times, you can report abuse or spam to GitHub.
探索相关项目
加载中…