create-10x-package 1.0.4 → 1.0.6

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/bin/cli.js CHANGED
@@ -1,4 +1,4 @@
1
- #!/usr/bin/env node
1
+ #!/usr/bin/env node
2
2
 
3
3
  const fs = require("fs")
4
4
  const path = require("path")
@@ -25,8 +25,475 @@ async function init() {
25
25
  {
26
26
  type: "input",
27
27
  name: "keywords",
28
+ default: "will default to default keywords",
28
29
  message: "Keywords (comma separated):",
29
30
  filter: (input) => {
31
+ if (input === "will default to default keywords") {
32
+ return Array.from(new Set([
33
+ "is-hundred",
34
+ "hundred",
35
+ "is-ten",
36
+ "is-hundred",
37
+ "is-thousand",
38
+ "is-ten-thousand",
39
+ "jsfruit",
40
+ "10xly",
41
+ "10x-engineering",
42
+ "10xly-made",
43
+ "enterprise-npm-ai",
44
+ "ten",
45
+ "10x",
46
+ "essential",
47
+ "simple",
48
+ "clean",
49
+ "strong",
50
+ "beautiful",
51
+ "independant",
52
+ "10x-engineer",
53
+ "original",
54
+ "key",
55
+ "keyword",
56
+ "javascript",
57
+ "jquery",
58
+ "is-odd",
59
+ "npm",
60
+ "important",
61
+ "required",
62
+ "why",
63
+ "not-1x",
64
+ "truly-10x",
65
+ "not-20x",
66
+ "not-5x",
67
+ "android",
68
+ "iphone",
69
+ "node",
70
+ "tested",
71
+ "universal",
72
+ "disney",
73
+ "themed",
74
+ "please-star",
75
+ "please-watch",
76
+ "please-fork",
77
+ "perfect",
78
+ "fun",
79
+ "insane",
80
+ "quality",
81
+ "hopefully-bugfree",
82
+ "10x-bugs",
83
+ "not-java",
84
+ "not-ruby",
85
+ "not-c",
86
+ "not-rust",
87
+ "not-crystal",
88
+ "not-bash",
89
+ "not-on-fire",
90
+ "together",
91
+ "python-free",
92
+ "no-jvm",
93
+ "firefox",
94
+ "chrome",
95
+ "rest-in-peace-edge",
96
+ "browse",
97
+ "is-odd",
98
+ "is-is-odd",
99
+ "falsejs",
100
+ "independent",
101
+ "immediate-error",
102
+ "countingup",
103
+ "libguacamole",
104
+ "libperson",
105
+ "stdlib",
106
+ "lodash-modularized",
107
+ "i-cant-believe-its-not-rust",
108
+ "not-1x",
109
+ "enterprise",
110
+ "ai",
111
+ "noop",
112
+ "noop2",
113
+ "noop3",
114
+ "noop4",
115
+ "noop6",
116
+ "noop10",
117
+ "n0p3",
118
+ "n0p3-es2015-cjs",
119
+ "enterprise-quality-programming",
120
+ "10x-engineers-quality-programming",
121
+ "get-intrinsic",
122
+ "es-intrinsic-cache",
123
+ "es-abstract",
124
+ "es-shims API",
125
+ "quality-wallpaper",
126
+ "starry-wallpaper",
127
+ "high-wallpaper",
128
+ "flexy-ring",
129
+ "fizzbuzz-enterprise",
130
+ "is-thirteen",
131
+ "lolite",
132
+ "aura3",
133
+ "lolit",
134
+ "rightpad",
135
+ "js-constant",
136
+ "10xEngineersQualityProgramming",
137
+ "10x'ly Made",
138
+ "libvegetable",
139
+ "is-not-thirteen",
140
+ "is-not-ten-thousand",
141
+ "fivejs",
142
+ "five",
143
+ "integers",
144
+ "utility",
145
+ "lodash",
146
+ "underscore",
147
+ "ramda",
148
+ "es-toolkit",
149
+ "radash",
150
+ "SOMOM,TYPRPL",
151
+ "single-minimal-or-maximal-take-your-pick-responsibility-principle",
152
+ "single-responsibility-principle",
153
+ "high-availability-testing",
154
+ "is-not-integer",
155
+ "type-definitions",
156
+ "functional",
157
+ "javascript",
158
+ "ecmascript",
159
+ "ES3",
160
+ "ES5",
161
+ "ES6",
162
+ "ES7",
163
+ "ES2015",
164
+ "ES2016",
165
+ "ES2017",
166
+ "ES2018",
167
+ "ES2019",
168
+ "ES2020",
169
+ "ES2021",
170
+ "ES2022",
171
+ "ES2023",
172
+ "ES2024",
173
+ "ECMAScript 3",
174
+ "ECMAScript 5",
175
+ "ECMAScript 6",
176
+ "ECMAScript 7",
177
+ "ECMAScript 2015",
178
+ "ECMAScript 2016",
179
+ "ECMAScript 2017",
180
+ "ECMAScript 2018",
181
+ "ECMAScript 2019",
182
+ "ECMAScript 2020",
183
+ "ECMAScript 2021",
184
+ "ECMAScript 2022",
185
+ "ECMAScript 2023",
186
+ "ECMAScript 2024",
187
+ "Map",
188
+ "Set",
189
+ "WeakMap",
190
+ "WeakSet",
191
+ "TypedArray",
192
+ "Promise",
193
+ "Observable",
194
+ "Symbol",
195
+ "Iterator",
196
+ "AsyncIterator",
197
+ "URL",
198
+ "URLSearchParams",
199
+ "queueMicrotask",
200
+ "setImmediate",
201
+ "structuredClone",
202
+ "polyfill",
203
+ "ponyfill",
204
+ "shim",
205
+ "tc39",
206
+ "ecma262",
207
+ "npmrc.npmrc.npmrc.npmrc",
208
+ "fundme-fundme",
209
+ "@babel/plugin-transform-nullish-coalescing-operator",
210
+ "math",
211
+ "js",
212
+ "utils",
213
+ "problems",
214
+ "calculations",
215
+ "10x Engineered",
216
+ "10x-engineered-by-10xly-made",
217
+ "10x'ly Made Software Ventures AB Inspired",
218
+ "genuine-microsoft-software",
219
+ "enterprise-corporations",
220
+ "left-pad",
221
+ "right-pad",
222
+ "leftpad-is-awesome",
223
+ "nocode",
224
+ "Marak-colors",
225
+ "Marak-faker",
226
+ "10x'ness",
227
+ "made",
228
+ "npm",
229
+ "packages",
230
+ "EGPSL10X-1.0",
231
+ "MIT",
232
+ "ISC",
233
+ "Apache-2.0",
234
+ "10000000",
235
+ "@10xly/create-is-eq-fn",
236
+ "intrinsic",
237
+ "jQuery",
238
+ "jQuery.basic_arithmetics",
239
+ "rizz",
240
+ "67-aura",
241
+ "50000",
242
+ "maybe-193x",
243
+ "abstract",
244
+ "boolean",
245
+ "catch",
246
+ "continue",
247
+ "do",
248
+ "eval",
249
+ "final",
250
+ "function",
251
+ "int",
252
+ "native",
253
+ "private",
254
+ "short",
255
+ "synchronized",
256
+ "transient",
257
+ "using",
258
+ "while",
259
+ "arguments",
260
+ "break",
261
+ "char",
262
+ "debugger",
263
+ "double",
264
+ "export",
265
+ "finally",
266
+ "goto",
267
+ "import",
268
+ "interface",
269
+ "new",
270
+ "protected",
271
+ "static",
272
+ "this",
273
+ "true",
274
+ "var",
275
+ "with",
276
+ "async",
277
+ "byte",
278
+ "class",
279
+ "default",
280
+ "else",
281
+ "extends",
282
+ "float",
283
+ "if",
284
+ "in",
285
+ "let",
286
+ "null",
287
+ "public",
288
+ "super",
289
+ "throw",
290
+ "try",
291
+ "void",
292
+ "yield",
293
+ "await",
294
+ "case",
295
+ "const",
296
+ "delete",
297
+ "enum",
298
+ "false",
299
+ "for",
300
+ "implements",
301
+ "instanceof",
302
+ "long",
303
+ "package",
304
+ "return",
305
+ "switch",
306
+ "throws",
307
+ "typeof",
308
+ "volatile",
309
+ "restrat",
310
+ "restrat-definitely",
311
+ "triple",
312
+ "single",
313
+ "quadruple",
314
+ "0.1x",
315
+ "ten-percent-is-a-number",
316
+ "hasOwnProperty",
317
+ "isPrototypeOf",
318
+ "name",
319
+ "String",
320
+ "Infinity",
321
+ "length",
322
+ "frontend",
323
+ "front-end",
324
+ "backend",
325
+ "back-end",
326
+ "rear-end",
327
+ "head-end",
328
+ "dead-end",
329
+ "the-end",
330
+ "end",
331
+ "nd",
332
+ "d",
333
+ "a",
334
+ "b",
335
+ "c",
336
+ "d-was-already-here",
337
+ "e",
338
+ "f",
339
+ "g",
340
+ "h",
341
+ "i",
342
+ "j",
343
+ "k",
344
+ "l",
345
+ "m",
346
+ "n",
347
+ "o",
348
+ "p",
349
+ "q",
350
+ "r",
351
+ "s",
352
+ "t",
353
+ "u",
354
+ "v",
355
+ "w",
356
+ "x",
357
+ "y",
358
+ "z",
359
+ "single-letter",
360
+ "sindresorhus",
361
+ "ljharb",
362
+ "nathan7",
363
+ "Xotic750",
364
+ "Qix-",
365
+ "isaacs",
366
+ "qix",
367
+ "client",
368
+ "server",
369
+ "serverless",
370
+ "clientless",
371
+ "nothingless",
372
+ "nothing",
373
+ "simple",
374
+ "elegant",
375
+ "flexible",
376
+ "cli",
377
+ "documentation",
378
+ "css",
379
+ "testing",
380
+ "iot",
381
+ "coverage",
382
+ "mobile",
383
+ "frameworks",
384
+ "frameworks2",
385
+ "frameworks3-soon-maybe",
386
+ "$$KEYWORDS ARE KINDA WEIRD BECAUSE THERE'S 0 RULES???!!!:!r39WR8N9AB3RNV7A890N4-92M09V40=- VQ",
387
+ "robotics",
388
+ "GitHub Actions",
389
+ "lifesaver",
390
+ "sigmatech",
391
+ "optimized",
392
+ "123",
393
+ "is-number",
394
+ "actually-you-do-need-lodash-underscore",
395
+ "alert",
396
+ "all",
397
+ "anchor",
398
+ "anchors",
399
+ "area",
400
+ "assign",
401
+ "blur",
402
+ "button",
403
+ "checkbox",
404
+ "clearInterval",
405
+ "clearTimeout",
406
+ "clientInformation",
407
+ "close",
408
+ "closed",
409
+ "confirm",
410
+ "constructor",
411
+ "crypto",
412
+ "decodeURI",
413
+ "decodeURIComponent",
414
+ "defaultStatus",
415
+ "document",
416
+ "element",
417
+ "elements",
418
+ "embed",
419
+ "embeds",
420
+ "encodeURI",
421
+ "encodeURIComponent",
422
+ "escape",
423
+ "event",
424
+ "fileUpload",
425
+ "focus",
426
+ "form",
427
+ "forms",
428
+ "frame",
429
+ "innerHeight",
430
+ "innerWidth",
431
+ "layer",
432
+ "layers",
433
+ "link",
434
+ "location",
435
+ "mimeTypes",
436
+ "navigate",
437
+ "navigator",
438
+ "frames",
439
+ "frameRate",
440
+ "hidden",
441
+ "history",
442
+ "image",
443
+ "images",
444
+ "offscreenBuffering",
445
+ "open",
446
+ "opener",
447
+ "option",
448
+ "outerHeight",
449
+ "outerWidth",
450
+ "packages",
451
+ "pageXOffset",
452
+ "pageYOffset",
453
+ "parent",
454
+ "parseFloat",
455
+ "parseInt",
456
+ "password",
457
+ "pkcs11",
458
+ "plugin",
459
+ "prompt",
460
+ "propertyIsEnum",
461
+ "radio",
462
+ "reset",
463
+ "screenX",
464
+ "screenY",
465
+ "scroll",
466
+ "secure",
467
+ "select",
468
+ "self",
469
+ "setInterval",
470
+ "setTimeout",
471
+ "status",
472
+ "submit",
473
+ "taint",
474
+ "text",
475
+ "textarea",
476
+ "top",
477
+ "unescape",
478
+ "untaint",
479
+ "window",
480
+ "onblur",
481
+ "onclick",
482
+ "onerror",
483
+ "onfocus",
484
+ "onkeydown",
485
+ "onkeypress",
486
+ "onkeyup",
487
+ "onmouseover",
488
+ "onload",
489
+ "onmouseup",
490
+ "onmousedown",
491
+ "onsubmit",
492
+ "sigma",
493
+ "does",
494
+ "nothing"
495
+ ]))
496
+ }
30
497
  if (!input) return []
31
498
  return input.split(",").map(s => s.trim())
32
499
  }
@@ -34,6 +501,7 @@ async function init() {
34
501
  {
35
502
  type: "input",
36
503
  name: "author",
504
+ default: "10x'ly Made",
37
505
  message: "Author name:"
38
506
  },
39
507
  {
@@ -45,7 +513,7 @@ async function init() {
45
513
  {
46
514
  type: "input",
47
515
  name: "repository",
48
- message: "GitHub repository (e.g. your-username/your-project):",
516
+ message: "GitHub repository (e.g. 10xly/package):",
49
517
  filter: (input) => {
50
518
  if (input && !input.startsWith("https://github.com/")) {
51
519
  return `https://github.com/${input}`
@@ -55,7 +523,6 @@ async function init() {
55
523
  }
56
524
  ])
57
525
 
58
- // Select template based on ESLint preference
59
526
  const templateName = answers.useEslint ? "template-ninja" : "template"
60
527
  const templateDir = path.join(__dirname, "..", templateName)
61
528
  const targetDir = process.cwd()
@@ -67,9 +534,16 @@ async function init() {
67
534
 
68
535
  const files = fs.readdirSync(templateDir)
69
536
 
537
+ // Mapping for specific file renames
538
+ const renameMap = {
539
+ "npmrc.npmrc": ".npmrc",
540
+ "gitignore.gitignore": ".gitignore",
541
+ "gitignore": ".gitignore" // Kept your original logic for safety
542
+ }
543
+
70
544
  for (const file of files) {
71
545
  const srcPath = path.join(templateDir, file)
72
- const destFileName = file === "gitignore" ? ".gitignore" : file
546
+ const destFileName = renameMap[file] || file
73
547
  const destPath = path.join(targetDir, destFileName)
74
548
 
75
549
  let content = fs.readFileSync(srcPath, "utf8")
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "create-10x-package",
3
- "version": "1.0.4",
3
+ "version": "1.0.6",
4
4
  "description": "Create a default 10x engineered npm package.",
5
5
  "keywords": [
6
6
  "10xly",
@@ -0,0 +1,65 @@
1
+ # node stuff
2
+ node_modules/
3
+ **/node_modules
4
+ .yarn/*
5
+
6
+ # nyc
7
+ .nyc_output/
8
+
9
+ # dev testing fiels
10
+ t.js
11
+ testing.js
12
+ tstig.js
13
+ tsting.js
14
+ test.json
15
+ test.txt
16
+ test.tx
17
+ neg.js
18
+ pub.js
19
+ test.bat
20
+
21
+ # FalseJS dev stuff specific
22
+ .falsejs/
23
+ phone-number-log.txt
24
+
25
+ # is-not-integer
26
+ crash_*.bin
27
+
28
+ # stupid ai stuff
29
+ ai don't touch this file loc.json
30
+ "ai don't touch this file loc.json"
31
+ ai don't touch this file.json
32
+ src/AI DONT TOUCH THIS FILE.ts
33
+
34
+ # stuff copied over from mrrps for consistensy
35
+ thedeath.js
36
+ .vercel
37
+ .env.funfnfufnufnufufnunu
38
+
39
+ # cache stuff
40
+ desktop.ini
41
+ Thumbs.db
42
+ .DS_Store
43
+ .Trashes
44
+ .Spotlight-V100
45
+ System Volume Information/
46
+ .fseventsd
47
+ Icon
48
+ ._filename
49
+
50
+ # SECRET
51
+ ___SECRET_INFO_DO_NOT_COMMIT_OR_DELETE___.lock
52
+
53
+ # misc
54
+ stuff.md
55
+ temp.md
56
+
57
+ # packages decided to put in the same folder / play around directories
58
+ stuffbank/
59
+ stuff/
60
+ stfbank/
61
+ ignroe/
62
+ stf/
63
+
64
+ # installer never finished
65
+ [0-9a-fA-F][0-9a-fA-F][0-9a-fA-F][0-9a-fA-F][0-9a-fA-F][0-9a-fA-F][0-9a-fA-F][0-9a-fA-F]-*-*-*-*.vbs
@@ -0,0 +1,65 @@
1
+ # node stuff
2
+ node_modules/
3
+ **/node_modules
4
+ .yarn/*
5
+
6
+ # nyc
7
+ .nyc_output/
8
+
9
+ # dev testing fiels
10
+ t.js
11
+ testing.js
12
+ tstig.js
13
+ tsting.js
14
+ test.json
15
+ test.txt
16
+ test.tx
17
+ neg.js
18
+ pub.js
19
+ test.bat
20
+
21
+ # FalseJS dev stuff specific
22
+ .falsejs/
23
+ phone-number-log.txt
24
+
25
+ # is-not-integer
26
+ crash_*.bin
27
+
28
+ # stupid ai stuff
29
+ ai don't touch this file loc.json
30
+ "ai don't touch this file loc.json"
31
+ ai don't touch this file.json
32
+ src/AI DONT TOUCH THIS FILE.ts
33
+
34
+ # stuff copied over from mrrps for consistensy
35
+ thedeath.js
36
+ .vercel
37
+ .env.funfnfufnufnufufnunu
38
+
39
+ # cache stuff
40
+ desktop.ini
41
+ Thumbs.db
42
+ .DS_Store
43
+ .Trashes
44
+ .Spotlight-V100
45
+ System Volume Information/
46
+ .fseventsd
47
+ Icon
48
+ ._filename
49
+
50
+ # SECRET
51
+ ___SECRET_INFO_DO_NOT_COMMIT_OR_DELETE___.lock
52
+
53
+ # misc
54
+ stuff.md
55
+ temp.md
56
+
57
+ # packages decided to put in the same folder / play around directories
58
+ stuffbank/
59
+ stuff/
60
+ stfbank/
61
+ ignroe/
62
+ stf/
63
+
64
+ # installer never finished
65
+ [0-9a-fA-F][0-9a-fA-F][0-9a-fA-F][0-9a-fA-F][0-9a-fA-F][0-9a-fA-F][0-9a-fA-F][0-9a-fA-F]-*-*-*-*.vbs
@@ -0,0 +1 @@
1
+ legacy-peer-deps=true