@batijs/features 0.0.622 → 0.0.624

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/dist/index.js CHANGED
@@ -12,13 +12,13 @@ let categoriesGroups = /* @__PURE__ */ function(categoriesGroups) {
12
12
  const categories = [
13
13
  {
14
14
  label: "Frontend Framework",
15
- group: categoriesGroups.Frontend,
15
+ group: "Frontend",
16
16
  description: `Flexible, robust, community-driven, and fast Vite-based frontend framework.`,
17
17
  required: true
18
18
  },
19
19
  {
20
20
  label: "UI Framework",
21
- group: categoriesGroups.Frontend,
21
+ group: "Frontend",
22
22
  description: `It’s recommended to choose a frontend lib to kickstart a new Vike project,
23
23
  as they each come with a wide range of integrations. You can at any time eject and take control over integration code
24
24
  so that it doesn’t get in your way.`,
@@ -26,64 +26,64 @@ so that it doesn’t get in your way.`,
26
26
  },
27
27
  {
28
28
  label: "CSS",
29
- group: categoriesGroups.Frontend,
29
+ group: "Frontend",
30
30
  description: `These CSS libraries are deeply integrated with UI frameworks.
31
31
  They showcase their respective recommended usage and how they integrate with Vite and Vike.`
32
32
  },
33
33
  {
34
34
  label: "UI Component Libraries",
35
- group: categoriesGroups.Frontend,
35
+ group: "Frontend",
36
36
  description: `These UI Component Libraries are deeply integrated with UI frameworks.
37
37
  They showcase their respective recommended usage and how they integrate with Vite and Vike.`
38
38
  },
39
39
  {
40
40
  label: "Auth",
41
- group: categoriesGroups.Data,
41
+ group: "Data",
42
42
  description: `Ready to use self-hosted or cloud-based Auth solutions.
43
43
  Requires to also select a Server of your choosing.`
44
44
  },
45
45
  {
46
46
  label: "Data fetching",
47
- group: categoriesGroups.Data,
47
+ group: "Data",
48
48
  description: `Data fetching libraries to help you interact with your backend.
49
49
  Selecting one of those usually requires you to also choose a Server.`
50
50
  },
51
51
  {
52
52
  label: "Server",
53
- group: categoriesGroups.Data,
53
+ group: "Data",
54
54
  description: `Mostly required by other integrations such as Auth or RPC,
55
55
  it's recommended to only install a Server if you really need to, as Vike doesn't require one to operate.`
56
56
  },
57
57
  {
58
58
  label: "Database",
59
- group: categoriesGroups.Data,
59
+ group: "Data",
60
60
  description: `Helping you get started with a database solution.`
61
61
  },
62
62
  {
63
63
  label: "Hosting",
64
- group: categoriesGroups.Deployment,
64
+ group: "Deployment",
65
65
  description: `Quickly host your Vike project with a Serverless or VPS (coming soon) solution.`
66
66
  },
67
67
  {
68
68
  label: "Linter",
69
69
  multiple: true,
70
- group: categoriesGroups.Utilities,
70
+ group: "Utilities",
71
71
  description: `Well known linting and formatting tools, pre-configured to match their recommended usage,
72
72
  tailored for Vike.`
73
73
  },
74
74
  {
75
75
  label: "Analytics",
76
- group: categoriesGroups.Utilities,
76
+ group: "Utilities",
77
77
  description: `Keep track of your website traffic with these ready-to-get-started Analytics solutions.`
78
78
  },
79
79
  {
80
80
  label: "Error tracking",
81
- group: categoriesGroups.Utilities,
81
+ group: "Utilities",
82
82
  description: `Coming soon: Error Tracking solution for frontend and backend`
83
83
  },
84
84
  {
85
85
  label: "Tooling",
86
- group: categoriesGroups.Utilities,
86
+ group: "Utilities",
87
87
  description: `Additional tooling to improve your developer experience.`
88
88
  }
89
89
  ];
package/dist/rules.js CHANGED
@@ -45,41 +45,41 @@ function prepare(fts) {
45
45
  //#endregion
46
46
  //#region src/rules/rules.ts
47
47
  var rules_default = [
48
- requires(RulesMessage.ERROR_AUTH_R_SERVER, "Auth", ["Server"]),
49
- requires(RulesMessage.ERROR_COMPILED_R_REACT, "compiled-css", ["react"]),
50
- requires(RulesMessage.ERROR_DRIZZLE_R_SERVER, "drizzle", ["Server"]),
51
- requires(RulesMessage.ERROR_KYSELY_R_SERVER, "kysely", ["Server"]),
52
- requires(RulesMessage.ERROR_DATA_R_SERVER, "Data fetching", ["Server"]),
53
- filter(RulesMessage.ERROR_CLOUDFLARE_R_COMPAT_SERVER, (fts) => {
48
+ requires(0, "Auth", ["Server"]),
49
+ requires(1, "compiled-css", ["react"]),
50
+ requires(2, "drizzle", ["Server"]),
51
+ requires(3, "kysely", ["Server"]),
52
+ requires(4, "Data fetching", ["Server"]),
53
+ filter(5, (fts) => {
54
54
  if (fts.has("cloudflare")) {
55
55
  if (fts.has("hono") || fts.has("h3")) return false;
56
56
  return fts.has("Server");
57
57
  }
58
58
  return false;
59
59
  }),
60
- filter(RulesMessage.ERROR_AWS_R_COMPAT_SERVER, (fts) => {
60
+ filter(6, (fts) => {
61
61
  if (fts.has("aws")) {
62
62
  if (fts.has("hono")) return false;
63
63
  return true;
64
64
  }
65
65
  return false;
66
66
  }),
67
- filter(RulesMessage.ERROR_MANTINE_R_REACT, (fts) => {
67
+ filter(7, (fts) => {
68
68
  if (fts.has("mantine")) return fts.has("vue") || fts.has("solid");
69
69
  return false;
70
70
  }),
71
- filter(RulesMessage.ERROR_SHADCN_R_REACT, (fts) => {
71
+ filter(8, (fts) => {
72
72
  if (fts.has("shadcn-ui")) return fts.has("vue") || fts.has("solid");
73
73
  return false;
74
74
  }),
75
- filter(RulesMessage.WARN_SHADCN_R_TAILWINDCSS, (fts) => {
75
+ filter(9, (fts) => {
76
76
  if (fts.has("shadcn-ui")) return fts.has("daisyui") || fts.has("compiled-css");
77
77
  return false;
78
78
  }),
79
- filter(RulesMessage.INFO_STACKBLITZ_COMPAT, (fts) => {
79
+ filter(10, (fts) => {
80
80
  return fts.has("drizzle") || fts.has("sqlite") || fts.has("kysely") || fts.has("cloudflare");
81
81
  }),
82
- filter(RulesMessage.ERROR_STORYBOOK_R_UI_FRAMEWORK, (fts) => {
82
+ filter(11, (fts) => {
83
83
  if (fts.has("storybook")) return !fts.has("react") && !fts.has("vue") && !fts.has("solid");
84
84
  return false;
85
85
  })
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@batijs/features",
3
- "version": "0.0.622",
3
+ "version": "0.0.624",
4
4
  "description": "",
5
5
  "type": "module",
6
6
  "keywords": [],
@@ -9,8 +9,8 @@
9
9
  "license": "MIT",
10
10
  "devDependencies": {
11
11
  "@types/node": "^20.19.37",
12
- "tsdown": "^0.21.7",
13
- "vitest": "^4.1.4"
12
+ "tsdown": "^0.21.10",
13
+ "vitest": "^4.1.5"
14
14
  },
15
15
  "main": "./dist/index.js",
16
16
  "module": "./dist/index.js",