create-rslib 0.19.3 → 0.19.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.
Files changed (341) hide show
  1. package/dist/index.js +114 -295
  2. package/package.json +4 -5
  3. package/template-common/gitignore +1 -0
  4. package/{template-[react]-[]-js → template-react-js}/package.json +2 -2
  5. package/{template-[react]-[]-ts → template-react-ts}/package.json +3 -3
  6. package/{template-[react]-[rstest]-ts → template-react-ts}/src/Button.tsx +18 -1
  7. package/template-rspress/AGENTS.md +10 -0
  8. package/template-rspress/react-ts/docs/Button.mdx +31 -0
  9. package/template-rspress/react-ts/docs/_meta.json +1 -0
  10. package/template-rspress/react-ts/docs/index.mdx +4 -0
  11. package/template-rspress/react-ts/package.json +15 -0
  12. package/template-rspress/react-ts/rspress.config.ts +27 -0
  13. package/{template-[react]-[rstest,storybook]-ts → template-rspress/react-ts}/tsconfig.json +5 -2
  14. package/template-rstest/AGENTS.md +10 -0
  15. package/template-rstest/node-js/package.json +10 -0
  16. package/template-rstest/node-ts/package.json +10 -0
  17. package/template-rstest/react-js/package.json +13 -0
  18. package/template-rstest/react-ts/package.json +13 -0
  19. package/template-rstest/vue-js/package.json +14 -0
  20. package/template-rstest/vue-ts/package.json +14 -0
  21. package/template-storybook/AGENTS.md +6 -0
  22. package/template-storybook/react-js/package.json +15 -0
  23. package/template-storybook/react-ts/package.json +15 -0
  24. package/template-storybook/vue-js/package.json +15 -0
  25. package/template-storybook/vue-ts/package.json +15 -0
  26. package/template-vitest/node-js/package.json +8 -0
  27. package/template-vitest/node-ts/package.json +8 -0
  28. package/template-vitest/react-js/package.json +11 -0
  29. package/template-vitest/react-ts/package.json +11 -0
  30. package/template-vitest/vue-js/package.json +12 -0
  31. package/template-vitest/vue-ts/package.json +12 -0
  32. package/{template-[vue]-[vitest]-js/vitest.config.js → template-vitest/vue-ts/vitest.config.ts} +1 -1
  33. package/{template-[vue]-[]-js → template-vue-js}/package.json +1 -1
  34. package/{template-[vue]-[]-ts → template-vue-ts}/package.json +2 -2
  35. package/template-[node-dual]-[rstest]-js/AGENTS.md +0 -5
  36. package/template-[node-dual]-[rstest]-js/package.json +0 -25
  37. package/template-[node-dual]-[rstest]-js/rslib.config.mjs +0 -14
  38. package/template-[node-dual]-[rstest]-ts/AGENTS.md +0 -5
  39. package/template-[node-dual]-[rstest]-ts/package.json +0 -29
  40. package/template-[node-dual]-[rstest]-ts/rslib.config.ts +0 -15
  41. package/template-[node-dual]-[vitest]-js/package.json +0 -24
  42. package/template-[node-dual]-[vitest]-js/rslib.config.mjs +0 -14
  43. package/template-[node-dual]-[vitest]-js/src/index.js +0 -1
  44. package/template-[node-dual]-[vitest]-ts/AGENTS.md +0 -5
  45. package/template-[node-dual]-[vitest]-ts/package.json +0 -28
  46. package/template-[node-dual]-[vitest]-ts/rslib.config.ts +0 -15
  47. package/template-[node-dual]-[vitest]-ts/src/index.ts +0 -1
  48. package/template-[node-dual]-[vitest]-ts/tsconfig.json +0 -15
  49. package/template-[node-esm]-[]-js/src/index.js +0 -1
  50. package/template-[node-esm]-[]-ts/src/index.ts +0 -1
  51. package/template-[node-esm]-[]-ts/tsconfig.json +0 -15
  52. package/template-[node-esm]-[rstest]-js/AGENTS.md +0 -5
  53. package/template-[node-esm]-[rstest]-js/package.json +0 -23
  54. package/template-[node-esm]-[rstest]-js/rslib.config.mjs +0 -10
  55. package/template-[node-esm]-[rstest]-js/rstest.config.js +0 -6
  56. package/template-[node-esm]-[rstest]-js/src/index.js +0 -1
  57. package/template-[node-esm]-[rstest]-js/tests/index.test.js +0 -7
  58. package/template-[node-esm]-[rstest]-ts/AGENTS.md +0 -5
  59. package/template-[node-esm]-[rstest]-ts/package.json +0 -27
  60. package/template-[node-esm]-[rstest]-ts/rslib.config.ts +0 -11
  61. package/template-[node-esm]-[rstest]-ts/rstest.config.ts +0 -6
  62. package/template-[node-esm]-[rstest]-ts/src/index.ts +0 -1
  63. package/template-[node-esm]-[rstest]-ts/tests/index.test.ts +0 -7
  64. package/template-[node-esm]-[rstest]-ts/tsconfig.json +0 -15
  65. package/template-[node-esm]-[vitest]-js/AGENTS.md +0 -5
  66. package/template-[node-esm]-[vitest]-js/package.json +0 -22
  67. package/template-[node-esm]-[vitest]-js/rslib.config.mjs +0 -10
  68. package/template-[node-esm]-[vitest]-js/src/index.js +0 -1
  69. package/template-[node-esm]-[vitest]-js/tests/index.test.js +0 -7
  70. package/template-[node-esm]-[vitest]-js/vitest.config.js +0 -8
  71. package/template-[node-esm]-[vitest]-ts/AGENTS.md +0 -5
  72. package/template-[node-esm]-[vitest]-ts/package.json +0 -26
  73. package/template-[node-esm]-[vitest]-ts/rslib.config.ts +0 -11
  74. package/template-[node-esm]-[vitest]-ts/src/index.ts +0 -1
  75. package/template-[node-esm]-[vitest]-ts/tests/index.test.ts +0 -7
  76. package/template-[node-esm]-[vitest]-ts/tsconfig.json +0 -15
  77. package/template-[node-esm]-[vitest]-ts/vitest.config.ts +0 -6
  78. package/template-[react]-[]-ts/src/Button.tsx +0 -29
  79. package/template-[react]-[rstest,storybook]-js/AGENTS.md +0 -9
  80. package/template-[react]-[rstest,storybook]-js/package.json +0 -41
  81. package/template-[react]-[rstest,storybook]-js/rslib.config.mjs +0 -20
  82. package/template-[react]-[rstest,storybook]-js/src/Button.jsx +0 -21
  83. package/template-[react]-[rstest,storybook]-js/src/button.css +0 -34
  84. package/template-[react]-[rstest,storybook]-js/src/index.jsx +0 -1
  85. package/template-[react]-[rstest,storybook]-ts/AGENTS.md +0 -9
  86. package/template-[react]-[rstest,storybook]-ts/package.json +0 -45
  87. package/template-[react]-[rstest,storybook]-ts/rslib.config.ts +0 -21
  88. package/template-[react]-[rstest,storybook]-ts/src/Button.tsx +0 -29
  89. package/template-[react]-[rstest,storybook]-ts/src/button.css +0 -34
  90. package/template-[react]-[rstest,storybook]-ts/src/index.tsx +0 -1
  91. package/template-[react]-[rstest]-js/AGENTS.md +0 -5
  92. package/template-[react]-[rstest]-js/package.json +0 -32
  93. package/template-[react]-[rstest]-js/rslib.config.mjs +0 -20
  94. package/template-[react]-[rstest]-js/src/Button.jsx +0 -21
  95. package/template-[react]-[rstest]-js/src/button.css +0 -34
  96. package/template-[react]-[rstest]-js/src/index.jsx +0 -1
  97. package/template-[react]-[rstest]-js/tests/index.test.jsx +0 -11
  98. package/template-[react]-[rstest]-ts/AGENTS.md +0 -5
  99. package/template-[react]-[rstest]-ts/package.json +0 -36
  100. package/template-[react]-[rstest]-ts/rslib.config.ts +0 -21
  101. package/template-[react]-[rstest]-ts/src/button.css +0 -34
  102. package/template-[react]-[rstest]-ts/src/index.tsx +0 -1
  103. package/template-[react]-[rstest]-ts/tests/index.test.tsx +0 -11
  104. package/template-[react]-[rstest]-ts/tsconfig.json +0 -14
  105. package/template-[react]-[storybook,vitest]-js/.storybook/main.js +0 -39
  106. package/template-[react]-[storybook,vitest]-js/AGENTS.md +0 -9
  107. package/template-[react]-[storybook,vitest]-js/package.json +0 -40
  108. package/template-[react]-[storybook,vitest]-js/rslib.config.mjs +0 -20
  109. package/template-[react]-[storybook,vitest]-js/src/Button.jsx +0 -21
  110. package/template-[react]-[storybook,vitest]-js/src/button.css +0 -34
  111. package/template-[react]-[storybook,vitest]-js/src/index.jsx +0 -1
  112. package/template-[react]-[storybook,vitest]-js/stories/Button.stories.jsx +0 -50
  113. package/template-[react]-[storybook,vitest]-ts/.storybook/main.ts +0 -41
  114. package/template-[react]-[storybook,vitest]-ts/.storybook/preview.ts +0 -14
  115. package/template-[react]-[storybook,vitest]-ts/AGENTS.md +0 -9
  116. package/template-[react]-[storybook,vitest]-ts/package.json +0 -44
  117. package/template-[react]-[storybook,vitest]-ts/rslib.config.ts +0 -21
  118. package/template-[react]-[storybook,vitest]-ts/src/Button.tsx +0 -29
  119. package/template-[react]-[storybook,vitest]-ts/src/button.css +0 -34
  120. package/template-[react]-[storybook,vitest]-ts/src/index.tsx +0 -1
  121. package/template-[react]-[storybook,vitest]-ts/stories/Button.stories.ts +0 -52
  122. package/template-[react]-[storybook,vitest]-ts/tests/tsconfig.json +0 -4
  123. package/template-[react]-[storybook,vitest]-ts/tsconfig.json +0 -14
  124. package/template-[react]-[storybook]-js/.storybook/main.js +0 -39
  125. package/template-[react]-[storybook]-js/.storybook/preview.js +0 -12
  126. package/template-[react]-[storybook]-js/AGENTS.md +0 -5
  127. package/template-[react]-[storybook]-js/package.json +0 -35
  128. package/template-[react]-[storybook]-js/rslib.config.mjs +0 -20
  129. package/template-[react]-[storybook]-js/src/Button.jsx +0 -21
  130. package/template-[react]-[storybook]-js/src/button.css +0 -34
  131. package/template-[react]-[storybook]-js/src/index.jsx +0 -1
  132. package/template-[react]-[storybook]-js/stories/Button.stories.jsx +0 -50
  133. package/template-[react]-[storybook]-ts/.storybook/main.ts +0 -41
  134. package/template-[react]-[storybook]-ts/.storybook/preview.ts +0 -14
  135. package/template-[react]-[storybook]-ts/AGENTS.md +0 -5
  136. package/template-[react]-[storybook]-ts/package.json +0 -39
  137. package/template-[react]-[storybook]-ts/rslib.config.ts +0 -21
  138. package/template-[react]-[storybook]-ts/src/Button.tsx +0 -29
  139. package/template-[react]-[storybook]-ts/src/button.css +0 -34
  140. package/template-[react]-[storybook]-ts/src/index.tsx +0 -1
  141. package/template-[react]-[storybook]-ts/stories/Button.stories.ts +0 -52
  142. package/template-[react]-[storybook]-ts/tsconfig.json +0 -14
  143. package/template-[react]-[vitest]-js/AGENTS.md +0 -5
  144. package/template-[react]-[vitest]-js/package.json +0 -31
  145. package/template-[react]-[vitest]-js/rslib.config.mjs +0 -20
  146. package/template-[react]-[vitest]-js/src/Button.jsx +0 -21
  147. package/template-[react]-[vitest]-js/src/button.css +0 -34
  148. package/template-[react]-[vitest]-js/src/index.jsx +0 -1
  149. package/template-[react]-[vitest]-js/tests/index.test.jsx +0 -11
  150. package/template-[react]-[vitest]-js/vitest.config.js +0 -11
  151. package/template-[react]-[vitest]-ts/AGENTS.md +0 -5
  152. package/template-[react]-[vitest]-ts/package.json +0 -35
  153. package/template-[react]-[vitest]-ts/rslib.config.ts +0 -21
  154. package/template-[react]-[vitest]-ts/src/Button.tsx +0 -29
  155. package/template-[react]-[vitest]-ts/src/button.css +0 -34
  156. package/template-[react]-[vitest]-ts/src/index.tsx +0 -1
  157. package/template-[react]-[vitest]-ts/tests/index.test.tsx +0 -11
  158. package/template-[react]-[vitest]-ts/tests/tsconfig.json +0 -4
  159. package/template-[react]-[vitest]-ts/tsconfig.json +0 -14
  160. package/template-[react]-[vitest]-ts/vitest.config.ts +0 -9
  161. package/template-[vue]-[rstest,storybook]-js/.storybook/preview.js +0 -12
  162. package/template-[vue]-[rstest,storybook]-js/AGENTS.md +0 -9
  163. package/template-[vue]-[rstest,storybook]-js/package.json +0 -43
  164. package/template-[vue]-[rstest,storybook]-js/rslib.config.ts +0 -15
  165. package/template-[vue]-[rstest,storybook]-js/rstest.config.js +0 -7
  166. package/template-[vue]-[rstest,storybook]-js/rstest.setup.js +0 -4
  167. package/template-[vue]-[rstest,storybook]-js/src/Button.vue +0 -43
  168. package/template-[vue]-[rstest,storybook]-js/src/index.js +0 -1
  169. package/template-[vue]-[rstest,storybook]-js/src/style.css +0 -34
  170. package/template-[vue]-[rstest,storybook]-ts/AGENTS.md +0 -9
  171. package/template-[vue]-[rstest,storybook]-ts/package.json +0 -45
  172. package/template-[vue]-[rstest,storybook]-ts/rslib.config.ts +0 -15
  173. package/template-[vue]-[rstest,storybook]-ts/rstest.config.ts +0 -7
  174. package/template-[vue]-[rstest,storybook]-ts/rstest.setup.ts +0 -4
  175. package/template-[vue]-[rstest,storybook]-ts/src/Button.vue +0 -35
  176. package/template-[vue]-[rstest,storybook]-ts/src/index.ts +0 -1
  177. package/template-[vue]-[rstest,storybook]-ts/src/style.css +0 -34
  178. package/template-[vue]-[rstest,storybook]-ts/tests/test.d.ts +0 -1
  179. package/template-[vue]-[rstest,storybook]-ts/tests/tsconfig.json +0 -4
  180. package/template-[vue]-[rstest,storybook]-ts/tsconfig.json +0 -24
  181. package/template-[vue]-[rstest]-js/AGENTS.md +0 -5
  182. package/template-[vue]-[rstest]-js/package.json +0 -34
  183. package/template-[vue]-[rstest]-js/rslib.config.ts +0 -15
  184. package/template-[vue]-[rstest]-js/rstest.config.js +0 -7
  185. package/template-[vue]-[rstest]-js/rstest.setup.js +0 -4
  186. package/template-[vue]-[rstest]-js/src/Button.vue +0 -43
  187. package/template-[vue]-[rstest]-js/src/index.js +0 -1
  188. package/template-[vue]-[rstest]-js/src/style.css +0 -34
  189. package/template-[vue]-[rstest]-js/tests/index.test.js +0 -16
  190. package/template-[vue]-[rstest]-ts/AGENTS.md +0 -5
  191. package/template-[vue]-[rstest]-ts/package.json +0 -36
  192. package/template-[vue]-[rstest]-ts/rslib.config.ts +0 -15
  193. package/template-[vue]-[rstest]-ts/rstest.config.ts +0 -7
  194. package/template-[vue]-[rstest]-ts/rstest.setup.ts +0 -4
  195. package/template-[vue]-[rstest]-ts/src/Button.vue +0 -35
  196. package/template-[vue]-[rstest]-ts/src/index.ts +0 -1
  197. package/template-[vue]-[rstest]-ts/src/style.css +0 -34
  198. package/template-[vue]-[rstest]-ts/tests/index.test.ts +0 -16
  199. package/template-[vue]-[rstest]-ts/tests/test.d.ts +0 -1
  200. package/template-[vue]-[rstest]-ts/tests/tsconfig.json +0 -4
  201. package/template-[vue]-[rstest]-ts/tsconfig.json +0 -24
  202. package/template-[vue]-[storybook,vitest]-js/.storybook/main.js +0 -38
  203. package/template-[vue]-[storybook,vitest]-js/.storybook/preview.js +0 -12
  204. package/template-[vue]-[storybook,vitest]-js/AGENTS.md +0 -9
  205. package/template-[vue]-[storybook,vitest]-js/package.json +0 -42
  206. package/template-[vue]-[storybook,vitest]-js/rslib.config.ts +0 -15
  207. package/template-[vue]-[storybook,vitest]-js/src/Button.vue +0 -43
  208. package/template-[vue]-[storybook,vitest]-js/src/index.js +0 -1
  209. package/template-[vue]-[storybook,vitest]-js/src/style.css +0 -34
  210. package/template-[vue]-[storybook,vitest]-js/stories/Button.stories.js +0 -50
  211. package/template-[vue]-[storybook,vitest]-js/vitest.setup.js +0 -1
  212. package/template-[vue]-[storybook,vitest]-ts/.storybook/main.ts +0 -40
  213. package/template-[vue]-[storybook,vitest]-ts/.storybook/preview.ts +0 -12
  214. package/template-[vue]-[storybook,vitest]-ts/AGENTS.md +0 -9
  215. package/template-[vue]-[storybook,vitest]-ts/package.json +0 -44
  216. package/template-[vue]-[storybook,vitest]-ts/rslib.config.ts +0 -15
  217. package/template-[vue]-[storybook,vitest]-ts/src/Button.vue +0 -35
  218. package/template-[vue]-[storybook,vitest]-ts/src/index.ts +0 -1
  219. package/template-[vue]-[storybook,vitest]-ts/src/style.css +0 -34
  220. package/template-[vue]-[storybook,vitest]-ts/stories/Button.stories.js +0 -50
  221. package/template-[vue]-[storybook,vitest]-ts/tsconfig.json +0 -24
  222. package/template-[vue]-[storybook,vitest]-ts/vitest.config.js +0 -13
  223. package/template-[vue]-[storybook,vitest]-ts/vitest.setup.js +0 -1
  224. package/template-[vue]-[storybook]-js/.storybook/main.js +0 -38
  225. package/template-[vue]-[storybook]-js/.storybook/preview.js +0 -12
  226. package/template-[vue]-[storybook]-js/AGENTS.md +0 -5
  227. package/template-[vue]-[storybook]-js/package.json +0 -36
  228. package/template-[vue]-[storybook]-js/rslib.config.ts +0 -15
  229. package/template-[vue]-[storybook]-js/src/Button.vue +0 -43
  230. package/template-[vue]-[storybook]-js/src/index.js +0 -1
  231. package/template-[vue]-[storybook]-js/src/style.css +0 -34
  232. package/template-[vue]-[storybook]-js/stories/Button.stories.js +0 -50
  233. package/template-[vue]-[storybook]-ts/.storybook/main.ts +0 -40
  234. package/template-[vue]-[storybook]-ts/.storybook/preview.ts +0 -12
  235. package/template-[vue]-[storybook]-ts/AGENTS.md +0 -5
  236. package/template-[vue]-[storybook]-ts/package.json +0 -38
  237. package/template-[vue]-[storybook]-ts/rslib.config.ts +0 -15
  238. package/template-[vue]-[storybook]-ts/src/Button.vue +0 -35
  239. package/template-[vue]-[storybook]-ts/src/index.ts +0 -1
  240. package/template-[vue]-[storybook]-ts/src/style.css +0 -34
  241. package/template-[vue]-[storybook]-ts/stories/Button.stories.js +0 -50
  242. package/template-[vue]-[storybook]-ts/tsconfig.json +0 -24
  243. package/template-[vue]-[vitest]-js/AGENTS.md +0 -5
  244. package/template-[vue]-[vitest]-js/package.json +0 -33
  245. package/template-[vue]-[vitest]-js/rslib.config.ts +0 -15
  246. package/template-[vue]-[vitest]-js/src/Button.vue +0 -43
  247. package/template-[vue]-[vitest]-js/src/index.js +0 -1
  248. package/template-[vue]-[vitest]-js/src/style.css +0 -34
  249. package/template-[vue]-[vitest]-js/tests/index.test.js +0 -16
  250. package/template-[vue]-[vitest]-js/vitest.setup.js +0 -1
  251. package/template-[vue]-[vitest]-ts/AGENTS.md +0 -5
  252. package/template-[vue]-[vitest]-ts/package.json +0 -35
  253. package/template-[vue]-[vitest]-ts/rslib.config.ts +0 -15
  254. package/template-[vue]-[vitest]-ts/src/Button.vue +0 -35
  255. package/template-[vue]-[vitest]-ts/src/index.ts +0 -1
  256. package/template-[vue]-[vitest]-ts/src/style.css +0 -34
  257. package/template-[vue]-[vitest]-ts/tests/index.test.ts +0 -16
  258. package/template-[vue]-[vitest]-ts/tsconfig.json +0 -24
  259. package/template-[vue]-[vitest]-ts/vitest.config.js +0 -13
  260. package/template-[vue]-[vitest]-ts/vitest.setup.js +0 -1
  261. /package/{template-[node-dual]-[]-js → template-node-dual-js}/package.json +0 -0
  262. /package/{template-[node-dual]-[]-js → template-node-dual-js}/rslib.config.mjs +0 -0
  263. /package/{template-[node-dual]-[]-js → template-node-dual-js}/src/index.js +0 -0
  264. /package/{template-[node-dual]-[]-ts → template-node-dual-ts}/package.json +0 -0
  265. /package/{template-[node-dual]-[]-ts → template-node-dual-ts}/rslib.config.ts +0 -0
  266. /package/{template-[node-dual]-[]-ts → template-node-dual-ts}/src/index.ts +0 -0
  267. /package/{template-[node-dual]-[]-ts → template-node-dual-ts}/tsconfig.json +0 -0
  268. /package/{template-[node-esm]-[]-js → template-node-esm-js}/package.json +0 -0
  269. /package/{template-[node-esm]-[]-js → template-node-esm-js}/rslib.config.mjs +0 -0
  270. /package/{template-[node-dual]-[rstest]-js → template-node-esm-js}/src/index.js +0 -0
  271. /package/{template-[node-esm]-[]-ts → template-node-esm-ts}/package.json +0 -0
  272. /package/{template-[node-esm]-[]-ts → template-node-esm-ts}/rslib.config.ts +0 -0
  273. /package/{template-[node-dual]-[rstest]-ts → template-node-esm-ts}/src/index.ts +0 -0
  274. /package/{template-[node-dual]-[rstest]-ts → template-node-esm-ts}/tsconfig.json +0 -0
  275. /package/{template-[react]-[]-js → template-react-js}/rslib.config.mjs +0 -0
  276. /package/{template-[react]-[]-js → template-react-js}/src/Button.jsx +0 -0
  277. /package/{template-[react]-[]-js → template-react-js}/src/button.css +0 -0
  278. /package/{template-[react]-[]-js → template-react-js}/src/index.jsx +0 -0
  279. /package/{template-[react]-[]-ts → template-react-ts}/rslib.config.ts +0 -0
  280. /package/{template-[react]-[]-ts → template-react-ts}/src/button.css +0 -0
  281. /package/{template-[react]-[]-ts → template-react-ts}/src/index.tsx +0 -0
  282. /package/{template-[react]-[]-ts → template-react-ts}/tsconfig.json +0 -0
  283. /package/{template-[node-dual]-[rstest]-js → template-rstest/node-js}/rstest.config.js +0 -0
  284. /package/{template-[node-dual]-[rstest]-js → template-rstest/node-js}/tests/index.test.js +0 -0
  285. /package/{template-[node-dual]-[rstest]-ts → template-rstest/node-ts}/rstest.config.ts +0 -0
  286. /package/{template-[node-dual]-[rstest]-ts → template-rstest/node-ts}/tests/index.test.ts +0 -0
  287. /package/{template-[react]-[rstest,storybook]-js → template-rstest/react-js}/rstest.config.js +0 -0
  288. /package/{template-[react]-[rstest,storybook]-js → template-rstest/react-js}/rstest.setup.js +0 -0
  289. /package/{template-[react]-[rstest,storybook]-js → template-rstest/react-js}/tests/index.test.jsx +0 -0
  290. /package/{template-[react]-[rstest,storybook]-ts → template-rstest/react-ts}/rstest.config.ts +0 -0
  291. /package/{template-[react]-[rstest,storybook]-ts → template-rstest/react-ts}/rstest.setup.ts +0 -0
  292. /package/{template-[react]-[rstest,storybook]-ts → template-rstest/react-ts}/tests/index.test.tsx +0 -0
  293. /package/{template-[react]-[rstest,storybook]-ts → template-rstest/react-ts}/tests/test.d.ts +0 -0
  294. /package/{template-[react]-[rstest,storybook]-ts → template-rstest/react-ts}/tests/tsconfig.json +0 -0
  295. /package/{template-[react]-[rstest]-js → template-rstest/vue-js}/rstest.config.js +0 -0
  296. /package/{template-[react]-[rstest]-js → template-rstest/vue-js}/rstest.setup.js +0 -0
  297. /package/{template-[vue]-[rstest,storybook]-js → template-rstest/vue-js}/tests/index.test.js +0 -0
  298. /package/{template-[react]-[rstest]-ts → template-rstest/vue-ts}/rstest.config.ts +0 -0
  299. /package/{template-[react]-[rstest]-ts → template-rstest/vue-ts}/rstest.setup.ts +0 -0
  300. /package/{template-[vue]-[rstest,storybook]-ts → template-rstest/vue-ts}/tests/index.test.ts +0 -0
  301. /package/{template-[react]-[rstest]-ts → template-rstest/vue-ts}/tests/test.d.ts +0 -0
  302. /package/{template-[react]-[rstest]-ts → template-rstest/vue-ts}/tests/tsconfig.json +0 -0
  303. /package/{template-[react]-[rstest,storybook]-js → template-storybook/react-js}/.storybook/main.js +0 -0
  304. /package/{template-[react]-[rstest,storybook]-js → template-storybook/react-js}/.storybook/preview.js +0 -0
  305. /package/{template-[react]-[rstest,storybook]-js → template-storybook/react-js}/stories/Button.stories.jsx +0 -0
  306. /package/{template-[react]-[rstest,storybook]-ts → template-storybook/react-ts}/.storybook/main.ts +0 -0
  307. /package/{template-[react]-[rstest,storybook]-ts → template-storybook/react-ts}/.storybook/preview.ts +0 -0
  308. /package/{template-[react]-[rstest,storybook]-ts → template-storybook/react-ts}/stories/Button.stories.ts +0 -0
  309. /package/{template-[vue]-[rstest,storybook]-js → template-storybook/vue-js}/.storybook/main.js +0 -0
  310. /package/{template-[react]-[storybook,vitest]-js → template-storybook/vue-js}/.storybook/preview.js +0 -0
  311. /package/{template-[vue]-[rstest,storybook]-js → template-storybook/vue-js}/stories/Button.stories.js +0 -0
  312. /package/{template-[vue]-[rstest,storybook]-ts → template-storybook/vue-ts}/.storybook/main.ts +0 -0
  313. /package/{template-[vue]-[rstest,storybook]-ts → template-storybook/vue-ts}/.storybook/preview.ts +0 -0
  314. /package/{template-[vue]-[rstest,storybook]-ts → template-storybook/vue-ts}/stories/Button.stories.js +0 -0
  315. /package/{template-[node-dual]-[vitest]-js → template-vitest}/AGENTS.md +0 -0
  316. /package/{template-[node-dual]-[vitest]-js → template-vitest/node-js}/tests/index.test.js +0 -0
  317. /package/{template-[node-dual]-[vitest]-js → template-vitest/node-js}/vitest.config.js +0 -0
  318. /package/{template-[node-dual]-[vitest]-ts → template-vitest/node-ts}/tests/index.test.ts +0 -0
  319. /package/{template-[node-dual]-[vitest]-ts → template-vitest/node-ts}/tests/tsconfig.json +0 -0
  320. /package/{template-[node-dual]-[vitest]-ts → template-vitest/node-ts}/vitest.config.ts +0 -0
  321. /package/{template-[react]-[storybook,vitest]-js → template-vitest/react-js}/tests/index.test.jsx +0 -0
  322. /package/{template-[react]-[storybook,vitest]-js → template-vitest/react-js}/vitest.config.js +0 -0
  323. /package/{template-[react]-[storybook,vitest]-js → template-vitest/react-js}/vitest.setup.js +0 -0
  324. /package/{template-[react]-[storybook,vitest]-ts → template-vitest/react-ts}/tests/index.test.tsx +0 -0
  325. /package/{template-[node-esm]-[vitest]-ts → template-vitest/react-ts}/tests/tsconfig.json +0 -0
  326. /package/{template-[react]-[storybook,vitest]-ts → template-vitest/react-ts}/vitest.config.ts +0 -0
  327. /package/{template-[react]-[storybook,vitest]-ts → template-vitest/react-ts}/vitest.setup.ts +0 -0
  328. /package/{template-[vue]-[storybook,vitest]-js → template-vitest/vue-js}/tests/index.test.js +0 -0
  329. /package/{template-[vue]-[storybook,vitest]-js → template-vitest/vue-js}/vitest.config.js +0 -0
  330. /package/{template-[react]-[vitest]-js → template-vitest/vue-js}/vitest.setup.js +0 -0
  331. /package/{template-[vue]-[storybook,vitest]-ts → template-vitest/vue-ts}/tests/index.test.ts +0 -0
  332. /package/{template-[react]-[vitest]-ts → template-vitest/vue-ts}/vitest.setup.ts +0 -0
  333. /package/{template-[vue]-[]-js → template-vue-js}/rslib.config.ts +0 -0
  334. /package/{template-[vue]-[]-js → template-vue-js}/src/Button.vue +0 -0
  335. /package/{template-[vue]-[]-js → template-vue-js}/src/index.js +0 -0
  336. /package/{template-[vue]-[]-js → template-vue-js}/src/style.css +0 -0
  337. /package/{template-[vue]-[]-ts → template-vue-ts}/rslib.config.ts +0 -0
  338. /package/{template-[vue]-[]-ts → template-vue-ts}/src/Button.vue +0 -0
  339. /package/{template-[vue]-[]-ts → template-vue-ts}/src/index.ts +0 -0
  340. /package/{template-[vue]-[]-ts → template-vue-ts}/src/style.css +0 -0
  341. /package/{template-[vue]-[]-ts → template-vue-ts}/tsconfig.json +0 -0
@@ -1,22 +0,0 @@
1
- {
2
- "name": "rslib-node-esm-js",
3
- "version": "0.0.0",
4
- "type": "module",
5
- "exports": {
6
- ".": {
7
- "import": "./dist/index.js"
8
- }
9
- },
10
- "files": [
11
- "dist"
12
- ],
13
- "scripts": {
14
- "build": "rslib build",
15
- "dev": "rslib build --watch",
16
- "test": "vitest run"
17
- },
18
- "devDependencies": {
19
- "@rslib/core": "workspace:*",
20
- "vitest": "^4.0.17"
21
- }
22
- }
@@ -1,10 +0,0 @@
1
- import { defineConfig } from '@rslib/core';
2
-
3
- export default defineConfig({
4
- lib: [
5
- {
6
- format: 'esm',
7
- syntax: ['node 18'],
8
- },
9
- ],
10
- });
@@ -1 +0,0 @@
1
- export const squared = (n) => n * n;
@@ -1,7 +0,0 @@
1
- import { expect, test } from 'vitest';
2
- import { squared } from '../src/index';
3
-
4
- test('squared', () => {
5
- expect(squared(2)).toBe(4);
6
- expect(squared(12)).toBe(144);
7
- });
@@ -1,8 +0,0 @@
1
- /// <reference types="vitest/config" />
2
-
3
- import { defineConfig } from 'vitest/config';
4
-
5
- export default defineConfig({
6
- // Configure Vitest (https://vitest.dev/config/)
7
- test: {},
8
- });
@@ -1,5 +0,0 @@
1
- ## Tools
2
-
3
- ### Vitest
4
-
5
- - Run `{{ packageManager }} run test` to test your code
@@ -1,26 +0,0 @@
1
- {
2
- "name": "rslib-node-esm-ts",
3
- "version": "0.0.0",
4
- "type": "module",
5
- "exports": {
6
- ".": {
7
- "types": "./dist/index.d.ts",
8
- "import": "./dist/index.js"
9
- }
10
- },
11
- "types": "./dist/index.d.ts",
12
- "files": [
13
- "dist"
14
- ],
15
- "scripts": {
16
- "build": "rslib build",
17
- "dev": "rslib build --watch",
18
- "test": "vitest run"
19
- },
20
- "devDependencies": {
21
- "@rslib/core": "workspace:*",
22
- "@types/node": "^24.10.9",
23
- "typescript": "^5.9.3",
24
- "vitest": "^4.0.17"
25
- }
26
- }
@@ -1,11 +0,0 @@
1
- import { defineConfig } from '@rslib/core';
2
-
3
- export default defineConfig({
4
- lib: [
5
- {
6
- format: 'esm',
7
- syntax: ['node 18'],
8
- dts: true,
9
- },
10
- ],
11
- });
@@ -1 +0,0 @@
1
- export const squared = (n: number): number => n * n;
@@ -1,7 +0,0 @@
1
- import { expect, test } from 'vitest';
2
- import { squared } from '../src/index';
3
-
4
- test('squared', () => {
5
- expect(squared(2)).toBe(4);
6
- expect(squared(12)).toBe(144);
7
- });
@@ -1,15 +0,0 @@
1
- {
2
- "compilerOptions": {
3
- "lib": ["ES2022"],
4
- "module": "ESNext",
5
- "noEmit": true,
6
- "strict": true,
7
- "skipLibCheck": true,
8
- "isolatedModules": true,
9
- "resolveJsonModule": true,
10
- "moduleResolution": "bundler",
11
- "useDefineForClassFields": true,
12
- "allowImportingTsExtensions": true
13
- },
14
- "include": ["src"]
15
- }
@@ -1,6 +0,0 @@
1
- import { defineConfig } from 'vitest/config';
2
-
3
- export default defineConfig({
4
- // Configure Vitest (https://vitest.dev/config/)
5
- test: {},
6
- });
@@ -1,29 +0,0 @@
1
- import './button.css';
2
-
3
- interface ButtonProps {
4
- primary?: boolean;
5
- backgroundColor?: string;
6
- size?: 'small' | 'medium' | 'large';
7
- label: string;
8
- onClick?: () => void;
9
- }
10
-
11
- export const Button = ({
12
- primary = false,
13
- size = 'medium',
14
- backgroundColor,
15
- label,
16
- ...props
17
- }: ButtonProps) => {
18
- const mode = primary ? 'demo-button--primary' : 'demo-button--secondary';
19
- return (
20
- <button
21
- type="button"
22
- className={['demo-button', `demo-button--${size}`, mode].join(' ')}
23
- style={{ backgroundColor }}
24
- {...props}
25
- >
26
- {label}
27
- </button>
28
- );
29
- };
@@ -1,9 +0,0 @@
1
- ## Tools
2
-
3
- ### Rstest
4
-
5
- - Run `{{ packageManager }} run test` to test your code
6
-
7
- ### Storybook
8
-
9
- - Run `{{ packageManager }} run storybook` to start the Storybook dev server
@@ -1,41 +0,0 @@
1
- {
2
- "name": "rslib-react-js",
3
- "version": "0.0.0",
4
- "type": "module",
5
- "exports": {
6
- ".": {
7
- "import": "./dist/index.js"
8
- }
9
- },
10
- "files": [
11
- "dist"
12
- ],
13
- "scripts": {
14
- "build": "rslib build",
15
- "build:storybook": "storybook build",
16
- "dev": "rslib build --watch",
17
- "storybook": "storybook dev",
18
- "test": "rstest"
19
- },
20
- "devDependencies": {
21
- "@rsbuild/core": "~1.7.2",
22
- "@rsbuild/plugin-react": "^1.4.3",
23
- "@rslib/core": "workspace:*",
24
- "@rstest/adapter-rslib": "^0.1.1",
25
- "@rstest/core": "^0.7.9",
26
- "@storybook/addon-docs": "^10.1.11",
27
- "@storybook/addon-onboarding": "^10.1.11",
28
- "@storybook/react": "^10.1.11",
29
- "@testing-library/jest-dom": "^6.9.1",
30
- "@testing-library/react": "^16.3.1",
31
- "happy-dom": "^20.3.3",
32
- "react": "^19.2.3",
33
- "storybook": "^10.1.11",
34
- "storybook-addon-rslib": "^3.2.2",
35
- "storybook-react-rsbuild": "^3.2.2"
36
- },
37
- "peerDependencies": {
38
- "react": ">=16.9.0",
39
- "react-dom": ">=16.9.0"
40
- }
41
- }
@@ -1,20 +0,0 @@
1
- import { pluginReact } from '@rsbuild/plugin-react';
2
- import { defineConfig } from '@rslib/core';
3
-
4
- export default defineConfig({
5
- source: {
6
- entry: {
7
- index: ['./src/**'],
8
- },
9
- },
10
- lib: [
11
- {
12
- bundle: false,
13
- format: 'esm',
14
- },
15
- ],
16
- output: {
17
- target: 'web',
18
- },
19
- plugins: [pluginReact()],
20
- });
@@ -1,21 +0,0 @@
1
- import './button.css';
2
-
3
- export const Button = ({
4
- primary = false,
5
- size = 'medium',
6
- backgroundColor,
7
- label,
8
- ...props
9
- }) => {
10
- const mode = primary ? 'demo-button--primary' : 'demo-button--secondary';
11
- return (
12
- <button
13
- type="button"
14
- className={['demo-button', `demo-button--${size}`, mode].join(' ')}
15
- style={{ backgroundColor }}
16
- {...props}
17
- >
18
- {label}
19
- </button>
20
- );
21
- };
@@ -1,34 +0,0 @@
1
- .demo-button {
2
- font-weight: 700;
3
- border: 0;
4
- border-radius: 3em;
5
- cursor: pointer;
6
- display: inline-block;
7
- line-height: 1;
8
- }
9
-
10
- .demo-button--primary {
11
- color: white;
12
- background-color: #1ea7fd;
13
- }
14
-
15
- .demo-button--secondary {
16
- color: #333;
17
- background-color: transparent;
18
- box-shadow: rgba(0, 0, 0, 0.15) 0px 0px 0px 1px inset;
19
- }
20
-
21
- .demo-button--small {
22
- font-size: 12px;
23
- padding: 10px 16px;
24
- }
25
-
26
- .demo-button--medium {
27
- font-size: 14px;
28
- padding: 11px 20px;
29
- }
30
-
31
- .demo-button--large {
32
- font-size: 16px;
33
- padding: 12px 24px;
34
- }
@@ -1 +0,0 @@
1
- export { Button } from './Button';
@@ -1,9 +0,0 @@
1
- ## Tools
2
-
3
- ### Rstest
4
-
5
- - Run `{{ packageManager }} run test` to test your code
6
-
7
- ### Storybook
8
-
9
- - Run `{{ packageManager }} run storybook` to start the Storybook dev server
@@ -1,45 +0,0 @@
1
- {
2
- "name": "rslib-react-ts",
3
- "version": "0.0.0",
4
- "type": "module",
5
- "exports": {
6
- ".": {
7
- "types": "./dist/index.d.ts",
8
- "import": "./dist/index.js"
9
- }
10
- },
11
- "types": "./dist/index.d.ts",
12
- "files": [
13
- "dist"
14
- ],
15
- "scripts": {
16
- "build": "rslib build",
17
- "build:storybook": "storybook build",
18
- "dev": "rslib build --watch",
19
- "storybook": "storybook dev",
20
- "test": "rstest"
21
- },
22
- "devDependencies": {
23
- "@rsbuild/core": "~1.7.2",
24
- "@rsbuild/plugin-react": "^1.4.3",
25
- "@rslib/core": "workspace:*",
26
- "@rstest/adapter-rslib": "^0.1.1",
27
- "@rstest/core": "^0.7.9",
28
- "@storybook/addon-docs": "^10.1.11",
29
- "@storybook/addon-onboarding": "^10.1.11",
30
- "@storybook/react": "^10.1.11",
31
- "@testing-library/jest-dom": "^6.9.1",
32
- "@testing-library/react": "^16.3.1",
33
- "@types/react": "^19.2.8",
34
- "happy-dom": "^20.3.3",
35
- "react": "^19.2.3",
36
- "storybook": "^10.1.11",
37
- "storybook-addon-rslib": "^3.2.2",
38
- "storybook-react-rsbuild": "^3.2.2",
39
- "typescript": "^5.9.3"
40
- },
41
- "peerDependencies": {
42
- "react": ">=16.9.0",
43
- "react-dom": ">=16.9.0"
44
- }
45
- }
@@ -1,21 +0,0 @@
1
- import { pluginReact } from '@rsbuild/plugin-react';
2
- import { defineConfig } from '@rslib/core';
3
-
4
- export default defineConfig({
5
- source: {
6
- entry: {
7
- index: ['./src/**'],
8
- },
9
- },
10
- lib: [
11
- {
12
- bundle: false,
13
- dts: true,
14
- format: 'esm',
15
- },
16
- ],
17
- output: {
18
- target: 'web',
19
- },
20
- plugins: [pluginReact()],
21
- });
@@ -1,29 +0,0 @@
1
- import './button.css';
2
-
3
- interface ButtonProps {
4
- primary?: boolean;
5
- backgroundColor?: string;
6
- size?: 'small' | 'medium' | 'large';
7
- label: string;
8
- onClick?: () => void;
9
- }
10
-
11
- export const Button = ({
12
- primary = false,
13
- size = 'medium',
14
- backgroundColor,
15
- label,
16
- ...props
17
- }: ButtonProps) => {
18
- const mode = primary ? 'demo-button--primary' : 'demo-button--secondary';
19
- return (
20
- <button
21
- type="button"
22
- className={['demo-button', `demo-button--${size}`, mode].join(' ')}
23
- style={{ backgroundColor }}
24
- {...props}
25
- >
26
- {label}
27
- </button>
28
- );
29
- };
@@ -1,34 +0,0 @@
1
- .demo-button {
2
- font-weight: 700;
3
- border: 0;
4
- border-radius: 3em;
5
- cursor: pointer;
6
- display: inline-block;
7
- line-height: 1;
8
- }
9
-
10
- .demo-button--primary {
11
- color: white;
12
- background-color: #1ea7fd;
13
- }
14
-
15
- .demo-button--secondary {
16
- color: #333;
17
- background-color: transparent;
18
- box-shadow: rgba(0, 0, 0, 0.15) 0px 0px 0px 1px inset;
19
- }
20
-
21
- .demo-button--small {
22
- font-size: 12px;
23
- padding: 10px 16px;
24
- }
25
-
26
- .demo-button--medium {
27
- font-size: 14px;
28
- padding: 11px 20px;
29
- }
30
-
31
- .demo-button--large {
32
- font-size: 16px;
33
- padding: 12px 24px;
34
- }
@@ -1 +0,0 @@
1
- export { Button } from './Button';
@@ -1,5 +0,0 @@
1
- ## Tools
2
-
3
- ### Rstest
4
-
5
- - Run `{{ packageManager }} run test` to test your code
@@ -1,32 +0,0 @@
1
- {
2
- "name": "rslib-react-js",
3
- "version": "0.0.0",
4
- "type": "module",
5
- "exports": {
6
- ".": {
7
- "import": "./dist/index.js"
8
- }
9
- },
10
- "files": [
11
- "dist"
12
- ],
13
- "scripts": {
14
- "build": "rslib build",
15
- "dev": "rslib build --watch",
16
- "test": "rstest"
17
- },
18
- "devDependencies": {
19
- "@rsbuild/plugin-react": "^1.4.3",
20
- "@rslib/core": "workspace:*",
21
- "@rstest/adapter-rslib": "^0.1.1",
22
- "@rstest/core": "^0.7.9",
23
- "@testing-library/jest-dom": "^6.9.1",
24
- "@testing-library/react": "^16.3.1",
25
- "happy-dom": "^20.3.3",
26
- "react": "^19.2.3"
27
- },
28
- "peerDependencies": {
29
- "react": ">=16.9.0",
30
- "react-dom": ">=16.9.0"
31
- }
32
- }
@@ -1,20 +0,0 @@
1
- import { pluginReact } from '@rsbuild/plugin-react';
2
- import { defineConfig } from '@rslib/core';
3
-
4
- export default defineConfig({
5
- source: {
6
- entry: {
7
- index: ['./src/**'],
8
- },
9
- },
10
- lib: [
11
- {
12
- bundle: false,
13
- format: 'esm',
14
- },
15
- ],
16
- output: {
17
- target: 'web',
18
- },
19
- plugins: [pluginReact()],
20
- });
@@ -1,21 +0,0 @@
1
- import './button.css';
2
-
3
- export const Button = ({
4
- primary = false,
5
- size = 'medium',
6
- backgroundColor,
7
- label,
8
- ...props
9
- }) => {
10
- const mode = primary ? 'demo-button--primary' : 'demo-button--secondary';
11
- return (
12
- <button
13
- type="button"
14
- className={['demo-button', `demo-button--${size}`, mode].join(' ')}
15
- style={{ backgroundColor }}
16
- {...props}
17
- >
18
- {label}
19
- </button>
20
- );
21
- };
@@ -1,34 +0,0 @@
1
- .demo-button {
2
- font-weight: 700;
3
- border: 0;
4
- border-radius: 3em;
5
- cursor: pointer;
6
- display: inline-block;
7
- line-height: 1;
8
- }
9
-
10
- .demo-button--primary {
11
- color: white;
12
- background-color: #1ea7fd;
13
- }
14
-
15
- .demo-button--secondary {
16
- color: #333;
17
- background-color: transparent;
18
- box-shadow: rgba(0, 0, 0, 0.15) 0px 0px 0px 1px inset;
19
- }
20
-
21
- .demo-button--small {
22
- font-size: 12px;
23
- padding: 10px 16px;
24
- }
25
-
26
- .demo-button--medium {
27
- font-size: 14px;
28
- padding: 11px 20px;
29
- }
30
-
31
- .demo-button--large {
32
- font-size: 16px;
33
- padding: 12px 24px;
34
- }
@@ -1 +0,0 @@
1
- export { Button } from './Button';
@@ -1,11 +0,0 @@
1
- import { expect, test } from '@rstest/core';
2
- import { render, screen } from '@testing-library/react';
3
- import { Button } from '../src/Button';
4
-
5
- test('The button should have correct background color', async () => {
6
- render(<Button backgroundColor="#ccc" label="Demo Button" />);
7
- const button = screen.getByText('Demo Button');
8
- expect(button).toHaveStyle({
9
- backgroundColor: '#ccc',
10
- });
11
- });
@@ -1,5 +0,0 @@
1
- ## Tools
2
-
3
- ### Rstest
4
-
5
- - Run `{{ packageManager }} run test` to test your code
@@ -1,36 +0,0 @@
1
- {
2
- "name": "rslib-react-ts",
3
- "version": "0.0.0",
4
- "type": "module",
5
- "exports": {
6
- ".": {
7
- "types": "./dist/index.d.ts",
8
- "import": "./dist/index.js"
9
- }
10
- },
11
- "types": "./dist/index.d.ts",
12
- "files": [
13
- "dist"
14
- ],
15
- "scripts": {
16
- "build": "rslib build",
17
- "dev": "rslib build --watch",
18
- "test": "rstest"
19
- },
20
- "devDependencies": {
21
- "@rsbuild/plugin-react": "^1.4.3",
22
- "@rslib/core": "workspace:*",
23
- "@rstest/adapter-rslib": "^0.1.1",
24
- "@rstest/core": "^0.7.9",
25
- "@testing-library/jest-dom": "^6.9.1",
26
- "@testing-library/react": "^16.3.1",
27
- "@types/react": "^19.2.8",
28
- "happy-dom": "^20.3.3",
29
- "react": "^19.2.3",
30
- "typescript": "^5.9.3"
31
- },
32
- "peerDependencies": {
33
- "react": ">=16.9.0",
34
- "react-dom": ">=16.9.0"
35
- }
36
- }
@@ -1,21 +0,0 @@
1
- import { pluginReact } from '@rsbuild/plugin-react';
2
- import { defineConfig } from '@rslib/core';
3
-
4
- export default defineConfig({
5
- source: {
6
- entry: {
7
- index: ['./src/**'],
8
- },
9
- },
10
- lib: [
11
- {
12
- bundle: false,
13
- dts: true,
14
- format: 'esm',
15
- },
16
- ],
17
- output: {
18
- target: 'web',
19
- },
20
- plugins: [pluginReact()],
21
- });