Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@ukhomeoffice/formio-gds-template

Package Overview
Dependencies
Maintainers
0
Versions
17
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@ukhomeoffice/formio-gds-template

Gov UK design system formio templates

  • 1.2.0
  • latest
  • Source
  • npm
  • Socket score

Version published
Maintainers
0
Created
Source

GDS Design System Templates for Formio

This project provides the templates required to implement the GDS Design System for Formio form renderer.

Set up and configuration

Prerequisites

Installation

This library is compatible with Node 14-18. For Node 17+, you may need to set the NODE_OPTIONS environment variable to include --openssl-legacy-provider

   npm install @ukhomeoffice/formio-gds-template

Usage

Using vanilla formio

import gds from '@ukhomeoffice/formio-gds-template';
import {Formio} from 'formiojs';

Formio.use(gds);

Using react-formio

import gds from '@ukhomeoffice/formio-gds-template';
import {Formio} from "react-formio";

Formio.use(gds);

How to publish to NPM registry

Publishing to the NPM registry is done through GitHub actions. This is triggered by creating a release through GitHub as documented in the steps below.

As a prerequisite, push a feature branch or merge into the main branch (providing the change has been tested). Ensure the version in package.json has been incremented accordingly. To follow best practices, use the semantic versioning system: https://semver.org/

[!NOTE] Changes which are pre-releases i.e. changes in feature branches which are not ready to be released as general availability, should be marked as a pre-release e.g. 1.2.3-alpha

  1. Create a release through GitHub by going to https://github.com/UKHomeOffice/formio-gds-template/releases/new
  2. Create a new tag version to match the version in package.json prefixing with a v e.g. v1.2.3-alpha
  3. Title the release with the same tag version as created in the previous step
  4. Choose the appropriate branch, be it a feature branch or the primary branch as the target
  5. For simplicity, select the Generate release notes button or for more granularity, populate the release note as relevant
  6. Optionally, mark the release as a pre-release if publishing from a feature branch
  7. Click publish release. This will trigger a GitHub action workflow run
  8. Wait for the GitHub action to finish

[!TIP] Optionally, verify the new version has been published by heading over to https://www.npmjs.com/package/@ukhomeoffice/formio-gds-template to check the new version is present (you may need to reload your browser cache when visiting https://www.npmjs.com). Alternatively, verify it exists through the CLI by running npm view @ukhomeoffice/formio-gds-template versions locally and checking to see if the new version exists

Notes

For additional information on GitHub releases, see the GitHub Documentation

Keywords

FAQs

Package last updated on 27 Jul 2024

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc