@daawoonkim/create-arch-app 0.1.0 โ 0.2.1
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/.github/WORKFLOWS.md +255 -0
- package/.github/workflows/deploy-main.yml +101 -0
- package/.github/workflows/lint.yml +33 -0
- package/.github/workflows/publish.yml +82 -0
- package/.github/workflows/test.yml +52 -0
- package/CHANGELOG.ko.md +72 -0
- package/CHANGELOG.md +71 -0
- package/CONTRIBUTING.md +172 -0
- package/PUBLISHING.md +304 -0
- package/README.ko.md +302 -0
- package/README.md +151 -116
- package/create-arch-app_mvp_faa8b53b.plan.md +1 -1
- package/dist/generators/index.js +69 -9
- package/dist/generators/index.js.map +1 -1
- package/dist/generators/nextjs.d.ts.map +1 -1
- package/dist/generators/nextjs.js +107 -50
- package/dist/generators/nextjs.js.map +1 -1
- package/dist/generators/react.d.ts.map +1 -1
- package/dist/generators/react.js +23 -1
- package/dist/generators/react.js.map +1 -1
- package/dist/prompts/projectSetup.d.ts.map +1 -1
- package/dist/prompts/projectSetup.js +22 -0
- package/dist/prompts/projectSetup.js.map +1 -1
- package/dist/types.d.ts +4 -0
- package/dist/types.d.ts.map +1 -1
- package/dist/utils/apiGenerator.d.ts +4 -0
- package/dist/utils/apiGenerator.d.ts.map +1 -0
- package/dist/utils/apiGenerator.js +440 -0
- package/dist/utils/apiGenerator.js.map +1 -0
- package/dist/utils/dependencies.d.ts.map +1 -1
- package/dist/utils/dependencies.js +15 -0
- package/dist/utils/dependencies.js.map +1 -1
- package/package.json +1 -1
package/CONTRIBUTING.md
ADDED
|
@@ -0,0 +1,172 @@
|
|
|
1
|
+
# Contributing to create-arch-app
|
|
2
|
+
|
|
3
|
+
Thank you for your interest in contributing to create-arch-app! ๐
|
|
4
|
+
|
|
5
|
+
## ๐ Getting Started
|
|
6
|
+
|
|
7
|
+
### Prerequisites
|
|
8
|
+
- Node.js 18.0.0 or higher
|
|
9
|
+
- npm or yarn
|
|
10
|
+
- Git
|
|
11
|
+
|
|
12
|
+
### Setup Development Environment
|
|
13
|
+
|
|
14
|
+
```bash
|
|
15
|
+
# Clone the repository
|
|
16
|
+
git clone git@github.com:hec8897/create-arch-app.git
|
|
17
|
+
cd create-arch-app
|
|
18
|
+
|
|
19
|
+
# Install dependencies
|
|
20
|
+
npm install
|
|
21
|
+
|
|
22
|
+
# Build the project
|
|
23
|
+
npm run build
|
|
24
|
+
|
|
25
|
+
# Link for local testing
|
|
26
|
+
npm link
|
|
27
|
+
```
|
|
28
|
+
|
|
29
|
+
## ๐ Development Workflow
|
|
30
|
+
|
|
31
|
+
### 1. Create a Feature Branch
|
|
32
|
+
|
|
33
|
+
```bash
|
|
34
|
+
git checkout main
|
|
35
|
+
git pull origin main
|
|
36
|
+
git checkout -b feature/your-feature-name
|
|
37
|
+
```
|
|
38
|
+
|
|
39
|
+
### 2. Make Your Changes
|
|
40
|
+
|
|
41
|
+
- Write clear, concise commit messages
|
|
42
|
+
- Follow existing code style
|
|
43
|
+
- Add tests if applicable
|
|
44
|
+
- Update documentation
|
|
45
|
+
|
|
46
|
+
### 3. Test Your Changes
|
|
47
|
+
|
|
48
|
+
```bash
|
|
49
|
+
# Build
|
|
50
|
+
npm run build
|
|
51
|
+
|
|
52
|
+
# Test locally
|
|
53
|
+
cd ~/test-projects
|
|
54
|
+
create-arch-app test-app
|
|
55
|
+
|
|
56
|
+
# Verify the generated project
|
|
57
|
+
cd test-app
|
|
58
|
+
npm install
|
|
59
|
+
npm run dev
|
|
60
|
+
```
|
|
61
|
+
|
|
62
|
+
### 4. Commit Your Changes
|
|
63
|
+
|
|
64
|
+
```bash
|
|
65
|
+
git add .
|
|
66
|
+
git commit -m "feat: add new feature"
|
|
67
|
+
```
|
|
68
|
+
|
|
69
|
+
**Commit Message Format:**
|
|
70
|
+
- `feat:` - New feature
|
|
71
|
+
- `fix:` - Bug fix
|
|
72
|
+
- `docs:` - Documentation changes
|
|
73
|
+
- `style:` - Code style changes (formatting, etc.)
|
|
74
|
+
- `refactor:` - Code refactoring
|
|
75
|
+
- `test:` - Adding or updating tests
|
|
76
|
+
- `chore:` - Build process or auxiliary tool changes
|
|
77
|
+
|
|
78
|
+
### 5. Push and Create PR
|
|
79
|
+
|
|
80
|
+
```bash
|
|
81
|
+
git push origin feature/your-feature-name
|
|
82
|
+
```
|
|
83
|
+
|
|
84
|
+
Then create a Pull Request on GitHub.
|
|
85
|
+
|
|
86
|
+
## ๐ Code Guidelines
|
|
87
|
+
|
|
88
|
+
### TypeScript
|
|
89
|
+
- Use TypeScript for all new code
|
|
90
|
+
- Maintain type safety
|
|
91
|
+
- Use interfaces for public APIs
|
|
92
|
+
|
|
93
|
+
### File Structure
|
|
94
|
+
- Keep generators modular
|
|
95
|
+
- Separate concerns (prompts, generators, utils)
|
|
96
|
+
- Use meaningful file and function names
|
|
97
|
+
|
|
98
|
+
### Testing
|
|
99
|
+
- Test major features manually
|
|
100
|
+
- Verify all architecture patterns work
|
|
101
|
+
- Check both React and Next.js outputs
|
|
102
|
+
|
|
103
|
+
## ๐ Bug Reports
|
|
104
|
+
|
|
105
|
+
When reporting bugs, please include:
|
|
106
|
+
- Steps to reproduce
|
|
107
|
+
- Expected behavior
|
|
108
|
+
- Actual behavior
|
|
109
|
+
- Your environment (OS, Node version)
|
|
110
|
+
- CLI options used
|
|
111
|
+
|
|
112
|
+
## ๐ก Feature Requests
|
|
113
|
+
|
|
114
|
+
We welcome feature requests! Please:
|
|
115
|
+
- Check if it already exists in issues
|
|
116
|
+
- Describe the use case
|
|
117
|
+
- Explain why it would be useful
|
|
118
|
+
- Consider backward compatibility
|
|
119
|
+
|
|
120
|
+
## ๐ฆ Adding New Features
|
|
121
|
+
|
|
122
|
+
### Adding a New Architecture Pattern
|
|
123
|
+
|
|
124
|
+
1. Update `src/types.ts` with new architecture type
|
|
125
|
+
2. Add prompt option in `src/prompts/projectSetup.ts`
|
|
126
|
+
3. Create generator logic in `src/generators/`
|
|
127
|
+
4. Test with both React and Next.js
|
|
128
|
+
5. Update README.md and documentation
|
|
129
|
+
|
|
130
|
+
### Adding a New Library Option
|
|
131
|
+
|
|
132
|
+
1. Update types in `src/types.ts`
|
|
133
|
+
2. Add prompt in `src/prompts/projectSetup.ts`
|
|
134
|
+
3. Update `src/utils/dependencies.ts`
|
|
135
|
+
4. Update generators to include the library
|
|
136
|
+
5. Test integration
|
|
137
|
+
6. Update documentation
|
|
138
|
+
|
|
139
|
+
## โ
Pull Request Checklist
|
|
140
|
+
|
|
141
|
+
Before submitting a PR, ensure:
|
|
142
|
+
|
|
143
|
+
- [ ] Code builds successfully (`npm run build`)
|
|
144
|
+
- [ ] Tested manually with at least 2 architecture patterns
|
|
145
|
+
- [ ] Updated README.md if needed
|
|
146
|
+
- [ ] Updated CHANGELOG.md
|
|
147
|
+
- [ ] Commit messages follow convention
|
|
148
|
+
- [ ] No console.logs in production code
|
|
149
|
+
- [ ] TypeScript types are correct
|
|
150
|
+
|
|
151
|
+
## ๐ฏ Priority Areas
|
|
152
|
+
|
|
153
|
+
We're especially interested in contributions for:
|
|
154
|
+
- Additional architecture patterns
|
|
155
|
+
- More library integrations
|
|
156
|
+
- Improved error handling
|
|
157
|
+
- Better testing coverage
|
|
158
|
+
- Documentation improvements
|
|
159
|
+
|
|
160
|
+
## ๐ Questions?
|
|
161
|
+
|
|
162
|
+
- Open an issue for discussion
|
|
163
|
+
- Check existing issues and PRs
|
|
164
|
+
- Review documentation
|
|
165
|
+
|
|
166
|
+
## ๐ License
|
|
167
|
+
|
|
168
|
+
By contributing, you agree that your contributions will be licensed under the MIT License.
|
|
169
|
+
|
|
170
|
+
---
|
|
171
|
+
|
|
172
|
+
Thank you for contributing! ๐
|
package/PUBLISHING.md
ADDED
|
@@ -0,0 +1,304 @@
|
|
|
1
|
+
# npm ๋ฐฐํฌ ๊ฐ์ด๋
|
|
2
|
+
|
|
3
|
+
์ด ๋ฌธ์๋ `@daawoonkim/create-arch-app` ํจํค์ง๋ฅผ npm์ ๋ฐฐํฌํ๋ ๋ฐฉ๋ฒ์ ์ค๋ช
ํฉ๋๋ค.
|
|
4
|
+
|
|
5
|
+
## ๐ ์ฌ์ ์๊ตฌ์ฌํญ
|
|
6
|
+
|
|
7
|
+
- npm ๊ณ์ (https://www.npmjs.com/)
|
|
8
|
+
- npm CLI ๋ก๊ทธ์ธ
|
|
9
|
+
- ํ๋ก์ ํธ ๋น๋ ์๋ฃ
|
|
10
|
+
|
|
11
|
+
## ๐ 1. npm ์ธ์ฆ ์ค์
|
|
12
|
+
|
|
13
|
+
### ๋ฐฉ๋ฒ 1: Automation Token ์ฌ์ฉ (๊ถ์ฅ)
|
|
14
|
+
|
|
15
|
+
**npm ์น์ฌ์ดํธ์์ ํ ํฐ ์์ฑ:**
|
|
16
|
+
|
|
17
|
+
1. https://www.npmjs.com/settings/daawoonkim/tokens ์ ์
|
|
18
|
+
2. "Generate New Token" ํด๋ฆญ
|
|
19
|
+
3. **Token Type: "Automation"** ์ ํ (์ค์!)
|
|
20
|
+
4. ์ค๋ช
์
๋ ฅ (์: "create-arch-app deployment")
|
|
21
|
+
5. "Generate Token" ํด๋ฆญ
|
|
22
|
+
6. ํ ํฐ ๋ณต์ฌ (ํ ๋ฒ๋ง ํ์๋จ!)
|
|
23
|
+
|
|
24
|
+
**๋ก์ปฌ์ ํ ํฐ ์ค์ :**
|
|
25
|
+
|
|
26
|
+
```bash
|
|
27
|
+
# .npmrc ํ์ผ์ ํ ํฐ ์ถ๊ฐ
|
|
28
|
+
echo "//registry.npmjs.org/:_authToken=YOUR_TOKEN_HERE" > ~/.npmrc
|
|
29
|
+
|
|
30
|
+
# ๊ถํ ์ค์
|
|
31
|
+
chmod 600 ~/.npmrc
|
|
32
|
+
```
|
|
33
|
+
|
|
34
|
+
`YOUR_TOKEN_HERE`๋ฅผ ์์ฑํ ํ ํฐ์ผ๋ก ๊ต์ฒดํ์ธ์.
|
|
35
|
+
|
|
36
|
+
### ๋ฐฉ๋ฒ 2: ๋ธ๋ผ์ฐ์ ๋ก๊ทธ์ธ
|
|
37
|
+
|
|
38
|
+
```bash
|
|
39
|
+
npm login
|
|
40
|
+
```
|
|
41
|
+
|
|
42
|
+
๋ธ๋ผ์ฐ์ ๊ฐ ์ด๋ฆฌ๋ฉด ๋ก๊ทธ์ธํ๊ณ ์ธ์ฆ์ ์๋ฃํ์ธ์.
|
|
43
|
+
|
|
44
|
+
### ๋ฐฉ๋ฒ 3: OTP ์ฌ์ฉ
|
|
45
|
+
|
|
46
|
+
```bash
|
|
47
|
+
# ๋ก๊ทธ์ธ
|
|
48
|
+
npm login
|
|
49
|
+
|
|
50
|
+
# ๋ฐฐํฌ ์ OTP ์ฝ๋ ํฌํจ
|
|
51
|
+
npm publish --access public --otp=123456
|
|
52
|
+
```
|
|
53
|
+
|
|
54
|
+
์ธ์ฆ ์ฑ์์ 6์๋ฆฌ ์ฝ๋๋ฅผ ๋ฐ์ ์ฌ์ฉํ์ธ์.
|
|
55
|
+
|
|
56
|
+
## ๐ฆ 2. ๋ฐฐํฌ ์ ์ฒดํฌ๋ฆฌ์คํธ
|
|
57
|
+
|
|
58
|
+
### ๋ฒ์ ํ์ธ ๋ฐ ์
๋ฐ์ดํธ
|
|
59
|
+
|
|
60
|
+
```bash
|
|
61
|
+
# ํ์ฌ ๋ฒ์ ํ์ธ
|
|
62
|
+
npm version
|
|
63
|
+
|
|
64
|
+
# ๋ฒ์ ์
๋ฐ์ดํธ (์๋์ผ๋ก git tag ์์ฑ)
|
|
65
|
+
npm version patch # 0.1.0 -> 0.1.1 (๋ฒ๊ทธ ์์ )
|
|
66
|
+
npm version minor # 0.1.0 -> 0.2.0 (์ ๊ธฐ๋ฅ)
|
|
67
|
+
npm version major # 0.1.0 -> 1.0.0 (ํฐ ๋ณ๊ฒฝ)
|
|
68
|
+
```
|
|
69
|
+
|
|
70
|
+
### ๋น๋ ํ์ธ
|
|
71
|
+
|
|
72
|
+
```bash
|
|
73
|
+
# TypeScript ์ปดํ์ผ
|
|
74
|
+
npm run build
|
|
75
|
+
|
|
76
|
+
# dist ํด๋ ํ์ธ
|
|
77
|
+
ls -la dist/
|
|
78
|
+
```
|
|
79
|
+
|
|
80
|
+
### ํ
์คํธ ์คํ
|
|
81
|
+
|
|
82
|
+
```bash
|
|
83
|
+
# ๋ก์ปฌ์์ CLI ํ
์คํธ
|
|
84
|
+
npm link
|
|
85
|
+
create-arch-app test-project
|
|
86
|
+
|
|
87
|
+
# ๋งํฌ ํด์
|
|
88
|
+
npm unlink -g create-arch-app
|
|
89
|
+
```
|
|
90
|
+
|
|
91
|
+
### package.json ํ์ธ
|
|
92
|
+
|
|
93
|
+
ํ์ ํ๋ ํ์ธ:
|
|
94
|
+
- โ
`name`: `@daawoonkim/create-arch-app`
|
|
95
|
+
- โ
`version`: ์
๋ฐ์ดํธ๋ ๋ฒ์
|
|
96
|
+
- โ
`description`: ํจํค์ง ์ค๋ช
|
|
97
|
+
- โ
`keywords`: ๊ฒ์ ํค์๋
|
|
98
|
+
- โ
`repository`: GitHub ๋งํฌ
|
|
99
|
+
- โ
`license`: MIT
|
|
100
|
+
- โ
`bin`: CLI ์ง์
์
|
|
101
|
+
|
|
102
|
+
### .npmignore ํ์ธ
|
|
103
|
+
|
|
104
|
+
๋ฐฐํฌ์์ ์ ์ธํ ํ์ผ ํ์ธ:
|
|
105
|
+
```
|
|
106
|
+
src/
|
|
107
|
+
*.plan.md
|
|
108
|
+
tsconfig.json
|
|
109
|
+
.git/
|
|
110
|
+
.github/
|
|
111
|
+
test-output/
|
|
112
|
+
```
|
|
113
|
+
|
|
114
|
+
## ๐ 3. ๋ฐฐํฌ ์คํ
|
|
115
|
+
|
|
116
|
+
### ๋ฐฐํฌ ๋ช
๋ น์ด
|
|
117
|
+
|
|
118
|
+
```bash
|
|
119
|
+
npm publish --access public
|
|
120
|
+
```
|
|
121
|
+
|
|
122
|
+
### ๋ฐฐํฌ ํ์ธ
|
|
123
|
+
|
|
124
|
+
```bash
|
|
125
|
+
# npm์์ ํจํค์ง ์ ๋ณด ํ์ธ
|
|
126
|
+
npm info @daawoonkim/create-arch-app
|
|
127
|
+
|
|
128
|
+
# ์ค์น ํ
์คํธ
|
|
129
|
+
npx @daawoonkim/create-arch-app test-app
|
|
130
|
+
```
|
|
131
|
+
|
|
132
|
+
## ๐ท๏ธ 4. Git ํ๊ทธ ๋ฐ ๋ฆด๋ฆฌ์ฆ
|
|
133
|
+
|
|
134
|
+
### Git ํ๊ทธ ์์ฑ
|
|
135
|
+
|
|
136
|
+
```bash
|
|
137
|
+
# ํ๊ทธ ์์ฑ (npm version์ด ์๋ ์์ฑํ์ง๋ง, ์๋์ผ๋ก๋ ๊ฐ๋ฅ)
|
|
138
|
+
git tag v0.1.1
|
|
139
|
+
|
|
140
|
+
# ํ๊ทธ ํธ์
|
|
141
|
+
git push --tags
|
|
142
|
+
```
|
|
143
|
+
|
|
144
|
+
### GitHub ๋ฆด๋ฆฌ์ฆ ์์ฑ
|
|
145
|
+
|
|
146
|
+
1. https://github.com/hec8897/create-arch-app/releases ์ ์
|
|
147
|
+
2. "Create a new release" ํด๋ฆญ
|
|
148
|
+
3. ํ๊ทธ ์ ํ (v0.1.1)
|
|
149
|
+
4. ๋ฆด๋ฆฌ์ฆ ๋
ธํธ ์์ฑ:
|
|
150
|
+
|
|
151
|
+
```markdown
|
|
152
|
+
## v0.1.1
|
|
153
|
+
|
|
154
|
+
### ๐ Bug Fixes
|
|
155
|
+
- ๋ฒ๊ทธ ์์ ๋ด์ฉ
|
|
156
|
+
|
|
157
|
+
### โจ Features
|
|
158
|
+
- ์๋ก์ด ๊ธฐ๋ฅ
|
|
159
|
+
|
|
160
|
+
### ๐ Documentation
|
|
161
|
+
- ๋ฌธ์ ์
๋ฐ์ดํธ
|
|
162
|
+
```
|
|
163
|
+
|
|
164
|
+
5. "Publish release" ํด๋ฆญ
|
|
165
|
+
|
|
166
|
+
## ๐ 5. ์ ์ฒด ๋ฐฐํฌ ์ํฌํ๋ก์ฐ
|
|
167
|
+
|
|
168
|
+
```bash
|
|
169
|
+
# 1. ๋ณ๊ฒฝ์ฌํญ ์ปค๋ฐ
|
|
170
|
+
git add .
|
|
171
|
+
git commit -m "feat: add new feature"
|
|
172
|
+
|
|
173
|
+
# 2. ๋ฒ์ ์
๋ฐ์ดํธ (์๋์ผ๋ก tag ์์ฑ)
|
|
174
|
+
npm version patch
|
|
175
|
+
|
|
176
|
+
# 3. ๋น๋
|
|
177
|
+
npm run build
|
|
178
|
+
|
|
179
|
+
# 4. ๋ฐฐํฌ
|
|
180
|
+
npm publish --access public
|
|
181
|
+
|
|
182
|
+
# 5. Git ํธ์ (ํ๊ทธ ํฌํจ)
|
|
183
|
+
git push origin main --tags
|
|
184
|
+
```
|
|
185
|
+
|
|
186
|
+
## โ ๏ธ 6. ๋ฌธ์ ํด๊ฒฐ
|
|
187
|
+
|
|
188
|
+
### 2FA ์๋ฌ
|
|
189
|
+
|
|
190
|
+
```
|
|
191
|
+
npm ERR! 403 Two-factor authentication required
|
|
192
|
+
```
|
|
193
|
+
|
|
194
|
+
**ํด๊ฒฐ์ฑ
:**
|
|
195
|
+
- OTP ์ฝ๋ ์ฌ์ฉ: `npm publish --access public --otp=123456`
|
|
196
|
+
- ๋๋ Automation Token ์ฌ์ฉ (์ 1๋จ๊ณ ์ฐธ์กฐ)
|
|
197
|
+
|
|
198
|
+
### ์ธ์ฆ ์๋ฌ
|
|
199
|
+
|
|
200
|
+
```
|
|
201
|
+
npm ERR! 401 Unauthorized
|
|
202
|
+
```
|
|
203
|
+
|
|
204
|
+
**ํด๊ฒฐ์ฑ
:**
|
|
205
|
+
```bash
|
|
206
|
+
npm logout
|
|
207
|
+
npm login
|
|
208
|
+
```
|
|
209
|
+
|
|
210
|
+
### ๋ฒ์ ์ถฉ๋
|
|
211
|
+
|
|
212
|
+
```
|
|
213
|
+
npm ERR! 403 cannot publish over existing version
|
|
214
|
+
```
|
|
215
|
+
|
|
216
|
+
**ํด๊ฒฐ์ฑ
:**
|
|
217
|
+
```bash
|
|
218
|
+
# ๋ฒ์ ์
๋ฐ์ดํธ
|
|
219
|
+
npm version patch
|
|
220
|
+
npm publish --access public
|
|
221
|
+
```
|
|
222
|
+
|
|
223
|
+
## ๐ 7. ๋ฐฐํฌ ํ ํ์ธ
|
|
224
|
+
|
|
225
|
+
### npm ํจํค์ง ํ์ด์ง
|
|
226
|
+
https://www.npmjs.com/package/@daawoonkim/create-arch-app
|
|
227
|
+
|
|
228
|
+
### ๋ค์ด๋ก๋ ํต๊ณ
|
|
229
|
+
```bash
|
|
230
|
+
npm info @daawoonkim/create-arch-app
|
|
231
|
+
```
|
|
232
|
+
|
|
233
|
+
### ์ฌ์ฉ์ ํ
์คํธ
|
|
234
|
+
```bash
|
|
235
|
+
# ๋ค๋ฅธ ๋๋ ํ ๋ฆฌ์์
|
|
236
|
+
cd ~/test-npm-package
|
|
237
|
+
npx @daawoonkim/create-arch-app my-test-app
|
|
238
|
+
```
|
|
239
|
+
|
|
240
|
+
## ๐ 8. ๋ณด์
|
|
241
|
+
|
|
242
|
+
### .npmrc ํ์ผ ๋ณดํธ
|
|
243
|
+
|
|
244
|
+
```bash
|
|
245
|
+
# ์ ๋๋ก Git์ ์ปค๋ฐํ์ง ๋ง์ธ์!
|
|
246
|
+
echo ".npmrc" >> .gitignore
|
|
247
|
+
|
|
248
|
+
# ํ์ผ ๊ถํ ์ค์
|
|
249
|
+
chmod 600 ~/.npmrc
|
|
250
|
+
```
|
|
251
|
+
|
|
252
|
+
### ํ ํฐ ๊ฐฑ์
|
|
253
|
+
|
|
254
|
+
Automation Token์ ๋ง๋ฃ๋์ง ์์ง๋ง, ์ ๊ธฐ์ ์ผ๋ก ๊ฐฑ์ ํ๋ ๊ฒ์ด ์ข์ต๋๋ค:
|
|
255
|
+
1. npm ์น์ฌ์ดํธ์์ ๊ธฐ์กด ํ ํฐ ์ญ์
|
|
256
|
+
2. ์ ํ ํฐ ์์ฑ
|
|
257
|
+
3. ~/.npmrc ํ์ผ ์
๋ฐ์ดํธ
|
|
258
|
+
|
|
259
|
+
## ๐ 9. ๋ฒ์ ๊ด๋ฆฌ ์ ๋ต
|
|
260
|
+
|
|
261
|
+
### Semantic Versioning
|
|
262
|
+
|
|
263
|
+
- **MAJOR** (1.0.0): ํธํ๋์ง ์๋ API ๋ณ๊ฒฝ
|
|
264
|
+
- **MINOR** (0.1.0): ํ์ ํธํ๋๋ ์ ๊ธฐ๋ฅ
|
|
265
|
+
- **PATCH** (0.0.1): ํ์ ํธํ๋๋ ๋ฒ๊ทธ ์์
|
|
266
|
+
|
|
267
|
+
### ๋ฒ์ ์
๋ฐ์ดํธ ๊ฐ์ด๋
|
|
268
|
+
|
|
269
|
+
```bash
|
|
270
|
+
# ๋ฒ๊ทธ ์์
|
|
271
|
+
npm version patch
|
|
272
|
+
|
|
273
|
+
# ์ ๊ธฐ๋ฅ ์ถ๊ฐ (ํ์ ํธํ)
|
|
274
|
+
npm version minor
|
|
275
|
+
|
|
276
|
+
# ํฐ ๋ณ๊ฒฝ (Breaking Changes)
|
|
277
|
+
npm version major
|
|
278
|
+
|
|
279
|
+
# ๋ฒ ํ ๋ฒ์
|
|
280
|
+
npm version prerelease --preid=beta
|
|
281
|
+
```
|
|
282
|
+
|
|
283
|
+
## ๐ฏ 10. ์ฒดํฌ๋ฆฌ์คํธ
|
|
284
|
+
|
|
285
|
+
๋ฐฐํฌ ์ ํ์ธ์ฌํญ:
|
|
286
|
+
|
|
287
|
+
- [ ] ์ฝ๋ ๋ณ๊ฒฝ์ฌํญ ์ปค๋ฐ ์๋ฃ
|
|
288
|
+
- [ ] ํ
์คํธ ํต๊ณผ
|
|
289
|
+
- [ ] ๋ฒ์ ์
๋ฐ์ดํธ (`npm version`)
|
|
290
|
+
- [ ] CHANGELOG ์
๋ฐ์ดํธ
|
|
291
|
+
- [ ] README ์
๋ฐ์ดํธ
|
|
292
|
+
- [ ] ๋น๋ ์ฑ๊ณต (`npm run build`)
|
|
293
|
+
- [ ] npm ๋ก๊ทธ์ธ ํ์ธ
|
|
294
|
+
- [ ] ๋ฐฐํฌ ์คํ (`npm publish --access public`)
|
|
295
|
+
- [ ] Git ํ๊ทธ ํธ์ (`git push --tags`)
|
|
296
|
+
- [ ] GitHub ๋ฆด๋ฆฌ์ฆ ์์ฑ
|
|
297
|
+
- [ ] npm ํจํค์ง ํ์ด์ง ํ์ธ
|
|
298
|
+
- [ ] ์ค์ ์ค์น ํ
์คํธ
|
|
299
|
+
|
|
300
|
+
## ๐ ์ฐธ๊ณ ์๋ฃ
|
|
301
|
+
|
|
302
|
+
- npm ๋ฌธ์: https://docs.npmjs.com/
|
|
303
|
+
- Semantic Versioning: https://semver.org/
|
|
304
|
+
- npm ํ ํฐ: https://docs.npmjs.com/about-access-tokens
|