Installation

There are a few ways to install or make the components ready for use.

Download the file

This is by far the easiest method. Figure out the hosting, but it shouldn't be too hard. Download Anglepoint Components

Install with NPM

Setup

First things first, you'll need access to the Anglepoint Marketing GitHub organization. Reach out to IT to get read access to the org, assuming it's in budget. Otherwise, you'll need to use an alternative method.

Follow the instructions on GitHub for authenticating yourself to GitHub's NPM package registry using a "personal access token (classic)".

Install

You can install the components with NPM by running the following command in your project directory:

bash
npm install @anglepoint-marketing/anglepoint-components

Once installed, you can import the components into your project all at once…

javascript
import initialize from "@anglepoint-marketing/anglepoint-components"; typeof window !== "undefined" && initialize();

…or individually

javascript
import APCarousel from "@anglepoint-marketing/anglepoint-components/src/carousel/carousel"; typeof window !== "undefined" && window.customElements.define("ap-carousel", APCarousel);

You can also just grab the latest build from dist/components.js, which has all of the components minified and transpiled using the following browserslist:

json
["last 2 versions", "> 0.5%", "Firefox ESR", "not dead", "not ie 11"]