
Security News
Socket Releases Free Certified Patches for Critical vm2 Sandbox Escape
A critical vm2 sandbox escape can allow untrusted JavaScript to break isolation and execute commands on the host Node.js process.
@cooperco/cooper-component-library
Advanced tools
A Vue 3 component library built with TypeScript, Vite, and Tailwind CSS. Published as `@cooperco/cooper-component-library` and designed for integration with Contentful CMS via GraphQL.
A Vue 3 component library built with TypeScript, Vite, and Tailwind CSS. Published as @cooperco/cooper-component-library and designed for integration with Contentful CMS via GraphQL.
<script setup># Install dependencies
pnpm install
# Start Storybook dev server
pnpm run dev
# Run linter
pnpm run lint
# Fix linting issues
pnpm run lint:fix
# Type check
pnpm run check-types
To test the component library in a consuming project before publishing:
# 1. Build and pack the library
pnpm run local-test
This creates a .tgz file in the root directory (e.g., cooperco-cooper-component-library-0.1.61.tgz)
# 2. In the consuming project, install the local package
pnpm add /path/to/cooperco-cooper-component-library-0.1.61.tgz
This allows you to test changes locally before publishing to npm.
The build and publish process needs to happen manually when changes are merged to main:
mainnpm version patch (or minor/major)npm publish to publish to npm registryWhen you run pnpm run build, the following happens in order:
build:types - Compiles Vue component TypeScript definitionsbuild:cms - Compiles GraphQL queries for Contentfulvite build - Builds the component library bundleAll build artifacts are output to the dist/ directory.
The package exports multiple entry points:
@cooperco/cooper-component-library - Main component library@cooperco/cooper-component-library/css/main.css - Main styles@cooperco/cooper-component-library/css/theme.css - Theme variables@cooperco/cooper-component-library/cms/contentful/graphql - GraphQL queriesβββ src/
β βββ components/ # Vue components
β β βββ ComponentName/
β β β βββ ComponentName.vue
β β β βββ ComponentName.ts
β β βββ components.ts # Component exports
β β βββ types.ts # Type exports
β βββ config/ # Configuration (color palettes, passthroughs)
β βββ utils/ # Utility functions
βββ cms/
β βββ contentful/
β βββ queries/ # GraphQL queries (see cms/contentful/queries/README.md)
βββ .storybook/ # Storybook configuration
β βββ components/ # Component stories
βββ dist/ # Build output (generated)
pnpm run dev to view Storybookclass is not recognized by TypeScript. Examples are "start"/"end" in ContainerModule. This is because we are not defining class on the component types. Defining them explicitly overrides the default Attribute Inheritance behavior of Vue. Need to find a way to get around thisFAQs
A Vue 3 component library built with TypeScript, Vite, and Tailwind CSS. Published as `@cooperco/cooper-component-library` and designed for integration with Contentful CMS via GraphQL.
We found that @cooperco/cooper-component-library demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago.Β It has 3 open source maintainers 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
A critical vm2 sandbox escape can allow untrusted JavaScript to break isolation and execute commands on the host Node.js process.

Research
Five malicious NuGet packages impersonate Chinese .NET libraries to deploy a stealer targeting browser credentials, crypto wallets, SSH keys, and local files.

Security News
pnpm 11 turns on a 1-day Minimum Release Age and blocks exotic subdeps by default, adding safeguards against fast-moving supply chain attacks.