scottkosman 1.0.0 β 1.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.
- package/README.md +25 -0
- package/dist/utils/welcome.d.ts.map +1 -1
- package/dist/utils/welcome.js +28 -5
- package/dist/utils/welcome.js.map +1 -1
- package/package.json +5 -1
package/README.md
CHANGED
|
@@ -125,6 +125,31 @@ npm run lint
|
|
|
125
125
|
npm run format
|
|
126
126
|
```
|
|
127
127
|
|
|
128
|
+
### Publishing
|
|
129
|
+
|
|
130
|
+
The project includes automated publishing scripts:
|
|
131
|
+
|
|
132
|
+
```bash
|
|
133
|
+
# Publish with patch version bump (1.0.0 -> 1.0.1)
|
|
134
|
+
npm run publish:patch
|
|
135
|
+
|
|
136
|
+
# Publish with minor version bump (1.0.0 -> 1.1.0)
|
|
137
|
+
npm run publish:minor
|
|
138
|
+
|
|
139
|
+
# Publish with major version bump (1.0.0 -> 2.0.0)
|
|
140
|
+
npm run publish:major
|
|
141
|
+
|
|
142
|
+
# Or use the script directly
|
|
143
|
+
./scripts/publish.sh patch
|
|
144
|
+
```
|
|
145
|
+
|
|
146
|
+
These scripts will:
|
|
147
|
+
1. Bump the version number
|
|
148
|
+
2. Build the project
|
|
149
|
+
3. Publish to npm
|
|
150
|
+
4. Create a git tag
|
|
151
|
+
5. Push changes to GitHub
|
|
152
|
+
|
|
128
153
|
### Project Structure
|
|
129
154
|
|
|
130
155
|
```
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"welcome.d.ts","sourceRoot":"","sources":["../../src/utils/welcome.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"welcome.d.ts","sourceRoot":"","sources":["../../src/utils/welcome.ts"],"names":[],"mappings":"AA4DA,wBAAsB,WAAW,IAAI,OAAO,CAAC,IAAI,CAAC,CAoGjD"}
|
package/dist/utils/welcome.js
CHANGED
|
@@ -7,6 +7,7 @@ exports.showWelcome = showWelcome;
|
|
|
7
7
|
const chalk_1 = __importDefault(require("chalk"));
|
|
8
8
|
const figlet_1 = __importDefault(require("figlet"));
|
|
9
9
|
const gradient_string_1 = __importDefault(require("gradient-string"));
|
|
10
|
+
// import boxen from 'boxen'; // Uncomment when using the info box
|
|
10
11
|
const terminal_image_1 = __importDefault(require("terminal-image"));
|
|
11
12
|
const path_1 = __importDefault(require("path"));
|
|
12
13
|
const fs_1 = __importDefault(require("fs"));
|
|
@@ -33,6 +34,16 @@ const menuItems = [
|
|
|
33
34
|
value: 'https://linkedin.com/in/scottkosman',
|
|
34
35
|
description: 'Join my Professional Networkβ’'
|
|
35
36
|
},
|
|
37
|
+
{
|
|
38
|
+
name: 'π 1Password',
|
|
39
|
+
value: 'https://1password.com',
|
|
40
|
+
description: 'Where I work'
|
|
41
|
+
},
|
|
42
|
+
{
|
|
43
|
+
name: 'π Current Resume',
|
|
44
|
+
value: 'https://docs.google.com/document/d/1gcEzsNHWAllGH9mt6bfjie900B-rQNiatwdHiRj_Yog/edit?tab=t.0#heading=h.f5t1zjbkvcg2',
|
|
45
|
+
description: 'Check out what I\'ve done in the past'
|
|
46
|
+
},
|
|
36
47
|
{
|
|
37
48
|
name: 'πΈ Instagram',
|
|
38
49
|
value: 'https://instagram.com/humantorch',
|
|
@@ -43,11 +54,6 @@ const menuItems = [
|
|
|
43
54
|
value: 'mailto:kosman.scott@gmail.com',
|
|
44
55
|
description: 'Email? In 2025? I do check this, I promise.'
|
|
45
56
|
},
|
|
46
|
-
{
|
|
47
|
-
name: 'π 1Password',
|
|
48
|
-
value: 'https://1password.com',
|
|
49
|
-
description: 'Where I work'
|
|
50
|
-
}
|
|
51
57
|
];
|
|
52
58
|
async function showWelcome() {
|
|
53
59
|
// Clear the console
|
|
@@ -76,8 +82,25 @@ async function showWelcome() {
|
|
|
76
82
|
console.log(gradientTitle);
|
|
77
83
|
// Create subtitle
|
|
78
84
|
const subtitle = chalk_1.default.bold('Toronto-based Engineering Manager at 1Password, 20+ year vet of the technology,\nmarketing, and digital strategy world. A recovering front-end developer who pivoted\nto management back in 2014, I now enjoy leading teams building the next generation\nof stuff you do on this "internet" thing. He/him.');
|
|
85
|
+
// Create info box (commented out for now, but can be reused later)
|
|
86
|
+
// const info = boxen(
|
|
87
|
+
// `${chalk.bold('Welcome!')}\n\n` +
|
|
88
|
+
// `${chalk.gray('This is a modern CLI built with:')}\n` +
|
|
89
|
+
// `${chalk.blue('β’ TypeScript')}\n` +
|
|
90
|
+
// `${chalk.blue('β’ Commander.js')}\n` +
|
|
91
|
+
// `${chalk.blue('β’ Chalk for styling')}\n` +
|
|
92
|
+
// `${chalk.blue('β’ Modern Node.js')}\n\n` +
|
|
93
|
+
// `${chalk.gray('Use')} ${chalk.yellow('scottkosman --help')} ${chalk.gray('to see available commands')}`,
|
|
94
|
+
// {
|
|
95
|
+
// padding: 1,
|
|
96
|
+
// margin: 1,
|
|
97
|
+
// borderStyle: 'round',
|
|
98
|
+
// borderColor: 'cyan',
|
|
99
|
+
// }
|
|
100
|
+
// );
|
|
79
101
|
// Display everything
|
|
80
102
|
console.log(subtitle);
|
|
103
|
+
// console.log(info); // Uncomment this line to show the info box
|
|
81
104
|
console.log();
|
|
82
105
|
// Show interactive menu
|
|
83
106
|
try {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"welcome.js","sourceRoot":"","sources":["../../src/utils/welcome.ts"],"names":[],"mappings":";;;;;
|
|
1
|
+
{"version":3,"file":"welcome.js","sourceRoot":"","sources":["../../src/utils/welcome.ts"],"names":[],"mappings":";;;;;AA4DA,kCAoGC;AAhKD,kDAA0B;AAC1B,oDAA4B;AAC5B,sEAAuC;AACvC,kEAAkE;AAClE,oEAA2C;AAC3C,gDAAwB;AACxB,4CAAoB;AACpB,wDAAgC;AAChC,gDAAwB;AAQxB,MAAM,SAAS,GAAe;IAC5B;QACE,IAAI,EAAE,iBAAiB;QACvB,KAAK,EAAE,yBAAyB;QAChC,WAAW,EAAE,2BAA2B;KACzC;IACD;QACE,IAA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"1.
|
|
3
|
+
"version": "1.1.0",
|
|
4
4
|
"description": "A modern, interactive command-line interface for Scott Kosman with quick access to external links",
|
|
5
5
|
"main": "dist/index.js",
|
|
6
6
|
"bin": {
|
|
@@ -18,6 +18,10 @@
|
|
|
18
18
|
"clean": "rm -rf dist",
|
|
19
19
|
"prebuild": "npm run clean",
|
|
20
20
|
"prepublishOnly": "npm run build",
|
|
21
|
+
"postversion": "git push && git push --tags",
|
|
22
|
+
"publish:patch": "./scripts/publish.sh patch",
|
|
23
|
+
"publish:minor": "./scripts/publish.sh minor",
|
|
24
|
+
"publish:major": "./scripts/publish.sh major",
|
|
21
25
|
"test": "jest",
|
|
22
26
|
"test:watch": "jest --watch",
|
|
23
27
|
"lint": "eslint src --ext .ts",
|