6.0.4 • Published 3 years ago

backpack-transpiled v6.0.4

Weekly downloads
50
License
Apache-2.0
Repository
github
Last release
3 years ago

https://backpack.github.io/

Build status

Dependencies status

Scripts used to publish a transpiled version of Skyscanner's Backpack design-system components.

Support

This is not an official Skyscanner project. It is provided "as-is", with no guarantee of support.

Why?

Skyscanner's web components (for React) are published untranspiled. This is fine internally because we have a custom set of react-scripts that handle ES6 syntax and SASS files, but projects outside Skyscanner might not want to use backpack-react-scripts or set up custom bundler rules.

So this is a transpiled version of the components that uses vanilla JS and CSS.

This is shipped as one big package - but modern tree-shaking techniques should mean that your bundle size is not adversely affected.

Documentation

For component documentation, see https://backpack.github.io/.

Using in a create-react-app

Simply import the components you want to use, and render them.

import BpkButton from 'backpack-transpiled/bpk-component-button';
...
return (<BpkButton>Test</BpkButton>);

Using in Next.js

To use this in Next.js there are a couple of additional steps needed.

Install css-loader, mini-css-extract-plugin, next-transpile-modules and webpack.

(If your next project is using webpack 4, make sure you install a version of webpack 4).

Download next.config.js and place it at the top of your project:

Installing and using backpack-transpiled should now work as it would in a vanilla create-react-app.

Contributing

Contributions are welcome. Please fork and submit a PR if you want to add or change a feature. See CONTRIBUTING.md for information on how to set up the project.

6.0.4

3 years ago

6.0.3

3 years ago

6.0.2

3 years ago

6.0.1

3 years ago

6.0.0

3 years ago

5.0.0

3 years ago

4.0.1

3 years ago

4.0.0

3 years ago

3.1.2

3 years ago

3.1.1

3 years ago

2.4.0

3 years ago

2.3.1

3 years ago

3.1.0

3 years ago

3.0.1

3 years ago

3.0.0

3 years ago

2.3.0

3 years ago

2.2.0

3 years ago

2.1.0

3 years ago

2.0.1

3 years ago

2.0.0

3 years ago

1.1.0

3 years ago

1.0.1

3 years ago

1.0.0

3 years ago

0.5.0

3 years ago

0.4.2

3 years ago

0.4.1

3 years ago

0.4.0

3 years ago

0.3.0

3 years ago

0.2.0

3 years ago

0.1.0

3 years ago

0.0.23

4 years ago

0.0.22

4 years ago

0.0.21

4 years ago

0.0.20

4 years ago

0.0.19

4 years ago

0.0.18

4 years ago

0.0.17

4 years ago

0.0.16

4 years ago

0.0.15

4 years ago

0.0.14

4 years ago

0.0.13

4 years ago

0.0.12

4 years ago

0.0.10

4 years ago

0.0.11

4 years ago

0.0.9

4 years ago

0.0.8

4 years ago

0.0.7

4 years ago

0.0.6

4 years ago

0.0.5

4 years ago

0.0.4

4 years ago

0.0.3

4 years ago

0.0.2

4 years ago

0.0.1

4 years ago