@nuxtus/nuxtus 2.1.0 → 2.2.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.
@@ -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@v3
14
+ - uses: actions/setup-node@v4
15
15
  with:
16
- node-version: "16.x"
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,25 @@
1
1
  Changelog
2
2
 
3
+ ## [2.2.1](https://github.com/nuxtus/nuxtus/compare/v2.2.0...v2.2.1) (2024-02-22)
4
+
5
+
6
+ ### Bug Fixes
7
+
8
+ * :bug: env variables were not correctly imported ([fff3c78](https://github.com/nuxtus/nuxtus/commit/fff3c78981f2c634d6a6ac6fa787195cb8aef271))
9
+
10
+ # [2.2.0](https://github.com/nuxtus/nuxtus/compare/v2.1.0...v2.2.0) (2024-02-21)
11
+
12
+
13
+ ### Bug Fixes
14
+
15
+ * **deps:** update dependency directus to v10 ([c5f56db](https://github.com/nuxtus/nuxtus/commit/c5f56db520b6b89b2ab3dce73018f867736b83c4))
16
+ * **deps:** update dependency nuxt-directus to v5 ([a377f27](https://github.com/nuxtus/nuxtus/commit/a377f27853b0c9c660712c0af1cc7eedd8fe7065))
17
+
18
+
19
+ ### Features
20
+
21
+ * :sparkles: authenticate via token or use public role ([69e1ee4](https://github.com/nuxtus/nuxtus/commit/69e1ee44bb48581bdaf404a6a4ad8233e4b79008))
22
+
3
23
  # [2.1.0](https://github.com/nuxtus/nuxtus/compare/v2.0.1...v2.1.0) (2022-11-18)
4
24
 
5
25
 
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
- ![Nuxtus Logo](https://www.nuxtus.com/imgs/logo.svg)
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,30 @@
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
+ ☐ Update all readme's to give more detail on Nuxtus overall.
15
+ ☐ Create or find an extension for Directus that can auto assign read to public user
16
+
17
+ Future features:
18
+ ☐ Add a nuxtus.config.json file that allows include/exclude of collections to create, perhaps also if they are components or pages?
3
19
  ☐ GraphQL?
4
20
  ☐ Websockets (https://github.com/br41nslug/directus-websocket-subscribe)
5
21
  ☐ Nuxtus website should actually pull data from Directus!
6
22
  ☐ Detect when Directus is not running and show error message
7
- Use nuxt.config in generator login.ts instead of env
8
- 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.
9
- Make nuxtus/nuxtus readme more of a landing page for the entire nuxt project
10
- Move @nuxtus/generator to Rollup v3
23
+ If Collections are hidden, don't create Nuxtus pages?
24
+ Remove google fonts as a dependency?
25
+ Move generator from rollup to vite
26
+ Automatically request all fields of a collection in the query
27
+ ☐ Use nuxt.config in generator login.ts instead of env?
11
28
 
12
29
  Archive:
13
30
  ✔ Make opening browser window on start optional using npm run start (not possible) @done(22-09-14 16:44) @project(Todo)