Introducing Socket Firewall: Free, Proactive Protection for Your Software Supply Chain.Learn More
Socket
Book a DemoInstallSign in
Socket

@prestashopcorp/puik-resolver

Package Overview
Dependencies
Maintainers
6
Versions
13
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@prestashopcorp/puik-resolver

PUIK resolver - For unplugin-vue-components.

latest
npmnpm
Version
7.0.0
Version published
Maintainers
6
Created
Source
Logo

Puik Resolver

The PrestaShop UI Kit vue component resolver

Documentation

About The Project

Puik Resolver is a vue component resolver for unplugin-vue-components and unplugin-auto-import that will auto import components from the @prestashopcorp/puik-components

Prerequisites

  • Node.js LTS is required.
  • Vue 3
  • @prestashopcorp/puik-components

Installation

$ npm install -D unplugin-vue-components unplugin-auto-import @prestashopcorp/puik-resolver

# Yarn
$ yarn add unplugin-vue-components unplugin-auto-import @prestashopcorp/puik-resolver -D

# pnpm
$ pnpm install unplugin-vue-components unplugin-auto-import @prestashopcorp/puik-resolver -D

ℹ️ unplugin-auto-import is only used for the snackbar component at the moment if you don't need this component you can skip everything related to unplugin-auto-import

Usage

Add the following code to your vite.config.ts file

import { defineConfig } from 'vite'
import Components from 'unplugin-vue-components/vite'
import AutoImport from 'unplugin-auto-import/vite'
import { PuikResolver } from '@prestashopcorp/puik-resolver'

export default defineConfig({
  plugins: [
    // ...
    Components({
      resolvers: [PuikResolver()],
    }),
    AutoImport({
      resolvers: [PuikResolver()],
    }),
  ],
})

Then you can use the components without importing them like that

<script setup></script>

<template>
  <PuikButton>Example button</PuikButton>
</template>

You can find out more about unplugin-vue-components and unplugin-auto-imports in their documentation

FAQs

Package last updated on 04 Jun 2025

Did you know?

Socket

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.

Install

Related posts