10.0.0 • Published 2 years ago

@transferwise/styleguide-components v10.0.0

Weekly downloads
640
License
MIT
Repository
github
Last release
2 years ago

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:

10.0.0

2 years ago

9.0.2-beta.3

3 years ago

9.1.0

2 years ago

9.0.3

3 years ago

9.0.2-beta.2

3 years ago

9.0.2-beta.1

3 years ago

9.0.2

3 years ago

9.0.1

3 years ago

9.0.0

3 years ago

8.3.1

3 years ago

8.3.0

3 years ago

8.2.3

3 years ago

8.2.2

3 years ago

8.2.1

3 years ago

8.2.0

3 years ago

8.1.1

3 years ago

8.1.0

4 years ago

8.0.3

4 years ago

8.0.2

4 years ago

8.0.1

4 years ago

8.0.0

4 years ago

7.0.7-beta.4

4 years ago

7.0.7-beta.2

4 years ago

7.0.7-beta.3

4 years ago

7.0.7-beta.1

4 years ago

7.0.7

4 years ago

7.0.6-beta.1

4 years ago

7.0.6

4 years ago

7.0.4

4 years ago

7.0.3

4 years ago

7.0.2

4 years ago

7.0.2-beta.1

4 years ago

7.0.0

4 years ago

6.1.0

4 years ago

6.0.0

4 years ago

5.6.5

4 years ago

5.6.4

4 years ago

5.6.3

4 years ago

5.6.2

4 years ago

5.6.1

4 years ago

5.6.0

4 years ago

5.5.1

4 years ago

5.5.0

4 years ago

5.4.2

4 years ago

5.4.1

4 years ago

5.4.0

4 years ago

5.3.2

4 years ago

5.3.1

4 years ago

5.3.0

4 years ago

5.2.0

4 years ago

5.1.2

4 years ago

5.1.1

4 years ago

5.1.0

4 years ago

5.0.2

4 years ago

5.0.1

4 years ago

5.0.0

4 years ago

4.5.7

4 years ago

4.5.6

4 years ago

4.5.5

4 years ago

4.5.4

4 years ago

4.5.3

4 years ago

4.5.0

4 years ago

4.5.2

4 years ago

4.5.1

4 years ago

4.4.1

4 years ago

4.4.0

4 years ago

4.3.0

4 years ago

4.2.0

4 years ago

4.0.0

4 years ago

3.13.0

5 years ago

3.12.4

5 years ago

3.12.3

5 years ago

3.12.2

5 years ago

3.12.1

5 years ago

3.12.0

5 years ago

3.11.1

5 years ago

3.11.0

5 years ago

3.10.3

5 years ago

3.9.1

5 years ago

3.9.0

5 years ago

3.8.5

5 years ago

3.8.4

5 years ago

3.8.3

5 years ago

3.8.2

5 years ago

3.8.1

5 years ago

3.8.0

5 years ago

3.7.1

5 years ago

3.7.0

5 years ago

3.6.2

5 years ago

3.6.1

5 years ago

3.6.0

5 years ago

3.5.10

5 years ago

3.5.9

5 years ago

3.5.8

5 years ago

3.5.7

5 years ago

3.5.6

5 years ago

3.5.5

5 years ago

3.5.4

5 years ago

3.5.3

5 years ago

3.5.2

5 years ago

3.5.1

6 years ago

3.5.0

6 years ago

3.4.3

6 years ago

3.4.2

6 years ago

3.4.1

6 years ago

3.4.0

6 years ago

3.3.2

6 years ago

3.3.1

6 years ago

3.3.0

6 years ago

3.2.7

6 years ago

3.2.6

6 years ago

3.2.4

6 years ago

3.2.3

6 years ago

3.2.2

6 years ago

3.2.1

6 years ago

3.2.0

6 years ago

3.1.2

6 years ago

3.1.1

6 years ago

3.1.0

6 years ago

3.0.7

6 years ago

3.0.6

6 years ago

3.0.5

6 years ago

3.0.4

6 years ago

3.0.3

6 years ago

3.0.2

6 years ago