@nuxtus/nuxtus 2.0.0 → 2.1.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/CHANGELOG.md CHANGED
@@ -1,5 +1,19 @@
1
1
  Changelog
2
2
 
3
+ # [2.1.0](https://github.com/nuxtus/nuxtus/compare/v2.0.1...v2.1.0) (2022-11-18)
4
+
5
+
6
+ ### Features
7
+
8
+ * :sparkles: Update @nuxtus/nuxt-module and @nuxtus/cli ([3894e84](https://github.com/nuxtus/nuxtus/commit/3894e8445053b3a9d4c333cb003c6dad2f527aac))
9
+
10
+ ## [2.0.1](https://github.com/nuxtus/nuxtus/compare/v2.0.0...v2.0.1) (2022-11-18)
11
+
12
+
13
+ ### Bug Fixes
14
+
15
+ * :bug: Move Directus credentials to public configuration variables ([fb85d82](https://github.com/nuxtus/nuxtus/commit/fb85d8216c9d2949e927606e6bdf3fbb5e2b14d2))
16
+
3
17
  # [2.0.0](https://github.com/nuxtus/nuxtus/compare/v1.9.1...v2.0.0) (2022-11-18)
4
18
 
5
19
 
package/README.md CHANGED
@@ -1,9 +1,17 @@
1
1
  # Nuxtus
2
2
 
3
+ ![Nuxtus Logo](https://www.nuxtus.com/imgs/logo.svg)
4
+
3
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
6
 
5
7
  > Can be used as a boilerplate or individually as a suite of utilities.
6
8
 
9
+ ## Quick start
10
+
11
+ ```bash
12
+ npx create-nuxtus app-name
13
+ ```
14
+
7
15
  For more details visit [nuxtus.com](https://nuxtus.com) or [read the documentation](https://docs.nuxtus.com)
8
16
 
9
17
  https://user-images.githubusercontent.com/324026/175020548-57ee94b3-dee4-4b12-a8c8-6c0f1a94fab4.mov
package/TODO CHANGED
@@ -4,6 +4,10 @@ Todo:
4
4
  ☐ Websockets (https://github.com/br41nslug/directus-websocket-subscribe)
5
5
  ☐ Nuxtus website should actually pull data from Directus!
6
6
  ☐ 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
7
11
 
8
12
  Archive:
9
13
  ✔ Make opening browser window on start optional using npm run start (not possible) @done(22-09-14 16:44) @project(Todo)
@@ -1,9 +1,9 @@
1
1
  // https://v3.nuxtjs.org/api/configuration/nuxt.config
2
2
  export default {
3
3
  buildModules: [
4
- "@nuxtjs/tailwindcss",
4
+ '@nuxtjs/google-fonts'
5
5
  ],
6
- modules: ["nuxt-directus", "@nuxtus/nuxt-module"],
6
+ modules: ["@nuxtjs/tailwindcss", "nuxt-directus", "@nuxtus/nuxt-module"],
7
7
  googleFonts: {
8
8
  families: {
9
9
  Inter: true,
@@ -18,10 +18,12 @@ export default {
18
18
  authDirectus: true,
19
19
  },
20
20
  runtimeConfig: {
21
- nuxtus: {
22
- directus: {
23
- email: '',
24
- password: ''
21
+ public: {
22
+ nuxtus: {
23
+ directus: {
24
+ email: '',
25
+ password: ''
26
+ }
25
27
  }
26
28
  }
27
29
  }
@@ -9,8 +9,8 @@
9
9
  "devDependencies": {
10
10
  "@nuxtjs/google-fonts": "2.0.0",
11
11
  "@nuxtjs/tailwindcss": "6.1.3",
12
- "@nuxtus/cli": "1.5.0",
13
- "@nuxtus/nuxt-module": "2.0.0",
12
+ "@nuxtus/cli": "2.0.0",
13
+ "@nuxtus/nuxt-module": "2.2.0",
14
14
  "nuxt": "3.0.0"
15
15
  },
16
16
  "dependencies": {
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@nuxtus/nuxtus",
3
3
  "description": "Directus/Nuxt boilerplate with Tailwind CSS.",
4
- "version": "2.0.0",
4
+ "version": "2.1.0",
5
5
  "repository": {
6
6
  "type": "git",
7
7
  "url": "git+https://github.com/nuxtus/nuxtus.git"
@@ -1,5 +1,5 @@
1
1
  # nuxt-directus required values
2
2
  DIRECTUS_URL="{{ directus_url }}"
3
3
  # Nuxtus values
4
- NUXT_NUXTUS_DIRECTUS_EMAIL="{{ email }}"
5
- NUXT_NUXTUS_DIRECTUS_PASSWORD="{{ password }}"
4
+ NUXT_PUBLIC_NUXTUS_DIRECTUS_EMAIL="{{ email }}"
5
+ NUXT_PUBLIC_NUXTUS_DIRECTUS_PASSWORD="{{ password }}"