forged-cli 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.
@@ -0,0 +1,22 @@
1
+ name: Publish to npm
2
+
3
+ on:
4
+ push:
5
+ tags:
6
+ - 'v*'
7
+
8
+ jobs:
9
+ publish:
10
+ runs-on: ubuntu-latest
11
+ steps:
12
+ - uses: actions/checkout@v4
13
+
14
+ - uses: actions/setup-node@v4
15
+ with:
16
+ node-version: '20'
17
+ registry-url: 'https://registry.npmjs.org'
18
+
19
+ - name: Publish
20
+ run: npm publish
21
+ env:
22
+ NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
package/README.md ADDED
@@ -0,0 +1,28 @@
1
+ # ⚒ Forged
2
+
3
+ > Your dev environment, forged.
4
+
5
+ **Forged** is a complete developer workflow toolkit — shell configuration, project scaffolding, GitHub automation, and a guided installer in one package.
6
+
7
+ ## Install
8
+
9
+ ```sh
10
+ npx forged-cli init
11
+ ```
12
+
13
+ ## Commands
14
+
15
+ | Command | Description |
16
+ |---------|-------------|
17
+ | `forged init` | Scaffold a new dev environment |
18
+ | `forged new` | Create a new project with GitHub setup |
19
+ | `forged install` | Install Forged into an existing shell config |
20
+ | `forged version` | Show version |
21
+
22
+ ## Status
23
+
24
+ Early development. Watch this repo for updates.
25
+
26
+ ## License
27
+
28
+ MIT © [Brandon](https://github.com/bkness)
package/bin/forged.js ADDED
@@ -0,0 +1,33 @@
1
+ #!/usr/bin/env node
2
+
3
+ const [,, command] = process.argv;
4
+
5
+ const commands = {
6
+ init: 'Scaffold a new dev environment',
7
+ new: 'Create a new project with GitHub setup',
8
+ install: 'Install Forged into an existing shell config',
9
+ version: 'Show Forged version',
10
+ };
11
+
12
+ if (!command || command === 'help') {
13
+ console.log(`
14
+ ⚒ Forged — your dev environment, forged.
15
+
16
+ Usage:
17
+ forged <command>
18
+
19
+ Commands:
20
+ ${Object.entries(commands).map(([cmd, desc]) => ` ${cmd.padEnd(10)} ${desc}`).join('\n')}
21
+ `);
22
+ process.exit(0);
23
+ }
24
+
25
+ if (command === 'version') {
26
+ const { createRequire } = await import('module');
27
+ const require = createRequire(import.meta.url);
28
+ const { version } = require('../package.json');
29
+ console.log(`forged-cli v${version}`);
30
+ process.exit(0);
31
+ }
32
+
33
+ console.log(`⚒ Forged — '${command}' coming soon.`);
package/package.json ADDED
@@ -0,0 +1,33 @@
1
+ {
2
+ "name": "forged-cli",
3
+ "version": "0.1.0",
4
+ "description": "A complete dev environment toolkit — shell, workflows, and project scaffolding in one install.",
5
+ "keywords": [
6
+ "cli",
7
+ "devtools",
8
+ "dotfiles",
9
+ "scaffold",
10
+ "workflow",
11
+ "zsh"
12
+ ],
13
+ "author": "Brandon <DevBrandon@icloud.com> (https://github.com/bkness)",
14
+ "license": "MIT",
15
+ "homepage": "https://github.com/RevenueWebs/forged-cli#readme",
16
+ "repository": {
17
+ "type": "git",
18
+ "url": "git+ssh://git@github.com/RevenueWebs/forged-cli.git"
19
+ },
20
+ "bugs": {
21
+ "url": "https://github.com/RevenueWebs/forged-cli/issues"
22
+ },
23
+ "type": "module",
24
+ "bin": {
25
+ "forged": "./bin/forged.js"
26
+ },
27
+ "engines": {
28
+ "node": ">=18"
29
+ },
30
+ "scripts": {
31
+ "start": "node bin/forged.js"
32
+ }
33
+ }
package/src/index.js ADDED
@@ -0,0 +1,2 @@
1
+ // Forged core — command implementations will live here
2
+ export const VERSION = '0.1.0';