@wondev/dotenv-example 1.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.
Files changed (34) hide show
  1. package/.claude/README.md +60 -0
  2. package/.claude/commands/business_logic.md +143 -0
  3. package/.claude/commands/generate-prd.md +175 -0
  4. package/.claude/commands/gotobackend.md +569 -0
  5. package/.claude/commands/playwrightMCP_install.md +113 -0
  6. package/.claude/commands/setting_dev.md +731 -0
  7. package/.claude/commands/tech-lead.md +404 -0
  8. package/.claude/commands/user-flow.md +839 -0
  9. package/.claude/settings.local.json +9 -0
  10. package/.cursor/README.md +10 -0
  11. package/.cursor/mcp.json +31 -0
  12. package/.cursor/rules/common/cursor-rules.mdc +53 -0
  13. package/.cursor/rules/common/git-convention.mdc +86 -0
  14. package/.cursor/rules/common/self-improve.mdc +72 -0
  15. package/.cursor/rules/common/tdd.mdc +81 -0
  16. package/.cursor/rules/common/vibe-coding.mdc +114 -0
  17. package/.cursor/rules/supabase/supabase-bootstrap-auth.mdc +236 -0
  18. package/.cursor/rules/supabase/supabase-create-db-functions.mdc +136 -0
  19. package/.cursor/rules/supabase/supabase-create-migration.mdc +50 -0
  20. package/.cursor/rules/supabase/supabase-create-rls-policies.mdc +248 -0
  21. package/.cursor/rules/supabase/supabase-declarative-database-schema.mdc +78 -0
  22. package/.cursor/rules/supabase/supabase-postgres-sql-style-guide.mdc +133 -0
  23. package/.cursor/rules/supabase/supabase-writing-edge-functions.mdc +105 -0
  24. package/.cursor/rules/web/design-rules.mdc +381 -0
  25. package/.cursor/rules/web/nextjs-convention.mdc +237 -0
  26. package/.cursor/rules/web/playwright-test-guide.mdc +176 -0
  27. package/.cursor/rules/web/toss-frontend.mdc +695 -0
  28. package/.env +4 -0
  29. package/CLAUDE.md +40 -0
  30. package/README.md +7 -0
  31. package/bin/index.js +66 -0
  32. package/package.json +32 -0
  33. package/prompts/20250926_175606.md +3 -0
  34. package/prompts/20250926_180205.md +148 -0
package/CLAUDE.md ADDED
@@ -0,0 +1,40 @@
1
+ <rules>
2
+ The following rules should be considered foundational. Make sure you're familiar with them before working on this project:
3
+ @.cursor/rules/common/cursor-rules.mdc
4
+ @.cursor/rules/common/self-improve.mdc
5
+ @.cursor/rules/common/vibe-coding.mdc
6
+
7
+ Git convention defining branch naming, commit message format, and issue labeling based on GitFlow and Conventional Commits.:
8
+ @.cursor/rules/common/git-convention.mdc
9
+
10
+ Guidelines for writing tests and implementing code following TDD and Tidy First principles.:
11
+ @.cursor/rules/common/tdd.mdc
12
+
13
+ Guidelines for writing Next.js apps with Supabase Auth:
14
+ @.cursor/rules/supabase/supabase-bootstrap-auth.mdc
15
+
16
+ Guidelines for writing Supabase database functions:
17
+ @.cursor/rules/supabase/supabase-create-db-functions.mdc
18
+
19
+ Guidelines for writing Postgres migrations:
20
+ @.cursor/rules/supabase/supabase-create-migration.mdc
21
+
22
+ Guidelines for writing Postgres Row Level Security policies:
23
+ @.cursor/rules/supabase/supabase-create-rls-policies.mdc
24
+
25
+ For when modifying the Supabase database schema.:
26
+ @.cursor/rules/supabase/supabase-declarative-database-schema.mdc
27
+
28
+ Guidelines for writing Postgres SQL:
29
+ @.cursor/rules/supabase/supabase-postgres-sql-style-guide.mdc
30
+
31
+ Coding rules for Supabase Edge Functions:
32
+ @.cursor/rules/supabase/supabase-writing-edge-functions.mdc
33
+
34
+ Playwright 테스트 작성 가이드:
35
+ @.cursor/rules/web/playwright-test-guide.mdc
36
+
37
+ When working with files that match the following extensions (.js, .jsx, .ts, .tsx), review and apply the relevant rules:
38
+ @.cursor/rules/web/nextjs-convention.mdc
39
+ @.cursor/rules/web/toss-frontend.mdc
40
+ </rules>
package/README.md ADDED
@@ -0,0 +1,7 @@
1
+ .env를 읽어서 .env.example을 아래 형태로 만들어주는 npm 패키지를 만들려고해
2
+ 이름 추천해줘
3
+
4
+ NOTION_DATABASE_ID="your_notion_database_id"
5
+ NOTION_API_KEY="your_notion_api_key"
6
+
7
+ GEMINI_API_KEY="your_gemini_api_key"
package/bin/index.js ADDED
@@ -0,0 +1,66 @@
1
+ #!/usr/bin/env node
2
+
3
+ const fs = require('fs');
4
+ const path = require('path');
5
+
6
+ function generateEnvExample() {
7
+ const envPath = path.join(process.cwd(), '.env');
8
+ const examplePath = path.join(process.cwd(), '.env.example');
9
+
10
+ try {
11
+ // .env 파일 확인
12
+ if (!fs.existsSync(envPath)) {
13
+ console.error('Error: .env file not found in current directory');
14
+ process.exit(1);
15
+ }
16
+
17
+ // .env 파일 읽기
18
+ const envContent = fs.readFileSync(envPath, 'utf-8');
19
+
20
+ // 각 라인 처리
21
+ const exampleContent = envContent
22
+ .split('\n')
23
+ .map(line => {
24
+ // 빈 줄이나 주석은 그대로 유지
25
+ if (!line.trim() || line.trim().startsWith('#')) {
26
+ return line;
27
+ }
28
+
29
+ // KEY=VALUE 형식 파싱
30
+ const match = line.match(/^([^=]+)=(.*)$/);
31
+ if (match) {
32
+ const key = match[1].trim();
33
+ const value = match[2].trim();
34
+
35
+ // 따옴표 제거
36
+ const cleanValue = value.replace(/^["']|["']$/g, '');
37
+
38
+ // 키 이름을 기반으로 example 값 생성
39
+ let exampleValue = 'your_' + key.toLowerCase().replace(/_/g, '_');
40
+
41
+ // 원래 값이 따옴표로 둘러싸여 있었다면 example 값도 따옴표로 감싸기
42
+ if (value.startsWith('"') && value.endsWith('"')) {
43
+ exampleValue = `"${exampleValue}"`;
44
+ } else if (value.startsWith("'") && value.endsWith("'")) {
45
+ exampleValue = `'${exampleValue}'`;
46
+ }
47
+
48
+ return `${key}=${exampleValue}`;
49
+ }
50
+
51
+ return line;
52
+ })
53
+ .join('\n');
54
+
55
+ // .env.example 파일 생성
56
+ fs.writeFileSync(examplePath, exampleContent);
57
+ console.log('✅ Successfully created .env.example');
58
+
59
+ } catch (error) {
60
+ console.error('Error:', error.message);
61
+ process.exit(1);
62
+ }
63
+ }
64
+
65
+ // 실행
66
+ generateEnvExample();
package/package.json ADDED
@@ -0,0 +1,32 @@
1
+ {
2
+ "name": "@wondev/dotenv-example",
3
+ "version": "1.0.0",
4
+ "description": "Generate .env.example from .env files with masked values",
5
+ "main": "index.js",
6
+ "bin": {
7
+ "dotexample": "./bin/index.js"
8
+ },
9
+ "scripts": {
10
+ "test": "echo \"Error: no test specified\" && exit 1"
11
+ },
12
+ "keywords": [
13
+ "env",
14
+ "dotenv",
15
+ "example",
16
+ "environment",
17
+ "config"
18
+ ],
19
+ "author": "Aiden Ahn",
20
+ "license": "MIT",
21
+ "engines": {
22
+ "node": ">=14.0.0"
23
+ },
24
+ "repository": {
25
+ "type": "git",
26
+ "url": "git+https://github.com/seungwonme/dotexample.git"
27
+ },
28
+ "homepage": "https://github.com/seungwonme/dotexample#readme",
29
+ "bugs": {
30
+ "url": "https://github.com/seungwonme/dotexample/issues"
31
+ }
32
+ }
@@ -0,0 +1,3 @@
1
+ seungwonan
2
+
3
+ 현재 프로젝트 npm 레지스트리에 저장하고 싶어
@@ -0,0 +1,148 @@
1
+ seungwonan
2
+
3
+ 0 verbose cli /Users/seungwonan/.local/share/fnm/node-versions/v23.11.1/installation/bin/node /opt/homebrew/bin/npm
4
+ 1 info using npm@11.6.0
5
+ 2 info using node@v23.11.1
6
+ 3 silly config load:file:/opt/homebrew/lib/node_modules/npm/npmrc
7
+ 4 silly config load:file:/Users/seungwonan/Dev/2-area/vibe-tools/dotexample/.npmrc
8
+ 5 silly config load:file:/Users/seungwonan/.npmrc
9
+ 6 silly config load:file:/opt/homebrew/etc/npmrc
10
+ 7 verbose title npm publish
11
+ 8 verbose argv "publish"
12
+ 9 verbose logfile logs-max:10 dir:/Users/seungwonan/.npm/_logs/2025-09-26T09_01_14_719Z-
13
+ 10 verbose logfile /Users/seungwonan/.npm/_logs/2025-09-26T09_01_14_719Z-debug-0.log
14
+ 11 silly logfile start cleaning logs, removing 1 files
15
+ 12 verbose publish [ '.' ]
16
+ 13 silly logfile done cleaning log files
17
+ 14 silly packumentCache heap:4345298944 maxSize:1086324736 maxEntrySize:543162368
18
+ 15 warn publish npm auto-corrected some errors in your package.json when publishing. Please run "npm pkg fix" to address these errors.
19
+ 16 warn publish errors corrected:
20
+ 16 warn publish "bin[dotexample]" script name was cleaned
21
+ 17 notice
22
+ 18 notice 📦 @wondev/dotenv-example@1.0.0
23
+ 19 notice Tarball Contents
24
+ 20 notice 5.2kB .claude/commands/business_logic.md
25
+ 20 notice 4.7kB .claude/commands/generate-prd.md
26
+ 20 notice 15.9kB .claude/commands/gotobackend.md
27
+ 20 notice 3.1kB .claude/commands/playwrightMCP_install.md
28
+ 20 notice 20.7kB .claude/commands/setting_dev.md
29
+ 20 notice 16.9kB .claude/commands/tech-lead.md
30
+ 20 notice 30.4kB .claude/commands/user-flow.md
31
+ 20 notice 2.3kB .claude/README.md
32
+ 20 notice 108B .claude/settings.local.json
33
+ 20 notice 769B .cursor/mcp.json
34
+ 20 notice 233B .cursor/README.md
35
+ 20 notice 1.6kB .cursor/rules/common/cursor-rules.mdc
36
+ 20 notice 3.4kB .cursor/rules/common/git-convention.mdc
37
+ 20 notice 2.4kB .cursor/rules/common/self-improve.mdc
38
+ 20 notice 3.5kB .cursor/rules/common/tdd.mdc
39
+ 20 notice 11.4kB .cursor/rules/common/vibe-coding.mdc
40
+ 20 notice 7.1kB .cursor/rules/supabase/supabase-bootstrap-auth.mdc
41
+ 20 notice 3.6kB .cursor/rules/supabase/supabase-create-db-functions.mdc
42
+ 20 notice 2.3kB .cursor/rules/supabase/supabase-create-migration.mdc
43
+ 20 notice 8.4kB .cursor/rules/supabase/supabase-create-rls-policies.mdc
44
+ 20 notice 2.9kB .cursor/rules/supabase/supabase-declarative-database-schema.mdc
45
+ 20 notice 3.7kB .cursor/rules/supabase/supabase-postgres-sql-style-guide.mdc
46
+ 20 notice 4.1kB .cursor/rules/supabase/supabase-writing-edge-functions.mdc
47
+ 20 notice 12.9kB .cursor/rules/web/design-rules.mdc
48
+ 20 notice 7.7kB .cursor/rules/web/nextjs-convention.mdc
49
+ 20 notice 4.3kB .cursor/rules/web/playwright-test-guide.mdc
50
+ 20 notice 18.8kB .cursor/rules/web/toss-frontend.mdc
51
+ 20 notice 106B .env
52
+ 20 notice 1.6kB CLAUDE.md
53
+ 20 notice 241B README.md
54
+ 20 notice 1.9kB bin/index.js
55
+ 20 notice 717B package.json
56
+ 20 notice 75B prompts/20250926_175606.md
57
+ 21 notice Tarball Details
58
+ 22 notice name: @wondev/dotenv-example
59
+ 23 notice version: 1.0.0
60
+ 24 notice filename: wondev-dotenv-example-1.0.0.tgz
61
+ 25 notice package size: 69.6 kB
62
+ 26 notice unpacked size: 202.9 kB
63
+ 27 notice shasum: 1d2078a8f7767b769d6b42daac2fd1c35738c4ff
64
+ 28 notice integrity: sha512-f63Mu32aSNisd[...]c/BBSRtIZ6ngw==
65
+ 29 notice total files: 33
66
+ 30 notice
67
+ 31 http fetch GET 404 https://registry.npmjs.org/@wondev%2fdotenv-example 198ms (cache skip)
68
+ 32 http fetch GET 404 https://registry.npmjs.org/@wondev%2fdotenv-example 29ms (cache skip)
69
+ 33 notice Publishing to https://registry.npmjs.org/ with tag latest and default access
70
+ 34 http fetch PUT 402 https://registry.npmjs.org/@wondev%2fdotenv-example 1256ms
71
+ 35 verbose stack HttpErrorGeneral: 402 Payment Required - PUT https://registry.npmjs.org/@wondev%2fdotenv-example - You must sign up for private packages
72
+ 35 verbose stack at /opt/homebrew/lib/node_modules/npm/node_modules/npm-registry-fetch/lib/check-response.js:103:15
73
+ 35 verbose stack at process.processTicksAndRejections (node:internal/process/task_queues:105:5)
74
+ 35 verbose stack at async publish (/opt/homebrew/lib/node_modules/npm/node_modules/libnpmpublish/lib/publish.js:53:15)
75
+ 35 verbose stack at async otplease (/opt/homebrew/lib/node_modules/npm/lib/utils/auth.js:8:12)
76
+ 35 verbose stack at async #publish (/opt/homebrew/lib/node_modules/npm/lib/commands/publish.js:188:7)
77
+ 35 verbose stack at async Publish.exec (/opt/homebrew/lib/node_modules/npm/lib/commands/publish.js:47:5)
78
+ 35 verbose stack at async Npm.exec (/opt/homebrew/lib/node_modules/npm/lib/npm.js:208:9)
79
+ 35 verbose stack at async module.exports (/opt/homebrew/lib/node_modules/npm/lib/cli/entry.js:67:5)
80
+ 36 verbose statusCode 402
81
+ 37 verbose pkgid @wondev/dotenv-example@1.0.0
82
+ 38 error code E402
83
+ 39 error 402 Payment Required - PUT https://registry.npmjs.org/@wondev%2fdotenv-example - You must sign up for private packages
84
+ 40 verbose cwd /Users/seungwonan/Dev/2-area/vibe-tools/dotexample
85
+ 41 verbose os Darwin 24.6.0
86
+ 42 verbose node v23.11.1
87
+ 43 verbose npm v11.6.0
88
+ 44 verbose exit 1
89
+ 45 verbose code 1
90
+ 46 error A complete log of this run can be found in: /Users/seungwonan/.npm/_logs/2025-09-26T09_01_14_719Z-debug-0.log
91
+
92
+
93
+ npm publish
94
+ npm warn publish npm auto-corrected some errors in your package.json when publishing. Please run "npm pkg fix" to address these errors.
95
+ npm warn publish errors corrected:
96
+ npm warn publish "bin[dotexample]" script name was cleaned
97
+ npm notice
98
+ npm notice 📦 @wondev/dotenv-example@1.0.0
99
+ npm notice Tarball Contents
100
+ npm notice 5.2kB .claude/commands/business_logic.md
101
+ npm notice 4.7kB .claude/commands/generate-prd.md
102
+ npm notice 15.9kB .claude/commands/gotobackend.md
103
+ npm notice 3.1kB .claude/commands/playwrightMCP_install.md
104
+ npm notice 20.7kB .claude/commands/setting_dev.md
105
+ npm notice 16.9kB .claude/commands/tech-lead.md
106
+ npm notice 30.4kB .claude/commands/user-flow.md
107
+ npm notice 2.3kB .claude/README.md
108
+ npm notice 108B .claude/settings.local.json
109
+ npm notice 769B .cursor/mcp.json
110
+ npm notice 233B .cursor/README.md
111
+ npm notice 1.6kB .cursor/rules/common/cursor-rules.mdc
112
+ npm notice 3.4kB .cursor/rules/common/git-convention.mdc
113
+ npm notice 2.4kB .cursor/rules/common/self-improve.mdc
114
+ npm notice 3.5kB .cursor/rules/common/tdd.mdc
115
+ npm notice 11.4kB .cursor/rules/common/vibe-coding.mdc
116
+ npm notice 7.1kB .cursor/rules/supabase/supabase-bootstrap-auth.mdc
117
+ npm notice 3.6kB .cursor/rules/supabase/supabase-create-db-functions.mdc
118
+ npm notice 2.3kB .cursor/rules/supabase/supabase-create-migration.mdc
119
+ npm notice 8.4kB .cursor/rules/supabase/supabase-create-rls-policies.mdc
120
+ npm notice 2.9kB .cursor/rules/supabase/supabase-declarative-database-schema.mdc
121
+ npm notice 3.7kB .cursor/rules/supabase/supabase-postgres-sql-style-guide.mdc
122
+ npm notice 4.1kB .cursor/rules/supabase/supabase-writing-edge-functions.mdc
123
+ npm notice 12.9kB .cursor/rules/web/design-rules.mdc
124
+ npm notice 7.7kB .cursor/rules/web/nextjs-convention.mdc
125
+ npm notice 4.3kB .cursor/rules/web/playwright-test-guide.mdc
126
+ npm notice 18.8kB .cursor/rules/web/toss-frontend.mdc
127
+ npm notice 106B .env
128
+ npm notice 1.6kB CLAUDE.md
129
+ npm notice 241B README.md
130
+ npm notice 1.9kB bin/index.js
131
+ npm notice 717B package.json
132
+ npm notice 75B prompts/20250926_175606.md
133
+ npm notice Tarball Details
134
+ npm notice name: @wondev/dotenv-example
135
+ npm notice version: 1.0.0
136
+ npm notice filename: wondev-dotenv-example-1.0.0.tgz
137
+ npm notice package size: 69.6 kB
138
+ npm notice unpacked size: 202.9 kB
139
+ npm notice shasum: 1d2078a8f7767b769d6b42daac2fd1c35738c4ff
140
+ npm notice integrity: sha512-f63Mu32aSNisd[...]c/BBSRtIZ6ngw==
141
+ npm notice total files: 33
142
+ npm notice
143
+ npm notice Publishing to https://registry.npmjs.org/ with tag latest and default access
144
+ npm error code E402
145
+ npm error 402 Payment Required - PUT https://registry.npmjs.org/@wondev%2fdotenv-example - You must sign up for private packages
146
+ npm error A complete log of this run can be found in: /Users/seungwonan/.npm/_logs/2025-09-26T09_01_14_719Z-debug-0.log
147
+
148
+ 왜 에러나니?