@conloca/cli 0.1.16 → 0.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.
Files changed (3) hide show
  1. package/README.md +150 -29
  2. package/dist/conloca.js +3825 -216
  3. package/package.json +65 -8
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@conloca/cli",
3
- "version": "0.1.16",
3
+ "version": "0.2.1",
4
4
  "publishConfig": {
5
5
  "access": "public"
6
6
  },
@@ -10,8 +10,8 @@
10
10
  "directory": "packages/cli"
11
11
  },
12
12
  "dependencies": {
13
- "@conloca/content-api": "0.1.16",
14
- "@node-rs/xxhash": "^1.7.6"
13
+ "@conloca/astro-cms": "0.2.1",
14
+ "@conloca/content-api": "0.2.1"
15
15
  },
16
16
  "bin": {
17
17
  "conloca": "./dist/conloca.js"
@@ -26,11 +26,29 @@
26
26
  "!**/*.tsbuildinfo"
27
27
  ],
28
28
  "devDependencies": {
29
- "@types/bun": "1.3.14"
29
+ "@types/bun": "1.4.2",
30
+ "commander": "^15.0.0"
30
31
  },
31
32
  "nx": {
32
33
  "targets": {
34
+ "clean": {},
33
35
  "lint": {},
36
+ "typecheck": {
37
+ "//": "No tsconfig.lib.json -- the published bundle is built by the `build` target, not by tsc -- so inference derives no typecheck. tsconfig.json is the library program here (19 files).",
38
+ "executor": "nx:run-commands",
39
+ "cache": true,
40
+ "inputs": [
41
+ "default",
42
+ "^production"
43
+ ],
44
+ "dependsOn": [
45
+ "^*-js"
46
+ ],
47
+ "options": {
48
+ "command": "tsc -p tsconfig.json --noEmit",
49
+ "cwd": "{projectRoot}"
50
+ }
51
+ },
34
52
  "build": {
35
53
  "executor": "nx:run-commands",
36
54
  "dependsOn": [
@@ -41,17 +59,56 @@
41
59
  "cwd": "{projectRoot}"
42
60
  }
43
61
  },
62
+ "typecheck-tests": {
63
+ "//": "The test program also compiles the shared git-isolation harness it imports from tooling/.",
64
+ "inputs": [
65
+ "...",
66
+ "{workspaceRoot}/tooling/git-env-isolation.ts",
67
+ "{workspaceRoot}/tooling/git-local-env.ts"
68
+ ]
69
+ },
44
70
  "test": {
45
71
  "executor": "@smoothbricks/nx-plugin:bounded-exec",
46
72
  "dependsOn": [
73
+ "build",
47
74
  "typecheck-tests",
48
- "^build"
75
+ "test-packed"
76
+ ],
77
+ "inputs": [
78
+ "default",
79
+ "^default",
80
+ "{workspaceRoot}/example/website-with-cms/package.json",
81
+ "{workspaceRoot}/tooling/test-setup.ts",
82
+ "{workspaceRoot}/tooling/git-local-env.ts",
83
+ "{workspaceRoot}/tooling/git-env-isolation.ts"
49
84
  ],
50
85
  "options": {
51
- "command": "bun --conditions=production test",
86
+ "command": "bun test --timeout=30000",
52
87
  "cwd": "{projectRoot}",
53
- "timeoutMs": 120000,
54
- "killAfterMs": 1e4
88
+ "timeoutMs": 300000,
89
+ "killAfterMs": 10000
90
+ }
91
+ },
92
+ "test-packed": {
93
+ "//": "The packed shape is a function of the built outputs, the manifest and the locked dependency closure; cached on exactly those.",
94
+ "executor": "nx:run-commands",
95
+ "cache": true,
96
+ "inputs": [
97
+ {
98
+ "dependentTasksOutputFiles": "**/*",
99
+ "transitive": true
100
+ },
101
+ "{projectRoot}/package.json",
102
+ "{workspaceRoot}/bun.lock",
103
+ "{workspaceRoot}/tooling/packaging/**/*"
104
+ ],
105
+ "dependsOn": [
106
+ "build",
107
+ "^build"
108
+ ],
109
+ "options": {
110
+ "command": "bun tooling/packaging/test-packed.ts cli",
111
+ "cwd": "{workspaceRoot}"
55
112
  }
56
113
  }
57
114
  },