@batijs/cli 0.0.131 → 0.0.133

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.
@@ -0,0 +1,76 @@
1
+ var __create = Object.create;
2
+ var __defProp = Object.defineProperty;
3
+ var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
4
+ var __getOwnPropNames = Object.getOwnPropertyNames;
5
+ var __getProtoOf = Object.getPrototypeOf;
6
+ var __hasOwnProp = Object.prototype.hasOwnProperty;
7
+ var __commonJS = (cb, mod) => function __require() {
8
+ return mod || (0, cb[__getOwnPropNames(cb)[0]])((mod = { exports: {} }).exports, mod), mod.exports;
9
+ };
10
+ var __copyProps = (to, from, except, desc) => {
11
+ if (from && typeof from === "object" || typeof from === "function") {
12
+ for (let key of __getOwnPropNames(from))
13
+ if (!__hasOwnProp.call(to, key) && key !== except)
14
+ __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
15
+ }
16
+ return to;
17
+ };
18
+ var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(
19
+ // If the importer is in node compatibility mode or this is not an ESM
20
+ // file that has been converted to a CommonJS file using a Babel-
21
+ // compatible transform (i.e. "__esModule" has not been set), then set
22
+ // "default" to the CommonJS "module.exports" for node compatibility.
23
+ isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: true }) : target,
24
+ mod
25
+ ));
26
+
27
+ // package.json
28
+ var require_package = __commonJS({
29
+ "package.json"(exports, module) {
30
+ module.exports = {
31
+ name: "@batijs/compiled",
32
+ private: true,
33
+ version: "0.0.1",
34
+ description: "",
35
+ type: "module",
36
+ scripts: {
37
+ "check-types": "tsc --noEmit",
38
+ build: "bati-compile-boilerplate"
39
+ },
40
+ keywords: [],
41
+ author: "",
42
+ license: "MIT",
43
+ devDependencies: {
44
+ "@batijs/compile": "workspace:*",
45
+ "@types/node": "^18.19.3",
46
+ vite: "^5.0.10",
47
+ "vite-plugin-compiled-react": "^1.0.8"
48
+ },
49
+ dependencies: {
50
+ "@batijs/core": "workspace:*",
51
+ "@compiled/react": "^0.16.8"
52
+ },
53
+ files: [
54
+ "dist/"
55
+ ],
56
+ bati: {
57
+ if: {
58
+ flag: "compiled-css"
59
+ }
60
+ }
61
+ };
62
+ }
63
+ });
64
+
65
+ // files/$package.json.ts
66
+ import { addDependency, loadAsJson } from "@batijs/core";
67
+ async function getPackageJson(props) {
68
+ const packageJson = await loadAsJson(props);
69
+ return addDependency(packageJson, await Promise.resolve().then(() => __toESM(require_package(), 1)), {
70
+ devDependencies: ["vite-plugin-compiled-react"],
71
+ dependencies: ["@compiled/react"]
72
+ });
73
+ }
74
+ export {
75
+ getPackageJson as default
76
+ };
@@ -0,0 +1,14 @@
1
+ // files/$vite.config.ts.ts
2
+ import { addVitePlugin, loadAsMagicast } from "@batijs/core";
3
+ async function getViteConfig(props) {
4
+ const mod = await loadAsMagicast(props);
5
+ addVitePlugin(mod, {
6
+ from: "vite-plugin-compiled-react",
7
+ constructor: "compiled",
8
+ imported: "compiled"
9
+ });
10
+ return mod.generate().code;
11
+ }
12
+ export {
13
+ getViteConfig as default
14
+ };
@@ -43,7 +43,7 @@ var require_package = __commonJS({
43
43
  devDependencies: {
44
44
  "@batijs/compile": "workspace:*",
45
45
  "@edgedb/generate": "^0.4.1",
46
- "@prisma/client": "^5.7.0",
46
+ "@prisma/client": "^5.7.1",
47
47
  "@types/node": "^18.19.3",
48
48
  colorette: "^2.0.20",
49
49
  edgedb: "^1.4.1"
@@ -42,8 +42,8 @@ var require_package = __commonJS({
42
42
  },
43
43
  devDependencies: {
44
44
  "@batijs/compile": "workspace:^",
45
- "@typescript-eslint/eslint-plugin": "^6.14.0",
46
- "@typescript-eslint/parser": "^6.14.0",
45
+ "@typescript-eslint/eslint-plugin": "^6.16.0",
46
+ "@typescript-eslint/parser": "^6.16.0",
47
47
  eslint: "^8.56.0"
48
48
  },
49
49
  dependencies: {
@@ -41,18 +41,18 @@ var require_package = __commonJS({
41
41
  author: "",
42
42
  license: "MIT",
43
43
  devDependencies: {
44
- "@auth/core": "^0.18.6",
44
+ "@auth/core": "^0.19.0",
45
45
  "@batijs/compile": "workspace:*",
46
46
  "@batijs/trpc": "workspace:*",
47
47
  "@hattip/adapter-node": "^0.0.35",
48
- "@trpc/server": "^10.44.1",
48
+ "@trpc/server": "^10.45.0",
49
49
  "@types/express": "^4.17.21",
50
50
  "@types/node": "^18.19.3",
51
51
  express: "^4.18.2",
52
- telefunc: "^0.1.66",
53
- tsx: "^4.6.2",
54
- vike: "^0.4.150",
55
- "vike-authjs": "^0.1.1",
52
+ telefunc: "^0.1.67",
53
+ tsx: "^4.7.0",
54
+ vike: "^0.4.152",
55
+ "vike-authjs": "^0.1.3",
56
56
  vite: "^5.0.10"
57
57
  },
58
58
  dependencies: {
@@ -41,19 +41,19 @@ var require_package = __commonJS({
41
41
  author: "",
42
42
  license: "MIT",
43
43
  devDependencies: {
44
- "@auth/core": "^0.18.6",
44
+ "@auth/core": "^0.19.0",
45
45
  "@batijs/compile": "workspace:*",
46
46
  "@batijs/trpc": "workspace:^",
47
47
  "@hattip/polyfills": "^0.0.35",
48
- "@trpc/server": "^10.44.1",
48
+ "@trpc/server": "^10.45.0",
49
49
  "@types/node": "^18.19.3",
50
50
  "@types/serve-static": "^1.15.5",
51
51
  h3: "^1.9.0",
52
52
  "serve-static": "^1.15.0",
53
- telefunc: "^0.1.66",
54
- tsx: "^4.6.2",
55
- vike: "^0.4.150",
56
- "vike-authjs": "^0.1.1",
53
+ telefunc: "^0.1.67",
54
+ tsx: "^4.7.0",
55
+ vike: "^0.4.152",
56
+ "vike-authjs": "^0.1.3",
57
57
  vite: "^5.0.10"
58
58
  },
59
59
  dependencies: {
@@ -41,19 +41,19 @@ var require_package = __commonJS({
41
41
  author: "",
42
42
  license: "MIT",
43
43
  devDependencies: {
44
- "@auth/core": "^0.18.6",
44
+ "@auth/core": "^0.19.0",
45
45
  "@batijs/compile": "workspace:*",
46
46
  "@batijs/trpc": "workspace:^",
47
47
  "@hattip/adapter-node": "^0.0.35",
48
48
  "@hattip/core": "^0.0.35",
49
49
  "@hattip/router": "^0.0.35",
50
50
  "@hattip/vite": "^0.0.35",
51
- "@trpc/server": "^10.44.1",
51
+ "@trpc/server": "^10.45.0",
52
52
  "@types/node": "^18.19.3",
53
53
  hattip: "^0.0.33",
54
- telefunc: "^0.1.66",
55
- vike: "^0.4.150",
56
- "vike-authjs": "^0.1.1",
54
+ telefunc: "^0.1.67",
55
+ vike: "^0.4.152",
56
+ "vike-authjs": "^0.1.3",
57
57
  vite: "^5.0.10"
58
58
  },
59
59
  dependencies: {
@@ -42,10 +42,10 @@ var require_package = __commonJS({
42
42
  license: "MIT",
43
43
  devDependencies: {
44
44
  "@batijs/compile": "workspace:*",
45
- "@prisma/client": "^5.7.0",
45
+ "@prisma/client": "^5.7.1",
46
46
  "@types/node": "^18.19.3",
47
47
  colorette: "^2.0.20",
48
- prisma: "^5.7.0"
48
+ prisma: "^5.7.1"
49
49
  },
50
50
  dependencies: {
51
51
  "@batijs/core": "workspace:*"
@@ -53,10 +53,10 @@ var require_package = __commonJS({
53
53
  "eslint-config-react-app": "^7.0.1",
54
54
  react: "^18.2.0",
55
55
  "react-dom": "^18.2.0",
56
- tailwindcss: "^3.3.6",
56
+ tailwindcss: "^3.4.0",
57
57
  typescript: "^5.3.3",
58
- vike: "^0.4.150",
59
- "vike-react": "^0.3.7",
58
+ vike: "^0.4.152",
59
+ "vike-react": "^0.3.8",
60
60
  vite: "^5.0.10"
61
61
  },
62
62
  dependencies: {
@@ -1,4 +1,4 @@
1
- // ../../packages/features/dist/chunk-BONVXYNU.js
1
+ // ../../packages/features/dist/chunk-HOWKEEUG.js
2
2
  var features = [
3
3
  // Framework
4
4
  {
@@ -101,6 +101,21 @@ var features = [
101
101
  }
102
102
  ]
103
103
  },
104
+ {
105
+ category: "CSS",
106
+ label: "Compiled",
107
+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evApLnXpLJu+QqWZzapzRQBB8V4Tgv4Jo9LJB6/+TiJ3b0jesssXP/E6FQCT6lwRYBkPTyFMWKPSKT2/Im3b7xbmPiTyvwtUCEyosyGAiDwdIXztI0aB51d/4zygkNJ1DyhS2hf7/hUqACbU2RBgmdwyhXBu58Ga8ikEDtos5HpDAldnQvH1eBM/vkfk2BIVgirqrAsggrcjzO44qA2utOZLM5PPTkxpuwmjdNIX+/ZlKgBV1FkX4Ipt5FnAjKNazeudF1DLdtWGN3HybSLR6gXjd6plACLe1B2x+Sd1gwa9oIu3VhH5tuYMp1PNsa9fpAJQ4Z1qGUDQcds0rO88heDUstEtHShrbAm7NudteYTZ40SK1P1ndnYY6EIRgIg3dUUd/gNFwYFRves3tvb1Okay3Bz75iUqAAbqXASw6hqdzv29vx4c6DdqGZAmOwizRGvTI8y+z0iRP6gQ6GShAJAkrd0xZ+Bh/T3eXAOrBwNyotiBmoWvnqMCoPPFswAQ4ken1NovXVH9oMGwsW0grJQ69QizH7Pplfqf2FC5OmcBUqS5Pe4MHMg1K6my0pUb246iF8t9Koov/h1Fdd54p5oFCPO7pxAQB4C65aoHyX7mNax3w8bGyImCv+g5dQtzHzFShM6/G2jUGadI8/+izhseLboOCOECiEHpGGSHlxd/0POJkSz5KO5IeXXGIX7PjLr6uqBqRrKrTQwbWwvDKaE5hxJeNHKq6gIjhX+jQrCuzjjO7bi/4jzQguiXVf5cS/rMO5VsZXek6JfUPrPGOf8+7BZOvYsQqvpytrg/SNkuxWWCPzUn545Xs+NZO/0Jl5z/rN7gFYQyvPDzW/8FAAD//wWcstmJqV1FAAAAAElFTkSuQmCC",
109
+ url: "https://compiledcssinjs.com",
110
+ tagline: "A familiar and performant compile time CSS-in-JS library for React.",
111
+ repo: "atlassian-labs/compiled",
112
+ links: [
113
+ {
114
+ label: "Docs",
115
+ href: "https://compiledcssinjs.com/docs/"
116
+ }
117
+ ]
118
+ },
104
119
  // Auth
105
120
  {
106
121
  category: "Auth",
@@ -46,9 +46,9 @@ var require_package = __commonJS({
46
46
  "cross-fetch": "^4.0.0",
47
47
  "eslint-plugin-solid": "^0.13.0",
48
48
  "solid-js": "^1.8.7",
49
- tailwindcss: "^3.3.6",
49
+ tailwindcss: "^3.4.0",
50
50
  typescript: "^5.3.3",
51
- vike: "^0.4.150",
51
+ vike: "^0.4.152",
52
52
  "vike-solid": "^0.2.6",
53
53
  vite: "^5.0.10",
54
54
  "vite-plugin-solid": "^2.8.0"
@@ -44,10 +44,10 @@ var require_package = __commonJS({
44
44
  "@batijs/compile": "workspace:*",
45
45
  "@types/node": "^18.19.3",
46
46
  autoprefixer: "^10.4.16",
47
- daisyui: "^4.4.20",
47
+ daisyui: "^4.4.24",
48
48
  postcss: "^8.4.32",
49
- tailwindcss: "^3.3.6",
50
- vike: "^0.4.150",
49
+ tailwindcss: "^3.4.0",
50
+ vike: "^0.4.152",
51
51
  vite: "^5.0.10"
52
52
  },
53
53
  dependencies: {
@@ -43,8 +43,8 @@ var require_package = __commonJS({
43
43
  devDependencies: {
44
44
  "@batijs/compile": "workspace:*",
45
45
  "@types/node": "^18.19.3",
46
- telefunc: "^0.1.66",
47
- vike: "^0.4.150",
46
+ telefunc: "^0.1.67",
47
+ vike: "^0.4.152",
48
48
  vite: "^5.0.10"
49
49
  },
50
50
  dependencies: {
@@ -43,8 +43,8 @@ var require_package = __commonJS({
43
43
  devDependencies: {
44
44
  "@batijs/compile": "workspace:*",
45
45
  "@batijs/shared-db": "workspace:*",
46
- "@trpc/client": "^10.44.1",
47
- "@trpc/server": "^10.44.1",
46
+ "@trpc/client": "^10.45.0",
47
+ "@trpc/server": "^10.45.0",
48
48
  "@types/node": "^18.19.3",
49
49
  vite: "^5.0.10"
50
50
  },
@@ -44,7 +44,7 @@ var require_package = __commonJS({
44
44
  "@batijs/compile": "workspace:*",
45
45
  "@types/node": "^18.19.3",
46
46
  "@vite-plugin-vercel/vike": "^2.0.0",
47
- vike: "^0.4.150",
47
+ vike: "^0.4.152",
48
48
  vite: "^5.0.10",
49
49
  "vite-plugin-vercel": "^2.0.0"
50
50
  },
@@ -43,18 +43,18 @@ var require_package = __commonJS({
43
43
  devDependencies: {
44
44
  "@batijs/compile": "workspace:*",
45
45
  "@types/node": "^18.19.3",
46
- "@vitejs/plugin-vue": "^4.5.2",
47
- "@vue/compiler-sfc": "^3.3.12",
48
- "@vue/server-renderer": "^3.3.12",
46
+ "@vitejs/plugin-vue": "^4.6.0",
47
+ "@vue/compiler-sfc": "^3.3.13",
48
+ "@vue/server-renderer": "^3.3.13",
49
49
  "cross-fetch": "^4.0.0",
50
50
  "eslint-plugin-vue": "^9.19.2",
51
- tailwindcss: "^3.3.6",
51
+ tailwindcss: "^3.4.0",
52
52
  typescript: "^5.3.3",
53
53
  "unplugin-vue-markdown": "^0.25.2",
54
- vike: "^0.4.150",
55
- "vike-vue": "^0.5.1",
54
+ vike: "^0.4.152",
55
+ "vike-vue": "^0.5.2",
56
56
  vite: "^5.0.10",
57
- vue: "^3.3.12"
57
+ vue: "^3.3.13"
58
58
  },
59
59
  dependencies: {
60
60
  "@batijs/core": "workspace:*"
@@ -1,4 +1,15 @@
1
1
  [
2
+ {
3
+ "config": {
4
+ "if": {
5
+ "flag": "compiled-css"
6
+ }
7
+ },
8
+ "folder": "@batijs/compiled",
9
+ "subfolders": [
10
+ "files"
11
+ ]
12
+ },
2
13
  {
3
14
  "config": {
4
15
  "if": {
package/dist/index.js CHANGED
@@ -576,7 +576,7 @@ Please report this issue to https://github.com/magne4000/bati`
576
576
  // package.json
577
577
  var package_default = {
578
578
  name: "@batijs/cli",
579
- version: "0.0.131",
579
+ version: "0.0.133",
580
580
  type: "module",
581
581
  scripts: {
582
582
  "check-types": "tsc --noEmit",
@@ -596,7 +596,7 @@ var package_default = {
596
596
  "@types/which": "^3.0.3",
597
597
  citty: "^0.1.5",
598
598
  colorette: "^2.0.20",
599
- esbuild: "^0.19.9",
599
+ esbuild: "^0.19.10",
600
600
  execa: "^8.0.1",
601
601
  rimraf: "^5.0.5",
602
602
  sift: "^17.0.1",
@@ -761,6 +761,9 @@ var rulesMessages = {
761
761
  bold("Auth")
762
762
  )}. Check https://vite-plugin-ssr.com/integration#server-side-tools for details and https://batijs.github.io for available servers`
763
763
  ),
764
+ [RulesMessage.ERROR_COMPILED_R_REACT]: error(
765
+ `${inverse(bold("React"))} is required when using ${inverse(bold("Compiled"))}.`
766
+ ),
764
767
  [RulesMessage.INFO_HATTIP]: info(`${inverse(bold("HatTip"))} is an experimental project`)
765
768
  };
766
769
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@batijs/cli",
3
- "version": "0.0.131",
3
+ "version": "0.0.133",
4
4
  "type": "module",
5
5
  "keywords": [],
6
6
  "description": "Next-gen scaffolder. Get started with fully-functional apps, and choose any tool you want",
@@ -12,19 +12,19 @@
12
12
  "@types/which": "^3.0.3",
13
13
  "citty": "^0.1.5",
14
14
  "colorette": "^2.0.20",
15
- "esbuild": "^0.19.9",
15
+ "esbuild": "^0.19.10",
16
16
  "execa": "^8.0.1",
17
17
  "rimraf": "^5.0.5",
18
18
  "sift": "^17.0.1",
19
19
  "tsup": "^8.0.1",
20
20
  "typescript": "^5.3.3",
21
21
  "vite": "^5.0.10",
22
- "@batijs/compile": "0.0.131",
23
- "@batijs/build": "0.0.131"
22
+ "@batijs/build": "0.0.133",
23
+ "@batijs/compile": "0.0.133"
24
24
  },
25
25
  "dependencies": {
26
- "@batijs/core": "0.0.131",
27
- "@batijs/features": "0.0.131"
26
+ "@batijs/core": "0.0.133",
27
+ "@batijs/features": "0.0.133"
28
28
  },
29
29
  "bin": "./dist/index.js",
30
30
  "exports": {