@nuxtus/nuxtus 2.1.0 → 2.2.0
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/.github/workflows/release.yml +3 -3
- package/CHANGELOG.md +13 -0
- package/README.md +15 -4
- package/TODO +19 -4
- package/client/interfaces/nuxtus.ts +6085 -0
- package/client/nuxt.config.ts +15 -14
- package/client/package.json +7 -7
- package/package.json +28 -5
- package/server/package.json +1 -1
- package/templates/env-nuxt.liquid +6 -3
|
@@ -11,9 +11,9 @@ jobs:
|
|
|
11
11
|
runs-on: ubuntu-latest
|
|
12
12
|
steps:
|
|
13
13
|
- uses: actions/checkout@main
|
|
14
|
-
- uses: actions/setup-node@
|
|
14
|
+
- uses: actions/setup-node@v4
|
|
15
15
|
with:
|
|
16
|
-
node-version: "
|
|
16
|
+
node-version: "20.x"
|
|
17
17
|
- run: npm ci
|
|
18
18
|
# - run: npm run build --if-present
|
|
19
19
|
# - run: npm test
|
|
@@ -21,4 +21,4 @@ jobs:
|
|
|
21
21
|
env:
|
|
22
22
|
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
|
23
23
|
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
|
|
24
|
-
- run: echo ${{ github.event.release.tag_name }} > .version
|
|
24
|
+
- run: echo ${{ github.event.release.tag_name }} > .version
|
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,18 @@
|
|
|
1
1
|
Changelog
|
|
2
2
|
|
|
3
|
+
# [2.2.0](https://github.com/nuxtus/nuxtus/compare/v2.1.0...v2.2.0) (2024-02-21)
|
|
4
|
+
|
|
5
|
+
|
|
6
|
+
### Bug Fixes
|
|
7
|
+
|
|
8
|
+
* **deps:** update dependency directus to v10 ([c5f56db](https://github.com/nuxtus/nuxtus/commit/c5f56db520b6b89b2ab3dce73018f867736b83c4))
|
|
9
|
+
* **deps:** update dependency nuxt-directus to v5 ([a377f27](https://github.com/nuxtus/nuxtus/commit/a377f27853b0c9c660712c0af1cc7eedd8fe7065))
|
|
10
|
+
|
|
11
|
+
|
|
12
|
+
### Features
|
|
13
|
+
|
|
14
|
+
* :sparkles: authenticate via token or use public role ([69e1ee4](https://github.com/nuxtus/nuxtus/commit/69e1ee44bb48581bdaf404a6a4ad8233e4b79008))
|
|
15
|
+
|
|
3
16
|
# [2.1.0](https://github.com/nuxtus/nuxtus/compare/v2.0.1...v2.1.0) (2022-11-18)
|
|
4
17
|
|
|
5
18
|
|
package/README.md
CHANGED
|
@@ -1,8 +1,7 @@
|
|
|
1
1
|
# Nuxtus
|
|
2
|
+
<img src="https://www.nuxtus.com/imgs/logo.svg" alt="Nuxtus Logo" width="300px"/>
|
|
2
3
|
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
A website w/ CMS boilerplate and set of utilities for using [Directus](https://directus.io) for backend CMS and [Nuxt](https://nuxtjs.org) (w/ Tailwind CSS) for frontend. Can also **automagically** create *typed* pages when you create Directus collections.
|
|
4
|
+
A boilerplate and set of utilities for using [Directus](https://directus.io) for backend CMS and [Nuxt](https://nuxtjs.org) (w/ [Tailwind CSS](https://tailwindcss.com)) for frontend. It's core feature is to **automagically** create *typed* pages the instant you create a Directus collection.
|
|
6
5
|
|
|
7
6
|
> Can be used as a boilerplate or individually as a suite of utilities.
|
|
8
7
|
|
|
@@ -12,10 +11,22 @@ A website w/ CMS boilerplate and set of utilities for using [Directus](https://d
|
|
|
12
11
|
npx create-nuxtus app-name
|
|
13
12
|
```
|
|
14
13
|
|
|
15
|
-
For more details visit [nuxtus.com](https://nuxtus.com) or [read the documentation](https://docs.nuxtus.com)
|
|
14
|
+
For more details visit [nuxtus.com](https://www.nuxtus.com) or [read the documentation](https://docs.nuxtus.com)
|
|
16
15
|
|
|
17
16
|
https://user-images.githubusercontent.com/324026/175020548-57ee94b3-dee4-4b12-a8c8-6c0f1a94fab4.mov
|
|
18
17
|
|
|
19
18
|
The purpose of this template is to be a quick-start for developing a website with Nuxt.js using Directus as the backend. The end result can be a static website or dynamically pull data from Directus depending on your preference.
|
|
20
19
|
|
|
21
20
|
It also includes [nuxtus/cli]("https://github.com/nuxtus/cli") which provides a command line interface for quickly creating multiple index/detail pages from any Directus collections.
|
|
21
|
+
|
|
22
|
+
### Dependency graph
|
|
23
|
+
|
|
24
|
+
The below shows the Nuxtus projects in order based on packages that depend on each other with generator having no Nuxtus dependencies and create-nuxtus requiring all packages. This assists in development and deployment of new versions.
|
|
25
|
+
|
|
26
|
+
generator :: creates nuxt pages from Directus collections
|
|
27
|
+
nuxt-module :: a Nuxt module that includes generator for creating nuxt pages in a nuxt project during development
|
|
28
|
+
nuxt-cli :: a CLI tool to manually generate Nuxt pages rather than using autogeneration, used within a Nuxt project
|
|
29
|
+
localtunnel :: a Nuxt module that allows external access to a local Nuxt development project using Local Tunnel
|
|
30
|
+
hook :: a Directus webhook extension that handles the automatic creation of Nuxt pages and types when a new collection is created in Directus
|
|
31
|
+
nuxtus :: the boilerplate project used by create-nuxtus to generate the Directus server and Nuxtus client
|
|
32
|
+
create-nuxtus :: npx package to quickly and easily create a new Nuxtus project
|
package/TODO
CHANGED
|
@@ -1,13 +1,28 @@
|
|
|
1
1
|
|
|
2
2
|
Todo:
|
|
3
|
+
✔ URGENT: SHOULD MOVE DIRECTUS CREDENTIALS OUT OF PUBLIC runtime config! Should be private or recommend using a user with only read permissions! @done(24-02-18 21:35)
|
|
4
|
+
✔ Move the Directus email/password and token to private server variables and use a server middleware (https://nuxt.com/docs/guide/directory-structure/server#server-middleware) to login and provide AUTH_TOKEN back to client. This workflow only needed if not rendering a static site. @done(24-02-19 16:49)
|
|
5
|
+
✔ Make nuxtus/nuxtus readme more of a landing page for the entire nuxt project @done(22-11-19 15:20)
|
|
6
|
+
✔ Move @nuxtus/generator to Rollup v3 @done(24-02-14 19:48)
|
|
7
|
+
✔ Had an issue when a Directus collection name had a space in it (eg. "Builder Pages") in generator @done(24-02-19 21:03)
|
|
8
|
+
☐ Set up automatic renovate for packages with tests
|
|
9
|
+
✔ Update nuxt and change to ^3 in nuxtus/client @done(24-02-19 16:51)
|
|
10
|
+
✔ Automatically add directus credentials to /client/nuxt.config.ts (They are not inside runtime -> public and are expected there at the moment. Shouldn't be using admin creds there!!!!) @done(24-02-18 21:34)
|
|
11
|
+
✔ Node needs to be 20 everywhere now! (Otherwise Directus won't start) @done(24-02-19 15:14)
|
|
12
|
+
✔ Write some docs on "permissions" - options being a publicly accessible read of collections OR a token. Put this in a quickstart and in more detail @done(24-02-19 08:12)
|
|
13
|
+
✔ Fix breaking tests @done(24-02-20 21:08)
|
|
14
|
+
|
|
15
|
+
Future features:
|
|
16
|
+
☐ Add a nuxtus.config.json file that allows include/exclude of collections to create, perhaps also if they are components or pages?
|
|
3
17
|
☐ GraphQL?
|
|
4
18
|
☐ Websockets (https://github.com/br41nslug/directus-websocket-subscribe)
|
|
5
19
|
☐ Nuxtus website should actually pull data from Directus!
|
|
6
20
|
☐ Detect when Directus is not running and show error message
|
|
7
|
-
☐
|
|
8
|
-
☐
|
|
9
|
-
☐
|
|
10
|
-
☐
|
|
21
|
+
☐ If Collections are hidden, don't create Nuxtus pages?
|
|
22
|
+
☐ Remove google fonts as a dependency?
|
|
23
|
+
☐ Move generator from rollup to vite
|
|
24
|
+
☐ Automatically request all fields of a collection in the query
|
|
25
|
+
☐ Use nuxt.config in generator login.ts instead of env?
|
|
11
26
|
|
|
12
27
|
Archive:
|
|
13
28
|
✔ Make opening browser window on start optional using npm run start (not possible) @done(22-09-14 16:44) @project(Todo)
|