nordman 0.0.0-stage → 0.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.
Files changed (3) hide show
  1. package/README.md +18 -2
  2. package/bin/nordman.js +18 -0
  3. package/package.json +23 -3
package/README.md CHANGED
@@ -1,3 +1,19 @@
1
- # Temporary Holding Version
1
+ # nordman
2
2
 
3
- This version is a temporary placeholder for this package. An operational version to replace this has been submitted for review and is awaiting a staged release.
3
+ > Nordman Interface Framework CLI
4
+
5
+ Add components, tokens, and UI patterns directly to your project:
6
+
7
+ ```bash
8
+ pnpm dlx nordman@latest add button
9
+ # or
10
+ npx nordman@latest add button
11
+ ```
12
+
13
+ ## Commands
14
+
15
+ - `nordman init` — Initialize tokens, base styles, and `nif.json` configuration
16
+ - `nordman add <component>` — Add one or more components with their dependencies
17
+ - `nordman list` — List all available components and which are installed
18
+ - `nordman diff <component>` — Inspect changes between local components and upstream
19
+ - `nordman update` — Update components to latest version
package/bin/nordman.js ADDED
@@ -0,0 +1,18 @@
1
+ #!/usr/bin/env node
2
+ import { spawn } from 'node:child_process';
3
+ import { createRequire } from 'node:module';
4
+ import path from 'node:path';
5
+
6
+ const require = createRequire(import.meta.url);
7
+ try {
8
+ const nifPkg = require.resolve('@nordmanai/nif/package.json');
9
+ const nifBin = path.join(path.dirname(nifPkg), 'bin/nif.mjs');
10
+ await import(`file://${nifBin}`);
11
+ } catch {
12
+ const child = spawn('npx', ['-y', '@nordmanai/nif@latest', ...process.argv.slice(2)], {
13
+ stdio: 'inherit',
14
+ });
15
+ child.on('exit', (code) => {
16
+ process.exit(code ?? 0);
17
+ });
18
+ }
package/package.json CHANGED
@@ -1,6 +1,26 @@
1
1
  {
2
2
  "name": "nordman",
3
- "version": "0.0.0-stage",
4
- "stub": true,
5
- "description": "Temporary package placeholder for staged publishing"
3
+ "version": "0.1.0",
4
+ "description": "Nordman Interface Framework CLI",
5
+ "type": "module",
6
+ "bin": {
7
+ "nordman": "./bin/nordman.js"
8
+ },
9
+ "dependencies": {
10
+ "@nordmanai/nif": "^0.2.3"
11
+ },
12
+ "files": [
13
+ "bin",
14
+ "README.md"
15
+ ],
16
+ "author": "Nordman",
17
+ "license": "MIT",
18
+ "keywords": [
19
+ "nordman",
20
+ "nif",
21
+ "design-system",
22
+ "ui",
23
+ "components",
24
+ "cli"
25
+ ]
6
26
  }