
Security News
Attackers Are Hunting High-Impact Node.js Maintainers in a Coordinated Social Engineering Campaign
Multiple high-impact npm maintainers confirm they have been targeted in the same social engineering campaign that compromised Axios.
jaz-vite-poc
Advanced tools
This repository is a proof of concept for using Vite as a bundler for the Booking Design System component library. It demonstrates how to set up a React component library with TypeScript, Tailwind CSS, Storybook, and Jest testing using Vite instead of Rollup.
The purpose of this project is to validate the feasibility of using Vite for our component library by:
# Clone the repository
git clone https://github.com/your-org/booking-design-system-vite-poc.git
cd booking-design-system-vite-poc
# Install dependencies
yarn install
# Start Storybook for component development
yarn storybook
# Run tests
yarn test
# Build the library
yarn build
After installing the package from NPM, you can import components like this:
import { Button } from '@booking-design-system/vite-poc';
import '@booking-design-system/vite-poc/style.css'; // Import styles
function App() {
return (
<div>
<Button variant="primary">Click me</Button>
</div>
);
}
/
├── .storybook/ # Storybook configuration
├── src/
│ ├── components/ # UI components
│ │ ├── Button/ # Sample Button component
│ │ │ ├── Button.tsx
│ │ │ ├── Button.stories.tsx
│ │ │ ├── Button.test.tsx
│ │ │ └── index.ts
│ ├── index.css # Main CSS file with Tailwind imports
│ └── index.ts # Main entry point
├── vite.config.ts # Vite configuration
├── tsconfig.json # TypeScript configuration
└── package.json # Package configuration
To publish the package to NPM:
# Login to NPM
yarn login
# Publish the package
yarn publish
Vite provides a more modern and streamlined approach to building component libraries with excellent developer experience, while still leveraging Rollup under the hood for production builds. For most component libraries, Vite offers a better developer experience without sacrificing build quality.
After publishing the package, you can test it in the OBE project by:
Installing the package:
yarn add @booking-design-system/vite-poc
Importing and using components:
import { Button } from '@booking-design-system/vite-poc';
import '@booking-design-system/vite-poc/style.css';
// Use the component in your OBE project
Verify that:
FAQs
Booking Design System POC using Vite
The npm package jaz-vite-poc receives a total of 1 weekly downloads. As such, jaz-vite-poc popularity was classified as not popular.
We found that jaz-vite-poc demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?

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.

Security News
Multiple high-impact npm maintainers confirm they have been targeted in the same social engineering campaign that compromised Axios.

Security News
Axios compromise traced to social engineering, showing how attacks on maintainers can bypass controls and expose the broader software supply chain.

Security News
Node.js has paused its bug bounty program after funding ended, removing payouts for vulnerability reports but keeping its security process unchanged.