npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2024 – Pkg Stats / Ryan Hefner

@pernod-ricard/archipelago-vue

v1.1.1

Published

Vue components library of Pernod Ricard's Archipelago Design System

Downloads

157

Readme

Archipelago Vue

This project based on Archipelago Core CSS library is a Vue 3 components library.

It uses Vue 3 and Vite.

Technologies

Les outils suivants sont nécessaires pour ce projet :

| Techno | Version | | ------- | -------------- | | Node.js | 20.0.0 minimum |

Note : Si vous avez des projets qui dépendent de différentes versions de Node.js, vous pouvez utiliser nvm ou nvm-windows pour installer plusieurs versions côte à côte.

Recommended IDE Setup

All this extensions are registered in extensions.json file so your IDE should ask you to install them.

This project ships ESLint and Stylelint linters.

You must follow pre-configured rules and verify there are no problems before creating a pull request.

You could check with this following command :

npm run lint

And if you want to automatically fix certain problems, you could run

npm run lint:fix

How to install the project

You need to use NodeJS with a minimum version at 20.x.

Then, you juste have to do this following command :

npm install

How to create a component

This library contains code snippets that make it easier to create component and its documentation. In Visual Studio Code, snippets appear in IntelliSense mixed with other suggestions, as well as in a dedicated snippet picker (Insert Snippet in the Command Palette).

Snippets are scoped to file type. You have to create a new file with .vue or md extension and the name of your component, before using the archipelago component snippet.

Be careful ! If your component has custom types, you need to document them in docs/types directory.

How to document a component

Documentation is based on Vitepress.

It uses Markdown format but with some plugins, which are helpful to run Vue code in Markdown files.

To run documentation, you just have to run this following command :

npm run docs:dev

⚠️ You need to build the project before running documentation

npm run build

How to test a component

In this library, we use Cypress.

Cypress is a powerful testing tool and integrates component testing method by default.

It has better ways to do E2E testing than Vitest.

You have two methods to run tests :

1 - This command runs all tests in your console and shows results steps by steps

npm run test:run

2 - This command runs graphical Cypress UI and allows you to debug your tests in local

npm run test:watch

To create a test for you component, you first need to create a file pr-[component].cy.ts in your component folder.

Then, you need to create a mountComponent method to mount your component (you can see examples in other components).

After that, you need to create a first test named should has default props and test your component's default props. (Be careful, don't use await mountComponent because it's depreciated, instead use mountComponent().then())

Finally, test all your interactions with you component. (Be careful, you should not await mountComponent otherwise it mights not work)

How to commit and push

This library is based on Husky Git hooks.

It contains two types of hooks

1 - Pre-commit

Pre-commit hook verify if your commit respects Conventional Commits convention.

If not, your commit will be rejected.

2 - Pre-push

Pre-push hook verify if your branch respects Git flow naming convention.

If not, your push will be rejected