vite-plugin-decap-cms 0.3.1 → 0.5.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/README.md CHANGED
@@ -1,70 +1,70 @@
1
- # vite-plugin-decap-cms
2
-
3
- > A Vite plugin to connect Decap CMS
4
-
5
- ![NPM Version](https://img.shields.io/npm/v/vite-plugin-decap-cms)
6
- ![NPM Downloads](https://img.shields.io/npm/dm/vite-plugin-decap-cms)
7
- ![GitHub Issues or Pull Requests](https://img.shields.io/github/issues/ghostrider-05/vite-plugin-decap-cms)
8
-
9
- > [!WARNING]
10
- > This plugin has not reached a stable version, 1.0.0, and can include breaking changes following the semver specification. This plugin is open for contributions, both for code, suggestions and (missing) documentation.
11
-
12
- ## Install
13
-
14
- ```sh
15
- pnpm add vite-plugin-decap-cms -D
16
- npm install vite-plugin-decap-cms -D
17
- yarn add vite-plugin-decap-cms -D
18
- ```
19
-
20
- ## Usage
21
-
22
- ```ts
23
- // vite.config.ts
24
- import { defineConfig } from 'vite'
25
- import decap, {
26
- createFolderCollection,
27
- createField,
28
- } from 'vite-plugin-decap-cms'
29
-
30
- export default defineConfig({
31
- publicDir: 'public',
32
- plugins: [
33
- decap({
34
- config: {
35
- backend: {
36
- name: 'test-repo',
37
- },
38
- mediaFolder: '/src/public/',
39
- collections: [
40
- createFolderCollection({
41
- name: 'test',
42
- label: 'Test collection',
43
- folder: 'test',
44
- fields: [
45
- createField('markdown', { name: 'body' }),
46
- ],
47
- }),
48
- ]
49
- }
50
- })
51
- ],
52
- })
53
- ```
54
-
55
- For more options and guides, see [the documentation](https://vite-plugin-decap-cms.pages.dev)
56
-
57
- ## Example
58
-
59
- See [the documentation CMS](https://vite-plugin-decap-cms.pages.dev/admin/index.html) for an example
60
-
61
- ## Development
62
-
63
- ```sh
64
- # in /docs/
65
- npm run docs:dev
66
- ```
67
-
68
- ## License
69
-
70
- [MIT](LICENSE)
1
+ # vite-plugin-decap-cms
2
+
3
+ > A Vite plugin to connect Decap CMS
4
+
5
+ ![NPM Version](https://img.shields.io/npm/v/vite-plugin-decap-cms)
6
+ ![NPM Downloads](https://img.shields.io/npm/dm/vite-plugin-decap-cms)
7
+ ![GitHub Issues or Pull Requests](https://img.shields.io/github/issues/ghostrider-05/vite-plugin-decap-cms)
8
+
9
+ > [!WARNING]
10
+ > This plugin has not reached a stable version, 1.0.0, and can include breaking changes following the semver specification. This plugin is open for contributions, both for code, suggestions and (missing) documentation.
11
+
12
+ ## Install
13
+
14
+ ```sh
15
+ pnpm add vite-plugin-decap-cms -D
16
+ npm install vite-plugin-decap-cms -D
17
+ yarn add vite-plugin-decap-cms -D
18
+ ```
19
+
20
+ ## Usage
21
+
22
+ ```ts
23
+ // vite.config.ts
24
+ import { defineConfig } from 'vite'
25
+ import decap, {
26
+ createFolderCollection,
27
+ createField,
28
+ } from 'vite-plugin-decap-cms'
29
+
30
+ export default defineConfig({
31
+ publicDir: 'public',
32
+ plugins: [
33
+ decap({
34
+ config: {
35
+ backend: {
36
+ name: 'test-repo',
37
+ },
38
+ mediaFolder: '/src/public/',
39
+ collections: [
40
+ createFolderCollection({
41
+ name: 'test',
42
+ label: 'Test collection',
43
+ folder: 'test',
44
+ fields: [
45
+ createField('markdown', { name: 'body' }),
46
+ ],
47
+ }),
48
+ ]
49
+ }
50
+ })
51
+ ],
52
+ })
53
+ ```
54
+
55
+ For more options and guides, see [the documentation](https://vite-plugin-decap-cms.pages.dev)
56
+
57
+ ## Example
58
+
59
+ See [the documentation CMS](https://vite-plugin-decap-cms.pages.dev/admin/index.html) for an example
60
+
61
+ ## Development
62
+
63
+ ```sh
64
+ # in /docs/
65
+ npm run docs:dev
66
+ ```
67
+
68
+ ## License
69
+
70
+ [MIT](LICENSE)