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

@transferwise/styleguide-components

Package Overview
Dependencies
Maintainers
2
Versions
125
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@transferwise/styleguide-components

TransfeWise AngularJS 1.x Styleguide Components

  • 10.0.0
  • unpublished
  • latest
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
0
Maintainers
2
Weekly downloads
 
Created
Source

styleguide-components

AngularJS components for TransferWise Bootstrap. The repo provides form controls, dynamic form components, validation, and some styling directives.

Live demo and documentation: https://transferwise.github.io/styleguide-components/

For detailed documentation on how to use JSON schema dynamic forms: https://transferwise.github.io/styleguide-components/requirements.html

For a playground where you can try out different JSON schemas in a live editor: https://transferwise.github.io/styleguide-components/playground.html

Installation

Import the latest version number from NPM.

dependencies: {
  "@transferwise/styleguide-components": "^3.10.4",
}

Include the distribution file (exact path depends on your yarn/npm/bower config).

<script src="node_modules/styleguide-components/dist/js/styleguide-components.min.js"></script>

Within your angular application, simply add the module as a dependency for your application definition.

angular.module('my-app', ['tw.styleguide-components']);

Contributing

Clone the project and run npm start, this will build the project and set up a watch for changes.

To run the local server with live reload, you can run the following:

npm run dev

To run the local server with live reload to view components requiring camera permissions, you can run the following:

npm run devhttps

Testing

To test, run npm test.

If you get errors while testing along the lines of:

libpng16.so.16: cannot open shared object file: No such file or directory

    at Object.<anonymous> (node_modules/canvas/lib/bindings.js:3:18)

Then be sure to install the necessary dependencies for your OS by following https://www.npmjs.com/package/canvas#compiling.

If you still can't able to find libpcre.so.1, and you're (still) on Ubuntu 16.04, well there's no libpcre.so.1 in the apt packages. Take guidance from this StackOverflow comment. You will need to download and extract the latest pcre-8.XX package from https://www.pcre.org/, ./configure, make, (sudo-)move the resulting .lib/libpcre.so.1.X.X to maybe /usr/lib, update its permissions, and ln -s libpcre.so.1 to it.

Releasing

In order to release a new version, here are the steps necessary:

  1. Bump the version in package.json and add description of the change in CHANGELOG.md

    Use semver: http://semver.org

  2. Make a pull request

    Tests will be run automatically. You will need a review from a member of the @transferwise/frontend-guild.

  3. Squash WIP commits and merge

    Delete your branch after merging.

  4. Build and release are made automatically on merge

    CircleCI will:

Keywords

FAQs

Package last updated on 03 Aug 2022

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