@conloca/cli 0.1.15 → 0.2.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.
Files changed (3) hide show
  1. package/README.md +145 -29
  2. package/dist/conloca.js +3741 -213
  3. package/package.json +98 -8
package/package.json CHANGED
@@ -1,24 +1,24 @@
1
1
  {
2
2
  "name": "@conloca/cli",
3
- "version": "0.1.15",
3
+ "version": "0.2.0",
4
4
  "publishConfig": {
5
5
  "access": "public"
6
6
  },
7
7
  "repository": {
8
8
  "type": "git",
9
9
  "url": "git+https://github.com/conloca/conloca.git",
10
- "directory": "cli"
10
+ "directory": "packages/cli"
11
11
  },
12
12
  "dependencies": {
13
- "@conloca/content-api": "^0.1.15",
14
- "@node-rs/xxhash": "^1.7.6"
13
+ "@conloca/astro-cms": "0.2.0",
14
+ "@conloca/content-api": "0.2.0"
15
15
  },
16
16
  "bin": {
17
17
  "conloca": "./dist/conloca.js"
18
18
  },
19
19
  "scripts": {
20
- "build": "bun run build.ts",
21
- "test": "bun test"
20
+ "build": "nx run cli:build",
21
+ "test": "nx run cli:test --outputStyle=stream"
22
22
  },
23
23
  "type": "module",
24
24
  "files": [
@@ -26,6 +26,96 @@
26
26
  "!**/*.tsbuildinfo"
27
27
  ],
28
28
  "devDependencies": {
29
- "@types/bun": "^1.3.9"
30
- }
29
+ "@types/bun": "1.4.2",
30
+ "commander": "^15.0.0"
31
+ },
32
+ "nx": {
33
+ "targets": {
34
+ "clean": {},
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
+ },
52
+ "build": {
53
+ "executor": "nx:run-commands",
54
+ "dependsOn": [
55
+ "^build"
56
+ ],
57
+ "options": {
58
+ "command": "bun run build.ts",
59
+ "cwd": "{projectRoot}"
60
+ }
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
+ },
70
+ "test": {
71
+ "executor": "@smoothbricks/nx-plugin:bounded-exec",
72
+ "dependsOn": [
73
+ "build",
74
+ "typecheck-tests",
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"
84
+ ],
85
+ "options": {
86
+ "command": "bun test --timeout=30000",
87
+ "cwd": "{projectRoot}",
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}"
112
+ }
113
+ }
114
+ },
115
+ "tags": [
116
+ "npm:public"
117
+ ],
118
+ "name": "cli"
119
+ },
120
+ "license": "FSL-1.1-ALv2"
31
121
  }