buner 0.0.1 → 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 (175) hide show
  1. package/.env +15 -0
  2. package/.env.development +6 -0
  3. package/.env.eshn +5 -0
  4. package/README.md +151 -0
  5. package/bin/buner.js +566 -0
  6. package/cli/README.md +1 -0
  7. package/cli/buner.ts +234 -0
  8. package/cli/cli.ts +125 -0
  9. package/cli/create-app.ts +59 -0
  10. package/cli/helpers/copy.ts +62 -0
  11. package/cli/helpers/format-files.ts +189 -0
  12. package/cli/helpers/git.ts +77 -0
  13. package/cli/helpers/install.ts +26 -0
  14. package/cli/helpers/is-folder-empty.ts +40 -0
  15. package/cli/helpers/is-writeable.ts +14 -0
  16. package/cli/helpers/make-dir.ts +7 -0
  17. package/cli/helpers/validate-pkg.ts +17 -0
  18. package/cli/install-template.ts +77 -0
  19. package/eslint.config.mjs +187 -0
  20. package/index.html +44 -0
  21. package/integration.ts +179 -0
  22. package/migrate-scss.ts +42 -0
  23. package/package.json +136 -19
  24. package/prerender.ts +229 -0
  25. package/public/.nojekyll +1 -0
  26. package/public/400.html +1 -0
  27. package/public/401.html +21 -0
  28. package/public/403.html +252 -0
  29. package/public/404.css +51 -0
  30. package/public/404.html +29 -0
  31. package/public/__images__/awww.jpeg +0 -0
  32. package/public/__images__/bat-body.png +0 -0
  33. package/public/__images__/bat-wing.png +0 -0
  34. package/public/__images__/haunted-house-background.png +0 -0
  35. package/public/__images__/haunted-house-foreground.png +0 -0
  36. package/public/assets/fonts/crimson-text/CrimsonText-Bold.ttf +0 -0
  37. package/public/assets/fonts/crimson-text/CrimsonText-BoldItalic.ttf +0 -0
  38. package/public/assets/fonts/crimson-text/CrimsonText-Italic.ttf +0 -0
  39. package/public/assets/fonts/crimson-text/CrimsonText-Regular.ttf +0 -0
  40. package/public/assets/fonts/crimson-text/CrimsonText-SemiBold.ttf +0 -0
  41. package/public/assets/fonts/crimson-text/CrimsonText-SemiBoldItalic.ttf +0 -0
  42. package/public/assets/fonts/crimson-text/CrimsonText.woff2 +0 -0
  43. package/public/assets/fonts/crimson-text/OFL.txt +93 -0
  44. package/public/assets/fonts/work-sans/OFL.txt +93 -0
  45. package/public/assets/fonts/work-sans/README.txt +81 -0
  46. package/public/assets/fonts/work-sans/WorkSans-Italic-VariableFont_wght.ttf +0 -0
  47. package/public/assets/fonts/work-sans/WorkSans-VariableFont_wght.ttf +0 -0
  48. package/public/assets/fonts/work-sans/WorkSans.woff2 +0 -0
  49. package/public/assets/fonts/work-sans/static/WorkSans-Black.ttf +0 -0
  50. package/public/assets/fonts/work-sans/static/WorkSans-BlackItalic.ttf +0 -0
  51. package/public/assets/fonts/work-sans/static/WorkSans-Bold.ttf +0 -0
  52. package/public/assets/fonts/work-sans/static/WorkSans-BoldItalic.ttf +0 -0
  53. package/public/assets/fonts/work-sans/static/WorkSans-ExtraBold.ttf +0 -0
  54. package/public/assets/fonts/work-sans/static/WorkSans-ExtraBoldItalic.ttf +0 -0
  55. package/public/assets/fonts/work-sans/static/WorkSans-ExtraLight.ttf +0 -0
  56. package/public/assets/fonts/work-sans/static/WorkSans-ExtraLightItalic.ttf +0 -0
  57. package/public/assets/fonts/work-sans/static/WorkSans-Italic.ttf +0 -0
  58. package/public/assets/fonts/work-sans/static/WorkSans-Light.ttf +0 -0
  59. package/public/assets/fonts/work-sans/static/WorkSans-LightItalic.ttf +0 -0
  60. package/public/assets/fonts/work-sans/static/WorkSans-Medium.ttf +0 -0
  61. package/public/assets/fonts/work-sans/static/WorkSans-MediumItalic.ttf +0 -0
  62. package/public/assets/fonts/work-sans/static/WorkSans-Regular.ttf +0 -0
  63. package/public/assets/fonts/work-sans/static/WorkSans-SemiBold.ttf +0 -0
  64. package/public/assets/fonts/work-sans/static/WorkSans-SemiBoldItalic.ttf +0 -0
  65. package/public/assets/fonts/work-sans/static/WorkSans-Thin.ttf +0 -0
  66. package/public/assets/fonts/work-sans/static/WorkSans-ThinItalic.ttf +0 -0
  67. package/public/assets/images/icons.svg +67 -0
  68. package/public/assets/images/logo.svg +14 -0
  69. package/public/assets/images/root.svg +49 -0
  70. package/public/assets/vendors/axios@0.24.0/axios.js +2275 -0
  71. package/public/assets/vendors/axios@0.24.0/axios.map +1 -0
  72. package/public/assets/vendors/axios@0.24.0/axios.min.js +2 -0
  73. package/public/assets/vendors/axios@0.24.0/axios.min.map +1 -0
  74. package/public/favicon.ico +0 -0
  75. package/public/favicon.svg +3 -0
  76. package/public/icon-128.png +0 -0
  77. package/public/icon-16.png +0 -0
  78. package/public/icon-192.png +0 -0
  79. package/public/icon-48.png +0 -0
  80. package/public/icon-512.png +0 -0
  81. package/public/json/avatar.json +42 -0
  82. package/public/manifest.webmanifest +29 -0
  83. package/public/mockServiceWorker.js +349 -0
  84. package/public/pl-states.svg +4 -0
  85. package/public/samples/01.svg +1 -0
  86. package/public/samples/Airbnb.svg +3 -0
  87. package/public/samples/Facebook.svg +3 -0
  88. package/public/samples/Google.svg +8 -0
  89. package/public/samples/Microsoft.svg +7 -0
  90. package/public/samples/Spotify.svg +3 -0
  91. package/public/samples/alexandra-stolz.svg +35 -0
  92. package/public/samples/browserconfig.xml +9 -0
  93. package/public/samples/cliff-curtis.jpg +0 -0
  94. package/public/samples/emilia-clarke.jpg +0 -0
  95. package/public/samples/favicon.ico +0 -0
  96. package/public/samples/icons/android-chrome-192x192.png +0 -0
  97. package/public/samples/icons/apple-touch-icon.png +0 -0
  98. package/public/samples/icons/favicon-144x144.png +0 -0
  99. package/public/samples/icons/favicon-150x150.png +0 -0
  100. package/public/samples/icons/favicon-16x16.png +0 -0
  101. package/public/samples/icons/favicon-32x32.png +0 -0
  102. package/public/samples/icons/favicon-48x48.png +0 -0
  103. package/public/samples/icons/favicon-70x70.png +0 -0
  104. package/public/samples/icons/favicon.ico +0 -0
  105. package/public/samples/image-1.svg +166 -0
  106. package/public/samples/image-2.svg +110 -0
  107. package/public/samples/image-3.svg +113 -0
  108. package/public/samples/janet-bray.svg +36 -0
  109. package/public/samples/kate-winslet.jpg +0 -0
  110. package/public/samples/manifest.json +19 -0
  111. package/public/samples/michelle-yeoh.jpg +0 -0
  112. package/public/samples/peg-legge.svg +37 -0
  113. package/public/samples/richard-guerra.svg +42 -0
  114. package/public/samples/rose-leslie.jpg +0 -0
  115. package/public/samples/sample-1.svg +365 -0
  116. package/public/samples/sample-2.svg +129 -0
  117. package/public/samples/sample-3.svg +93 -0
  118. package/public/samples/sample-4.svg +168 -0
  119. package/public/samples/sample-5.svg +155 -0
  120. package/public/samples/sample-6.svg +445 -0
  121. package/public/samples/sample-7.svg +404 -0
  122. package/public/samples/sample-8.png +0 -0
  123. package/public/staticwebapp.config.json +138 -0
  124. package/scripts.ts +56 -0
  125. package/server.ts +29 -0
  126. package/states.ts +63 -0
  127. package/styles.ts +232 -0
  128. package/tsconfig.json +75 -0
  129. package/types.d.ts +54 -0
  130. package/vite.config.ts +3 -0
  131. package/xpack/alias.ts +21 -0
  132. package/xpack/config.ts +59 -0
  133. package/xpack/create-server.ts +68 -0
  134. package/xpack/create-vite-dev-server.ts +33 -0
  135. package/xpack/deploy/deploy-inte.ts +3 -0
  136. package/xpack/filename.ts +43 -0
  137. package/xpack/hooks/build-start.ts +17 -0
  138. package/xpack/hooks/close-bundle.ts +19 -0
  139. package/xpack/hooks/handle-hot-update.ts +22 -0
  140. package/xpack/hooks/options.ts +55 -0
  141. package/xpack/hooks/resolve-dynamic-import.ts +18 -0
  142. package/xpack/hooks/transform-index-html.ts +18 -0
  143. package/xpack/hooks/transform.ts +72 -0
  144. package/xpack/hooks/write-bundle.ts +16 -0
  145. package/xpack/manual-chunk.ts +56 -0
  146. package/xpack/paths.ts +30 -0
  147. package/xpack/renderer.ts +141 -0
  148. package/xpack/root/active-item-options.tsx +98 -0
  149. package/xpack/root/frame-controls.tsx +139 -0
  150. package/xpack/root/index.tsx +107 -0
  151. package/xpack/root/rendered-item.tsx +25 -0
  152. package/xpack/root/root-context.ts +22 -0
  153. package/xpack/root/root-nav.tsx +162 -0
  154. package/xpack/root/state-animation-html.tsx +18 -0
  155. package/xpack/root/template.tsx +23 -0
  156. package/xpack/root/use-click-outside.ts +37 -0
  157. package/xpack/scripts/color-mode.entry.ts +28 -0
  158. package/xpack/scripts/mock-api.entry.ts +11 -0
  159. package/xpack/scripts/pl-states.entry.ts +321 -0
  160. package/xpack/scripts/root.entry.ts +135 -0
  161. package/xpack/scripts/theme-critical.entry.ts +20 -0
  162. package/xpack/states.schema.json +61 -0
  163. package/xpack/styles/_border.scss +22 -0
  164. package/xpack/styles/_breakpoint.scss +117 -0
  165. package/xpack/styles/_form.scss +23 -0
  166. package/xpack/styles/_px2rem.scss +5 -0
  167. package/xpack/styles/_reset.scss +134 -0
  168. package/xpack/styles/_state-toggle.scss +121 -0
  169. package/xpack/styles/_theme.scss +68 -0
  170. package/xpack/styles/_top-panel.scss +87 -0
  171. package/xpack/styles/_xpack-root.scss +322 -0
  172. package/xpack/styles/pl-states.scss +308 -0
  173. package/xpack/styles/root.scss +129 -0
  174. package/.github/workflows/deploy.yaml +0 -33
  175. package/index.js +0 -3
@@ -0,0 +1,308 @@
1
+ @use 'border' as *;
2
+ @use 'breakpoint' as *;
3
+ @use 'px2rem' as *;
4
+
5
+ $-bold: 700;
6
+
7
+ $-button-border: #aaa093;
8
+ $-button-bg: #d2dde4;
9
+ $-button-bg-hover: #f8c276;
10
+
11
+ $-bar-bg: #015174;
12
+ $-bar-fg: #fff;
13
+
14
+ $-group-bg: #fff;
15
+ $-group-bg-hover: #f8c276;
16
+ $-group-fg: #434342;
17
+
18
+ $-black: #000;
19
+ $-white: #fff;
20
+
21
+ $-label-bg: #fff;
22
+ $-label-bg-hover: #f8c276;
23
+ $-label-fg: #434342;
24
+
25
+ $-sand: #d4ccc7;
26
+ $-lava: #434342;
27
+ $-black: #000;
28
+ $-beam: #f8c276;
29
+ $-wave-50: #d2dde4;
30
+
31
+ .pl-state {
32
+ line-height: 1.4;
33
+ position: absolute;
34
+ top: px2rem(8px);
35
+ right: px2rem(8px);
36
+ display: block;
37
+ height: auto;
38
+ max-height: none;
39
+ width: auto;
40
+ max-width: none;
41
+
42
+ &__button {
43
+ padding: 0;
44
+ cursor: pointer;
45
+ border: px2rem(1px) solid $-button-border;
46
+ width: px2rem(40px);
47
+ height: px2rem(40px);
48
+ border-radius: 50%;
49
+ background-color: $-button-bg;
50
+ display: flex;
51
+ align-items: center;
52
+ justify-content: center;
53
+ opacity: 0.5;
54
+ animation-name: activeStateButton;
55
+ animation-duration: 2s;
56
+ animation-timing-function: linear;
57
+ animation-iteration-count: infinite;
58
+ animation-play-state: paused;
59
+
60
+ &.active,
61
+ &:hover {
62
+ opacity: 1;
63
+ }
64
+
65
+ &:hover {
66
+ background-color: $-button-bg-hover;
67
+ }
68
+
69
+ &.active {
70
+ animation-play-state: running;
71
+ }
72
+ }
73
+
74
+ @keyframes activeStateButton {
75
+ 0% {
76
+ background-color: $-white;
77
+ transform: rotate(0deg);
78
+ box-shadow: 0px 0px px2rem(16px) px2rem(8px) rgba($-black, 0.15);
79
+ }
80
+ 40% {
81
+ background-color: $-beam;
82
+ box-shadow: 0px 0px px2rem(16px) px2rem(8px) rgba($-white, 0.8);
83
+ box-shadow: none;
84
+ }
85
+ 60% {
86
+ background-color: $-beam;
87
+ box-shadow: 0px 0px px2rem(16px) px2rem(8px) rgba($-white, 0.8);
88
+ box-shadow: none;
89
+ }
90
+ 100% {
91
+ background-color: $-white;
92
+ transform: rotate(360deg);
93
+ box-shadow: 0px 0px px2rem(16px) px2rem(8px) rgba($-black, 0.15);
94
+ }
95
+ }
96
+
97
+ &--top-left {
98
+ left: px2rem(8px);
99
+ right: auto;
100
+ }
101
+
102
+ &--top-center {
103
+ left: 50%;
104
+ right: auto;
105
+
106
+ & > * {
107
+ position: relative;
108
+ left: -50%;
109
+ }
110
+ }
111
+
112
+ &--top-right {
113
+ left: auto;
114
+ right: px2rem(8px);
115
+ }
116
+
117
+ &--bottom-left {
118
+ left: px2rem(8px);
119
+ right: auto;
120
+ top: auto;
121
+ bottom: px2rem(8px);
122
+ }
123
+
124
+ &--bottom-right {
125
+ left: auto;
126
+ right: px2rem(8px);
127
+ top: auto;
128
+ bottom: px2rem(8px);
129
+ }
130
+ }
131
+
132
+ .pl-state-bar {
133
+ position: fixed;
134
+ z-index: 9999999;
135
+ top: 0;
136
+ left: 0;
137
+ width: 100%;
138
+ background-color: $-bar-bg;
139
+ color: $-bar-fg;
140
+ display: none;
141
+ transition: opacity 0.5s ease-in-out;
142
+ opacity: 0;
143
+ box-shadow: 0px 0px px2rem(16px) px2rem(8px) rgba($-black, 0.2);
144
+ max-height: 100%;
145
+
146
+ @include md {
147
+ grid-template-columns: 1fr auto;
148
+ }
149
+
150
+ &.expand {
151
+ opacity: 1;
152
+ display: grid;
153
+ }
154
+
155
+ &__content {
156
+ padding: px2rem(4px) px2rem(8px) px2rem(16px) px2rem(8px);
157
+ display: grid;
158
+ grid-template-columns: 1fr 1fr;
159
+ flex-wrap: wrap;
160
+ justify-content: center;
161
+ gap: px2rem(10px);
162
+ grid-gap: px2rem(10px);
163
+
164
+ @include md {
165
+ gap: px2rem(20px);
166
+ grid-gap: px2rem(20px);
167
+ display: flex;
168
+ }
169
+
170
+ .pl-state-bar__buttons {
171
+ display: flex;
172
+
173
+ @include md {
174
+ display: none;
175
+ }
176
+ }
177
+ }
178
+
179
+ &__group {
180
+ align-self: flex-end;
181
+ position: relative;
182
+ font-size: px2rem(13px);
183
+ line-height: 1.2;
184
+ }
185
+
186
+ &__select {
187
+ width: 100%;
188
+ }
189
+
190
+ &__checkbox-group {
191
+ display: none;
192
+ position: absolute;
193
+ top: calc(100% + 1px);
194
+ left: 0;
195
+ background-color: $-sand;
196
+ width: px2rem(160px);
197
+ min-width: 100%;
198
+ border: 1px solid rgb(118, 118, 118);
199
+ gap: px2rem(1px);
200
+ grid-gap: px2rem(1px);
201
+ z-index: 10;
202
+ box-shadow: 0px 0px px2rem(16px) px2rem(8px) rgba($-black, 0.2);
203
+
204
+ &.expand {
205
+ display: grid;
206
+ }
207
+ }
208
+
209
+ &__input {
210
+ display: none;
211
+
212
+ &:checked + label.pl-state-bar__label {
213
+ background-color: $-wave-50;
214
+
215
+ > span {
216
+ &::before {
217
+ content: '✓';
218
+ display: block;
219
+ position: absolute;
220
+ left: -(px2rem(15px));
221
+ font-weight: $-bold;
222
+ }
223
+ }
224
+ }
225
+ }
226
+
227
+ &__label {
228
+ font-size: px2rem(13.33px);
229
+ padding: px2rem(8px) px2rem(8px) px2rem(8px) px2rem(20px);
230
+ display: block;
231
+ cursor: pointer;
232
+ background-color: $-label-bg;
233
+ color: $-label-fg;
234
+ line-height: 1.4;
235
+
236
+ &:hover {
237
+ background-color: $-label-bg-hover;
238
+ }
239
+
240
+ > span {
241
+ position: relative;
242
+ }
243
+ }
244
+
245
+ &__buttons {
246
+ justify-self: flex-end;
247
+ align-self: flex-start;
248
+ align-items: center;
249
+ display: none;
250
+
251
+ @include md {
252
+ margin-right: px2rem(16px);
253
+ display: flex;
254
+ grid-column: 2 / 2;
255
+ }
256
+ }
257
+
258
+ &__close-button {
259
+ position: relative;
260
+ width: px2rem(32px);
261
+ height: px2rem(32px);
262
+ opacity: 0.7;
263
+ cursor: pointer;
264
+ background-color: transparent;
265
+
266
+ &:hover {
267
+ opacity: 1;
268
+ }
269
+
270
+ &:before,
271
+ &:after {
272
+ position: absolute;
273
+ left: px2rem(15px);
274
+ content: ' ';
275
+ height: px2rem(33px);
276
+ width: px2rem(2px);
277
+ background-color: $-white;
278
+ }
279
+
280
+ &:before {
281
+ transform: rotate(45deg);
282
+ }
283
+ &:after {
284
+ transform: rotate(-45deg);
285
+ }
286
+ }
287
+
288
+ &__group-header {
289
+ position: relative;
290
+ cursor: pointer;
291
+ background-color: $-group-bg;
292
+ font-size: px2rem(13.33px);
293
+ color: $-group-fg;
294
+ padding: px2rem(4px) px2rem(25px) px2rem(4px) px2rem(5px);
295
+ border: 1px solid rgb(118, 118, 118);
296
+ min-width: px2rem(60px);
297
+ line-height: 1;
298
+
299
+ background-image: url('data:image/svg+xml,%3Csvg%20width%3D%2213%22%20height%3D%227%22%20viewBox%3D%220%200%2013%207%22%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%3E%0A%20%20%20%20%3Cpath%20d%3D%22m12.12%201.413-1.109-1.3L6.59%204.208%202.07.148.89%201.377%206.523%206.6z%22%20fill%3D%22#{encodecolor($-lava)}%22%20fill-rule%3D%22evenodd%22%2F%3E%0A%3C%2Fsvg%3E');
300
+ background-size: px2rem(11px) px2rem(11px);
301
+ background-repeat: no-repeat;
302
+ background-position: right px2rem(5px) center;
303
+
304
+ &:hover {
305
+ background-color: $-group-bg-hover;
306
+ }
307
+ }
308
+ }
@@ -0,0 +1,129 @@
1
+ @use 'px2rem' as *;
2
+ @use 'reset' as *;
3
+ @use 'breakpoint' as *;
4
+ @use 'theme' as *;
5
+ @use 'border' as *;
6
+ @use 'state-toggle' as *;
7
+ @use 'form' as *;
8
+ @use 'xpack-root' as *;
9
+ @use 'top-panel' as *;
10
+
11
+ :root {
12
+ --navbar-max-width: px2rem(240px);
13
+ }
14
+
15
+ $-wave-25: #e9eef1;
16
+ $-wave-50: #d2dde4;
17
+
18
+ html {
19
+ font-size: 100% !important;
20
+ }
21
+
22
+ body {
23
+ /*
24
+ The special case for Root page
25
+ */
26
+ margin: 0 !important;
27
+ padding: 0 !important;
28
+ width: 100% !important;
29
+ max-width: none !important;
30
+ height: 100vh !important;
31
+ max-height: 100vh !important;
32
+ overflow: hidden !important;
33
+ background-color: $body-bg !important;
34
+ font-size: px2rem(16px);
35
+ font-family: Arial, Helvetica, sans-serif;
36
+ color: $body-color;
37
+ }
38
+
39
+ .xpack-t-root {
40
+ height: 100vh;
41
+ height: 100dvh;
42
+ display: grid;
43
+ grid-template-rows: min-content 1fr;
44
+
45
+ @include lg {
46
+ grid-template-columns: px2rem(300px) 1fr;
47
+ }
48
+
49
+ &.top-panel {
50
+ @include lg {
51
+ grid-template-columns: 1fr;
52
+ grid-template-rows: min-content 1fr;
53
+ }
54
+ }
55
+
56
+ a {
57
+ text-decoration: none;
58
+ }
59
+
60
+ &__target-wrapper {
61
+ width: 100%;
62
+ max-width: 100%;
63
+ height: 100vh;
64
+ position: relative;
65
+ justify-self: center;
66
+
67
+ &.initialized {
68
+ transition: max-width linear 0.25s;
69
+ }
70
+
71
+ &::before,
72
+ &::after {
73
+ content: '';
74
+ position: absolute;
75
+ display: block;
76
+ top: 0;
77
+ width: px2rem(1px);
78
+ height: 100%;
79
+ background-color: $body-color;
80
+ }
81
+
82
+ &::before {
83
+ left: -(px2rem(1px));
84
+ }
85
+
86
+ &::after {
87
+ right: -(px2rem(1px));
88
+ }
89
+ }
90
+
91
+ &__target-resizer {
92
+ width: px2rem(20px);
93
+ height: 100%;
94
+ position: absolute;
95
+ top: 0;
96
+ left: calc(100% + 1px);
97
+ background-color: $-wave-25;
98
+ cursor: ew-resize;
99
+
100
+ &:hover {
101
+ background-color: $-wave-50;
102
+ }
103
+
104
+ &::after {
105
+ content: '';
106
+ position: absolute;
107
+ display: block;
108
+ width: px2rem(5px);
109
+ height: px2rem(50px);
110
+ left: 50%;
111
+ top: 50%;
112
+ border-width: 0 px2rem(1px);
113
+ border-style: solid;
114
+ border-color: $border-color;
115
+ transform: translate(-50%, -50%);
116
+ }
117
+ }
118
+
119
+ &__target {
120
+ width: 100%;
121
+ max-width: 100%;
122
+ height: 100%;
123
+ border: none;
124
+ }
125
+
126
+ &.top-panel .xpack-t-root__target-wrapper {
127
+ height: 100%;
128
+ }
129
+ }
@@ -1,33 +0,0 @@
1
- name: Buner Deploy
2
-
3
- on:
4
- push:
5
- branches:
6
- - release
7
- paths:
8
- - package.json
9
-
10
- workflow_dispatch:
11
-
12
- concurrency:
13
- group: ${{ github.workflow }}-${{ github.ref }}
14
- cancel-in-progress: true
15
-
16
- jobs:
17
- build:
18
- timeout-minutes: 5
19
- runs-on: ubuntu-latest
20
- steps:
21
- - name: Checkout code
22
- uses: actions/checkout@v4
23
-
24
- - name: Set up Node.js
25
- uses: actions/setup-node@v4
26
- with:
27
- node-version: '22.x'
28
- registry-url: 'https://registry.npmjs.org'
29
-
30
- - name: Publish to NPM
31
- run: npm publish --access public
32
- env:
33
- NODE_AUTH_TOKEN: ${{ secrets.ORG_NPM_TOKEN }}
package/index.js DELETED
@@ -1,3 +0,0 @@
1
- exports.printMsg = function () {
2
- console.log('This is a message from the buner package')
3
- }