create-10x-package 1.0.3 → 1.0.5

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")
@@ -55,7 +55,6 @@ async function init() {
55
55
  }
56
56
  ])
57
57
 
58
- // Select template based on ESLint preference
59
58
  const templateName = answers.useEslint ? "template-ninja" : "template"
60
59
  const templateDir = path.join(__dirname, "..", templateName)
61
60
  const targetDir = process.cwd()
@@ -67,9 +66,16 @@ async function init() {
67
66
 
68
67
  const files = fs.readdirSync(templateDir)
69
68
 
69
+ // Mapping for specific file renames
70
+ const renameMap = {
71
+ "npmrc.npmrc": ".npmrc",
72
+ "gitignore.gitignore": ".gitignore",
73
+ "gitignore": ".gitignore" // Kept your original logic for safety
74
+ }
75
+
70
76
  for (const file of files) {
71
77
  const srcPath = path.join(templateDir, file)
72
- const destFileName = file === "gitignore" ? ".gitignore" : file
78
+ const destFileName = renameMap[file] || file
73
79
  const destPath = path.join(targetDir, destFileName)
74
80
 
75
81
  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.3",
3
+ "version": "1.0.5",
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
@@ -1,3 +1,4 @@
1
+ /* eslint-disable capitalized-comments */
1
2
  /**
2
3
  * {{projectName}}
3
4
  * {{author}}
@@ -5,6 +6,8 @@
5
6
  * EGPSL10X-1.0 LICENCED
6
7
  */
7
8
 
9
+ /* eslint-enable capitalized-comments */
10
+
8
11
  /**********************************************************************/
9
12
  // Begin performance optimizations.
10
13
 
@@ -27,4 +30,4 @@ use(none) // Use both the unused variables use and none.
27
30
  // End performance optimizations.
28
31
  /**********************************************************************/
29
32
 
30
- // Note to 10x developer: Your code will go here
33
+ // Note to 10x developer: Your code will go here
@@ -0,0 +1 @@
1
+ legacy-peer-deps=true