@deplois/template 0.0.1 → 0.0.2

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/README.md CHANGED
@@ -112,3 +112,19 @@ npm 게시 과정에서 publish 스크립트가 다시 호출되지 않도록
112
112
  ## 라이선스와 에셋
113
113
 
114
114
  프로젝트 자체의 라이선스는 아직 지정하지 않아 `UNLICENSED`입니다. 공개 사용 허용 범위가 결정되면 변경하세요. Pretendard 가변 폰트는 동봉한 OFL 라이선스를 따릅니다. 폰트와 로고는 `/_deplois/` 경로에서 제공하며 Paperlogy는 기존 CDN을 사용합니다.
115
+
116
+
117
+ ## 로컬 배포 명령
118
+
119
+ ```sh
120
+ npm run publish -- 1.2.3 "커밋 메시지" --deploy
121
+ npm run publish -- major "커밋 메시지" --deploy
122
+ npm run publish -- minor "커밋 메시지" --deploy
123
+ npm run publish -- fetch "커밋 메시지" --deploy
124
+ ```
125
+
126
+ 현재 버전이 `1.2.3`일 때 `major`는 `2.0.0`, `minor`는 `1.3.0`, `fetch`는 `1.2.4`가 됩니다. 상위 버전을 올리면 하위 버전은 0으로 초기화합니다.
127
+
128
+ `--deploy`를 빼면 버전 변경·커밋·Git push까지만 진행합니다. `npm run deploy`는 현재 버전을 npm에만 배포합니다.
129
+
130
+ `scripts/publish.mjs`는 로컬 전용으로 Git 추적과 npm 패키지에서 제외합니다. 새로 clone한 환경에서 배포 명령을 쓰려면 이 파일을 별도로 복사해야 합니다.
@@ -96,7 +96,7 @@ export class Modal {
96
96
  }
97
97
  }
98
98
 
99
- export default defineNuxtPlugin(nuxtApp => {
99
+ export default defineNuxtPlugin((nuxtApp): { provide: { modal: Modal } } => {
100
100
  const modal = new Modal(() => nuxtApp.$languages.items[nuxtApp.$languages.value].components.modal.failed)
101
101
  if (import.meta.hot) import.meta.hot.dispose(() => modal.clear())
102
102
  return { provide: { modal: modal } }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@deplois/template",
3
- "version": "0.0.1",
3
+ "version": "0.0.2",
4
4
  "type": "module",
5
5
  "main": "./nuxt.config.ts",
6
6
  "exports": {