main-repo
v1.0.1
Published
Basic template for a monorepo
Downloads
4
Readme
@nevel-group/nuxt-am-common-library
@nevel-group/nuxt-am-common-library
is a nuxt3 layer for nuxt applications, providing useful utilities for
authentication, socket, play games and other functionalities. This README will guide you through the steps to set up and
use this library in your project.
Prerequisites
Ensure you have the necessary tools installed:
- Node.js
- pnpm or yarn
Installation
Step 1: Create .npmrc
file
Create a .npmrc
file in the root directory of your project and add the following line of code:
@nevel-group:registry=https://npm.pkg.github.com
//npm.pkg.github.com/:_authToken=${GITHUB_TOKEN}
Step 2: Install the Library
Before installing the library, you need to set the GITHUB_TOKEN
environment variable. You can do this by running the
following command in your terminal:
export GITHUB_TOKEN=${YOUR_GITHUB_TOKEN}
yarn add @nevel-group/nuxt-am-common-library
You can use either pnpm or yarn to install.
Step 2: Add the library to nuxt3 layer
You can extend a layer by adding the extends property to the nuxt.config.ts file.
export default defineNuxtConfig({
extends: [
'@nevel-group/nuxt-am-common-library', // Extend
]
})