reverentgeek 1.5.1 → 2.0.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/art/avatar.js CHANGED
@@ -1,6 +1,6 @@
1
1
  "use strict";
2
2
 
3
- module.exports = ` @@@@@@@@
3
+ export default ` @@@@@@@@
4
4
  @@@@@@,,@@@@@@@
5
5
  @@@@@@(@@,@@@@@@@@@@@@
6
6
  @@@@@@@,@@, @@
package/art/banner.js CHANGED
@@ -1,6 +1,6 @@
1
1
  "use strict";
2
2
 
3
- module.exports = ` _ _
3
+ export default ` _ _
4
4
  ___ ___ _ _ ___ ___ ___ ___| |_ ___ ___ ___| |_
5
5
  | _| -_| | | -_| _| -_| | _| . | -_| -_| '_|
6
6
  |_| |___|\\_/|___|_| |___|_|_|_| |_ |___|___|_,_|
package/bin/card.js CHANGED
@@ -1,11 +1,14 @@
1
1
  #!/usr/bin/env node
2
- "use strict";
3
2
  // 👆 Used to tell Node.js that this is a CLI tool
4
3
 
5
4
  // Pull in our modules
6
- const chalk = require( "chalk" );
7
- const boxen = require( "boxen" );
8
- const gs = require( "gradient-string" );
5
+ import chalk from "chalk";
6
+ import boxen from "boxen";
7
+ import gs from "gradient-string";
8
+
9
+ // Some sweet ascii art
10
+ import avatar from "../art/avatar.js";
11
+ import banner from "../art/banner.js";
9
12
 
10
13
  // define custom colors
11
14
  const pink = "#ff1675";
@@ -23,11 +26,7 @@ const blueChalk = chalk.hex( blue );
23
26
  const greenChalk = chalk.hex( green );
24
27
  const orangeChalk = chalk.hex( orange );
25
28
  // const pinkChalk = chalk.hex( pink );
26
- const ps = gs( pink, orange );
27
-
28
- // Some sweet ascii art
29
- const avatar = require( "../art/avatar" );
30
- const banner = require( "../art/banner" );
29
+ const ps = gs( [ pink, orange ] );
31
30
 
32
31
  const newline = "\n";
33
32
 
@@ -44,10 +43,12 @@ const options = {
44
43
  const data = {
45
44
  name: yellowChalk.bold( " DAVID NEAL" ),
46
45
  handle: yellowChalk( "reverentgeek" ),
47
- work: ps( "Principal Developer Advocate" ),
48
- workUrl: ps( "https://pluralsight.com" ),
46
+ // work: ps( "Principal Developer Advocate" ),
47
+ // workUrl: ps( "https://pluralsight.com" ),
49
48
  twitter: yellowChalk( "https://twitter.com/reverentgeek" ),
50
49
  mastodon: yellowChalk( "@reverentgeek@reverentgeek.com" ),
50
+ bluesky: yellowChalk( "@reverentgeek.com" ),
51
+ threads: yellowChalk( "@reverentgeek" ),
51
52
  github: yellowChalk( "https://github.com/reverentgeek" ),
52
53
  linkedin: yellowChalk( "https://linkedin.com/in/davidneal" ),
53
54
  web: yellowChalk( "https://reverentgeek.com" ),
@@ -57,6 +58,8 @@ const data = {
57
58
  labelWorkUrl: blueChalk( " " ),
58
59
  labelTwitter: blueChalk( " Twitter:" ),
59
60
  labelMastodon: blueChalk( " Mastodon:" ),
61
+ labelBluesky: blueChalk( " BlueSky:" ),
62
+ labelThreads: blueChalk( " Threads:" ),
60
63
  labelGitHub: blueChalk( " GitHub:" ),
61
64
  labelLinkedIn: blueChalk( " LinkedIn:" ),
62
65
  labelWeb: blueChalk( " Web:" ),
@@ -75,10 +78,12 @@ my Twitter direct messages are open!` )
75
78
  // Actual strings we're going to output
76
79
  const hr = ps( "----------~~~~~~~~~==========~~~~~~~~~-----------" );
77
80
  const heading = data.name;
78
- const working = `\n${ data.labelWork } ${ data.work }`;
79
- const workingUrl = `${ data.labelWorkUrl } ${ data.workUrl }`;
81
+ // const working = `\n${ data.labelWork } ${ data.work }`;
82
+ // const workingUrl = `${ data.labelWorkUrl } ${ data.workUrl }`;
80
83
  const twittering = `${ data.labelTwitter } ${ data.twitter }`;
81
84
  const tooting = `${ data.labelMastodon } ${ data.mastodon }`;
85
+ const skeeting = `${ data.labelBluesky } ${ data.bluesky }`;
86
+ const threading = `${ data.labelThreads } ${ data.threads }`;
82
87
  const githubing = `${ data.labelGitHub } ${ data.github }`;
83
88
  const linkedining = `${ data.labelLinkedIn } ${ data.linkedin }`;
84
89
  const webing = `${ data.labelWeb } ${ data.web }`;
@@ -87,14 +92,23 @@ const carding = `\n${ data.labelCard } ${ data.npx }`;
87
92
  const bio = `\n${ data.bio }`;
88
93
  const msg = `\n${ data.msg }`;
89
94
 
95
+ // const card = [
96
+ // ps.multiline( avatar ), ps.multiline( banner ),
97
+ // hr, heading, hr, working, workingUrl,
98
+ // twittering, tooting, skeeting, threading,
99
+ // githubing, linkedining,
100
+ // webing, emailing, carding, bio, msg
101
+ // ];
102
+
90
103
  const card = [
91
104
  ps.multiline( avatar ), ps.multiline( banner ),
92
- hr, heading, hr, working, workingUrl,
93
- twittering, tooting, githubing, linkedining,
105
+ hr, heading, hr,
106
+ twittering, tooting, skeeting, threading,
107
+ githubing, linkedining,
94
108
  webing, emailing, carding, bio, msg
95
109
  ];
96
110
 
97
111
  // Put all our output together into a single variable so we can use boxen effectively
98
112
  const output = card.join( newline );
99
113
 
100
- console.log( boxen( output, options ) ); // eslint-disable-line no-console
114
+ console.log( boxen( output, options ) );
@@ -0,0 +1,12 @@
1
+ import rg from "eslint-config-reverentgeek";
2
+
3
+ export default [
4
+ ...rg.configs[ "node-esm" ],
5
+ {
6
+ rules: {
7
+ "n/no-unpublished-import": [ "error", {
8
+ allowModules: [ "eslint-config-reverentgeek" ]
9
+ } ]
10
+ }
11
+ }
12
+ ];
package/package.json CHANGED
@@ -1,11 +1,12 @@
1
1
  {
2
2
  "name": "reverentgeek",
3
- "version": "1.5.1",
3
+ "version": "2.0.0",
4
4
  "description": "My personal calling card.",
5
5
  "main": "./bin/card.js",
6
6
  "bin": {
7
7
  "reverentgeek": "./bin/card.js"
8
8
  },
9
+ "type": "module",
9
10
  "scripts": {
10
11
  "lint": "eslint bin/*.js art/*.js"
11
12
  },
@@ -21,12 +22,12 @@
21
22
  "url": "https://github.com/reverentgeek/reverentgeek-card.git"
22
23
  },
23
24
  "dependencies": {
24
- "boxen": "^5.0.1",
25
- "chalk": "^4.1.0",
26
- "gradient-string": "^2.0.2"
25
+ "boxen": "^8.0.1",
26
+ "chalk": "^5.3.0",
27
+ "gradient-string": "^3.0.0"
27
28
  },
28
29
  "devDependencies": {
29
- "eslint": "^7.5.0",
30
- "eslint-config-reverentgeek": "^3.0.0"
30
+ "eslint": "^9.14.0",
31
+ "eslint-config-reverentgeek": "^5.1.0"
31
32
  }
32
33
  }
package/.eslintrc.js DELETED
@@ -1,5 +0,0 @@
1
- "use strict";
2
-
3
- module.exports = {
4
- extends: [ "reverentgeek/node" ]
5
- };