在线时间:8:00-16:00
迪恩网络APP
随时随地掌握行业动态
扫描二维码
关注迪恩网络微信公众号
开源软件名称:alphagov/govuk_frontend_toolkit开源软件地址:https://github.com/alphagov/govuk_frontend_toolkit开源编程语言:JavaScript 72.5%开源软件介绍:The GOV.UK Design System launched on 22 June 2018GOV.UK Frontend Toolkit:
This framework will remain available in case you’re currently using it. To help your service meet accessibility requirements, you should use the GOV.UK Design System. You can migrate to the Design System from GOV.UK Frontend Toolkit. GOV.UK frontend toolkitA collection of Sass and JavaScript files for using as part of your application's frontend. This project is not tied to a specific language and is designed to be used as a dependency in as many different languages as needed. There's a InstallingRuby on RailsWe recommend you use the govuk_frontend_toolkit_gem and follow the installation instructions. Node.jsgovuk_frontend_toolkit_npm is an NPM package that can be installed or included in your package.json. If you are using a build tool that depends on Libsass then you
may need to upgrade to a more recent version to use the grid helpers. Minimal
compatible versions include DjangoRequirement: NodeJS installed. This gives you Node Package Manager(NPM) which is required to install npm packages. The easiest way to integrate it would be to create a You then install the toolkit with With Django you can use https://github.com/jrief/django-sass-processor to compile Sass files. Note: if you need complete styles you might want to install govuk-elements-sass package that also installs toolkit Other projectsUsing the tagged versionsEach version of the toolkit is tagged with the version number in this format:
If your dependency management tool allows the use of Git repositories as dependencies, you can point to a version by using its tag. For example, if you are using bower, you can add the toolkit to your
Using git submodulesYou can include the toolkit as a git submodule. To add the submodule to your project run the following command substituting the path to a subdirectory in your project's assets directory:
We recommend you use If you clone a project with the toolkit submodule installed you will need to initialise the submodule with the following command:
To update the toolkit to the latest version you can use:
Running testsTests for this project use Jasmine for the JavaScript and Ruby's The requirements are Node.js 0.8 or higher and PhantomJS, and Ruby: bundle install
npm install
npm test Standard JavaScript
Using the local test runnerThe test suite can be run by opening the The files for unit tests and any supporting JavaScript should be added to UsageAt the top of a Sass file in your project you should use an
You may need to include the relative path to the toolkit if it is installed as a submodule:
If you are compiling Sass from the command-line tool, here are some options we recommend. In development:
In production:
DocumentationLicenceReleased under the MIT Licence, a copy of which can be found in the file |
2023-10-27
2022-08-15
2022-08-17
2022-09-23
2022-08-13
请发表评论