Skip to content

Commit

Permalink
Simpler <NakedImage /> component
Browse files Browse the repository at this point in the history
  • Loading branch information
stefanoverna committed Apr 2, 2024
1 parent 0c9b259 commit 5b555e9
Show file tree
Hide file tree
Showing 73 changed files with 1,891 additions and 3,559 deletions.
2 changes: 1 addition & 1 deletion .nvmrc
Original file line number Diff line number Diff line change
@@ -1 +1 @@
v20.5.0
v20
31 changes: 16 additions & 15 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -18,9 +18,12 @@ A set of components and utilities to work faster with [DatoCMS](https://www.dato

## Table of Contents

- [Features](#features)
- [Installation](#installation)
- [Development](#development)
- [vue-datocms](#vue-datocms)
- [Table of Contents](#table-of-contents)
- [Features](#features)
- [Installation](#installation)
- [Development](#development)
- [What is DatoCMS?](#what-is-datocms)

## Features

Expand Down Expand Up @@ -49,26 +52,24 @@ Helpers:
npm install vue
# Then install vue-datocms
npm install vue-datocms
```
## Development
This repository contains a number of examples. You can use them to locally test your changes to the package:
# Demos
- [Vue 3 + TypeScript + Vite](examples/vite-typescript-vue3/) ([running demo](https://vue-datocms-vite-typescript-vue3-example.vercel.app/))
- [Query subscription](examples/query-subscription/) ([running demo](https://vue-datocms-query-subscription-example.vercel.app/))
- [Site search](examples/site-search/) ([running demo](https://vue-datocms-site-search-example.vercel.app/))
For fully working examples take a look at our [examples directory](https://github.com/datocms/vue-datocms/tree/master/examples).
To use them, follow this recipe starting from the vue-datocms folder:
Live demo: [https://vue-datocms-example.netlify.com/](https://vue-datocms-example.netlify.com/)
```
## Development

This repository contains a number of demos/examples. You can use them to locally test your changes.

```bash
npm install
cd examples/vite-typescript-vue3
npm run setup
cd examples
npm setup
npm run dev
```

It's not recommended to leverage `npm link` to use the working copy from the examples: that would complicate the structure of each example and it would not replicate a real-world installation. Therefore the `npm run setup` available in each example packs and installs the local copy of `vue-datocms` via a `.tgz` compressed tarball.

<!--datocms-autoinclude-footer start-->
-----------------
# What is DatoCMS?
Expand Down
21 changes: 21 additions & 0 deletions biome.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
{
"$schema": "https://biomejs.dev/schemas/1.2.2/schema.json",
"organizeImports": {
"enabled": true
},
"linter": {
"enabled": true,
"rules": {
"recommended": true
}
},
"formatter": {
"enabled": true,
"indentStyle": "space"
},
"javascript": {
"formatter": {
"quoteStyle": "single"
}
}
}
File renamed without changes.
File renamed without changes.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Original file line number Diff line number Diff line change
Expand Up @@ -4,14 +4,15 @@
"private": true,
"type": "module",
"scripts": {
"setup": "cd ../../; npm ci; npm run build; rm -f vue-datocms.tgz; mv -f $(npm pack 2>&1 | tail -1) vue-datocms.tgz; cd -; rm -rf node_modules/vue-datocms; npm install ../../vue-datocms.tgz; npm install",
"setup": "npm uninstall react-datocms && rm -rf ./node_modules/.cache && cd .. && rm -f react-datocms.tgz && npm ci && npm run build && mv -f $(npm pack 2>&1 | tail -1) react-datocms.tgz && cd examples && npm install --save ../react-datocms.tgz && npm install;",
"dev": "vite",
"build": "vue-tsc --noEmit && vite build",
"preview": "vite preview"
},
"dependencies": {
"@datocms/cma-client-browser": "*",
"vue": "^3.2.37",
"vue-datocms": "file:../../vue-datocms.tgz"
"vue-datocms": "file:../react-datocms.tgz"
},
"devDependencies": {
"@vitejs/plugin-vue": "^3.2.0",
Expand Down
21 changes: 0 additions & 21 deletions examples/query-subscription/.gitignore

This file was deleted.

23 changes: 0 additions & 23 deletions examples/query-subscription/README.md

This file was deleted.

13 changes: 0 additions & 13 deletions examples/query-subscription/index.html

This file was deleted.

8 changes: 0 additions & 8 deletions examples/query-subscription/jsconfig.json

This file was deleted.

0 comments on commit 5b555e9

Please sign in to comment.