Compare commits
3 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
2c4fe3f353 | ||
|
|
08beeb66a5 | ||
|
|
b944c8e654 |
11
CHANGELOG.md
11
CHANGELOG.md
@@ -5,6 +5,14 @@ All notable changes to this project will be documented in this file.
|
|||||||
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.1.0/),
|
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.1.0/),
|
||||||
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
|
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
|
||||||
|
|
||||||
|
## [1.0.1] - 2025-11-14
|
||||||
|
### Changed
|
||||||
|
- Publish as the scoped package `@eduvia-app/nuxt-can` and document the scoped install steps.
|
||||||
|
- Fill out package metadata (author, repository, keywords, peer dependency) for npm.
|
||||||
|
|
||||||
|
### Docs
|
||||||
|
- Update README badges/links to the scoped npm package and explain why `v-can` helps existing codebases.
|
||||||
|
|
||||||
## [1.0.0] - 2025-11-14
|
## [1.0.0] - 2025-11-14
|
||||||
### Added
|
### Added
|
||||||
- Compile-time transformer that rewrites `v-can` / `v-cannot` into optimized `v-if` guards.
|
- Compile-time transformer that rewrites `v-can` / `v-cannot` into optimized `v-if` guards.
|
||||||
@@ -18,4 +26,5 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
|
|||||||
- English README describing usage, playground, and contribution guide.
|
- English README describing usage, playground, and contribution guide.
|
||||||
- Roadmap and release prep guidance.
|
- Roadmap and release prep guidance.
|
||||||
|
|
||||||
[1.0.0]: https://github.com/your-org/nuxt-can/releases/tag/v1.0.0
|
[1.0.1]: https://github.com/eduvia-app/nuxt-can/releases/tag/v1.0.1
|
||||||
|
[1.0.0]: https://github.com/eduvia-app/nuxt-can/releases/tag/v1.0.0
|
||||||
|
|||||||
18
README.md
18
README.md
@@ -23,16 +23,16 @@
|
|||||||
Install the module in your Nuxt app:
|
Install the module in your Nuxt app:
|
||||||
|
|
||||||
```bash
|
```bash
|
||||||
npm install nuxt-can
|
npm install @eduvia-app/nuxt-can
|
||||||
# or
|
# or
|
||||||
npx nuxi module add nuxt-can
|
npx nuxi module add @eduvia-app/nuxt-can
|
||||||
```
|
```
|
||||||
|
|
||||||
Enable it inside `nuxt.config.ts` and describe the permissions tree:
|
Enable it inside `nuxt.config.ts` and describe the permissions tree:
|
||||||
|
|
||||||
```ts
|
```ts
|
||||||
// nuxt.config.ts
|
// nuxt.config.ts
|
||||||
import NuxtCan from 'nuxt-can'
|
import NuxtCan from '@eduvia-app/nuxt-can'
|
||||||
|
|
||||||
export default defineNuxtConfig({
|
export default defineNuxtConfig({
|
||||||
modules: [NuxtCan],
|
modules: [NuxtCan],
|
||||||
@@ -150,14 +150,14 @@ npm run release
|
|||||||
---
|
---
|
||||||
|
|
||||||
<!-- Badges -->
|
<!-- Badges -->
|
||||||
[npm-version-src]: https://img.shields.io/npm/v/nuxt-can/latest.svg?style=flat&colorA=020420&colorB=00DC82
|
[npm-version-src]: https://img.shields.io/npm/v/%40eduvia-app%2Fnuxt-can/latest.svg?style=flat&colorA=020420&colorB=00DC82
|
||||||
[npm-version-href]: https://npmjs.com/package/nuxt-can
|
[npm-version-href]: https://npmjs.com/package/@eduvia-app/nuxt-can
|
||||||
|
|
||||||
[npm-downloads-src]: https://img.shields.io/npm/dm/nuxt-can.svg?style=flat&colorA=020420&colorB=00DC82
|
[npm-downloads-src]: https://img.shields.io/npm/dm/%40eduvia-app%2Fnuxt-can.svg?style=flat&colorA=020420&colorB=00DC82
|
||||||
[npm-downloads-href]: https://npm.chart.dev/nuxt-can
|
[npm-downloads-href]: https://npm.chart.dev/@eduvia-app/nuxt-can
|
||||||
|
|
||||||
[license-src]: https://img.shields.io/npm/l/nuxt-can.svg?style=flat&colorA=020420&colorB=00DC82
|
[license-src]: https://img.shields.io/npm/l/%40eduvia-app%2Fnuxt-can.svg?style=flat&colorA=020420&colorB=00DC82
|
||||||
[license-href]: https://npmjs.com/package/nuxt-can
|
[license-href]: https://npmjs.com/package/@eduvia-app/nuxt-can
|
||||||
|
|
||||||
[nuxt-src]: https://img.shields.io/badge/Nuxt-020420?logo=nuxt.js
|
[nuxt-src]: https://img.shields.io/badge/Nuxt-020420?logo=nuxt.js
|
||||||
[nuxt-href]: https://nuxt.com
|
[nuxt-href]: https://nuxt.com
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
{
|
{
|
||||||
"name": "@eduvia-app/nuxt-can",
|
"name": "@eduvia-app/nuxt-can",
|
||||||
"version": "1.0.0",
|
"version": "1.0.1",
|
||||||
"description": "Nuxt directives (`v-can`, `v-cannot`) to layer permissions without touching business v-ifs.",
|
"description": "Nuxt directives (`v-can`, `v-cannot`) to layer permissions without touching business v-ifs.",
|
||||||
"author": "Eduvia <engineering@eduvia.app>",
|
"author": "Eduvia <engineering@eduvia.app>",
|
||||||
"homepage": "https://github.com/eduvia-app/nuxt-can#readme",
|
"homepage": "https://github.com/eduvia-app/nuxt-can#readme",
|
||||||
|
|||||||
Reference in New Issue
Block a user