Thank you for considering contributing to this package. Please take a moment to review Storyblok's general contributing guidelines if it's your first time to find info on submitting PR or issues.
Find useful these guidelines and set of recommendations to help improving this library.
This package relies on pnpm workspaces to manage dependencies. For instructions on how to install pnpm, please visit pnpm.io.
pnpm installpnpm buildWe strongly recommend using the playgrounds within the package to develop and manually test the package.
Make sure the playground project has the root project as a dependency using workspace:^ in the package.json:
{
"dependencies": {
"@storyblok/vue": "workspace:^"
}
}Use the Google Chrome developer tools to debug the package from the playground project by resolving the package from the local file system in your vite.config.ts file. Example:
import { defineConfig } from 'vite';
export default defineConfig({
resolve: {
alias: {
'@storyblok/vue': resolve(__dirname, '../src/index.ts'),
},
},
});Depending on the package, you might have a combination of unit tests, integration tests, and/or end-to-end tests. Make sure to check scripts in package.json and run the right command, like:
pnpm test