create-blocklet 0.4.81 → 0.5.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.
Files changed (329) hide show
  1. package/README.md +4 -4
  2. package/{templates/docsite → common}/.editorconfig +0 -0
  3. package/{templates/docsite → common}/.github/workflows/main.yml +0 -0
  4. package/{templates/docsite → common}/.github/workflows/pr-title.yml +0 -0
  5. package/{templates/docsite → common}/.github/workflows/version-check.yml +0 -0
  6. package/{templates/express-api → common}/.husky/pre-commit +0 -0
  7. package/{templates/docsite → common}/.prettierrc +0 -0
  8. package/{templates/docsite → common}/LICENSE +0 -0
  9. package/{templates/docsite → common}/_gitignore +0 -0
  10. package/{templates/docsite → common}/_npmrc +0 -0
  11. package/{templates/docsite → common}/logo.png +0 -0
  12. package/{templates/docsite → common}/public/favicon.ico +0 -0
  13. package/{templates/docsite → common}/public/robots.txt +0 -0
  14. package/{templates/docsite → common}/screenshots/.gitkeep +0 -0
  15. package/{templates/express-api → common}/scripts/build-clean.js +0 -0
  16. package/{templates/docsite → common}/scripts/bump-version.mjs +6 -4
  17. package/{templates/docsite → common}/version +0 -0
  18. package/index.js +64 -70
  19. package/package.json +5 -6
  20. package/templates/docsite/package.json +4 -4
  21. package/templates/express-api/package.json +5 -5
  22. package/templates/html-static/package.json +3 -3
  23. package/templates/monorepo/package.json +1 -1
  24. package/templates/monorepo/scripts/bump-version.mjs +13 -17
  25. package/templates/nextjs-dapp/package.json +7 -7
  26. package/templates/react-dapp/api/dev.js +4 -0
  27. package/templates/react-dapp/api/index.js +10 -12
  28. package/templates/react-dapp/index.html +0 -1
  29. package/templates/react-dapp/package.json +11 -14
  30. package/templates/react-dapp/vite.config.js +3 -28
  31. package/templates/react-gun-dapp/api/dev.js +4 -0
  32. package/templates/react-gun-dapp/api/index.js +4 -12
  33. package/templates/react-gun-dapp/index.html +0 -1
  34. package/templates/react-gun-dapp/package.json +15 -17
  35. package/templates/react-gun-dapp/vite.config.js +3 -33
  36. package/templates/react-static/index.html +0 -1
  37. package/templates/react-static/package.json +8 -9
  38. package/templates/react-static/vite.config.js +3 -18
  39. package/templates/solidjs-dapp/api/dev.js +4 -0
  40. package/templates/solidjs-dapp/api/index.js +10 -12
  41. package/templates/solidjs-dapp/index.html +0 -1
  42. package/templates/solidjs-dapp/package.json +14 -17
  43. package/templates/solidjs-dapp/vite.config.js +3 -23
  44. package/templates/solidjs-static/index.html +0 -1
  45. package/templates/solidjs-static/package.json +7 -8
  46. package/templates/solidjs-static/vite.config.js +3 -17
  47. package/templates/svelte-dapp/api/dev.js +4 -0
  48. package/templates/svelte-dapp/api/index.js +10 -12
  49. package/templates/svelte-dapp/index.html +0 -1
  50. package/templates/svelte-dapp/package.json +13 -15
  51. package/templates/svelte-dapp/vite.config.js +3 -23
  52. package/templates/svelte-static/index.html +0 -1
  53. package/templates/svelte-static/package.json +6 -7
  54. package/templates/svelte-static/vite.config.js +3 -17
  55. package/templates/vue-dapp/api/dev.js +4 -0
  56. package/templates/vue-dapp/api/index.js +10 -12
  57. package/templates/vue-dapp/index.html +0 -1
  58. package/templates/vue-dapp/package.json +14 -17
  59. package/templates/vue-dapp/vite.config.js +3 -27
  60. package/templates/vue-static/index.html +0 -1
  61. package/templates/vue-static/package.json +7 -8
  62. package/templates/vue-static/vite.config.js +3 -17
  63. package/templates/vue2-dapp/.eslintrc.js +0 -3
  64. package/templates/vue2-dapp/api/dev.js +4 -0
  65. package/templates/vue2-dapp/api/index.js +10 -12
  66. package/templates/vue2-dapp/{public/index.html → index.html} +4 -6
  67. package/templates/vue2-dapp/package.json +19 -24
  68. package/templates/vue2-dapp/vite.config.js +10 -0
  69. package/templates/vue2-static/.eslintrc.js +0 -3
  70. package/templates/vue2-static/{public/index.html → index.html} +4 -6
  71. package/templates/vue2-static/package.json +13 -16
  72. package/templates/vue2-static/vite.config.js +10 -0
  73. package/templates/website/package.json +3 -3
  74. package/templates/docsite/scripts/build-clean.js +0 -6
  75. package/templates/express-api/.editorconfig +0 -23
  76. package/templates/express-api/.github/workflows/main.yml +0 -36
  77. package/templates/express-api/.github/workflows/pr-title.yml +0 -21
  78. package/templates/express-api/.github/workflows/version-check.yml +0 -20
  79. package/templates/express-api/.prettierrc +0 -9
  80. package/templates/express-api/LICENSE +0 -13
  81. package/templates/express-api/_gitignore +0 -28
  82. package/templates/express-api/_npmrc +0 -3
  83. package/templates/express-api/logo.png +0 -0
  84. package/templates/express-api/public/favicon.ico +0 -0
  85. package/templates/express-api/public/robots.txt +0 -3
  86. package/templates/express-api/screenshots/.gitkeep +0 -0
  87. package/templates/express-api/scripts/bump-version.mjs +0 -33
  88. package/templates/express-api/version +0 -1
  89. package/templates/html-static/.editorconfig +0 -23
  90. package/templates/html-static/.github/workflows/main.yml +0 -36
  91. package/templates/html-static/.github/workflows/pr-title.yml +0 -21
  92. package/templates/html-static/.github/workflows/version-check.yml +0 -20
  93. package/templates/html-static/.prettierrc +0 -9
  94. package/templates/html-static/LICENSE +0 -13
  95. package/templates/html-static/_gitignore +0 -28
  96. package/templates/html-static/_npmrc +0 -3
  97. package/templates/html-static/logo.png +0 -0
  98. package/templates/html-static/public/favicon.ico +0 -0
  99. package/templates/html-static/public/robots.txt +0 -3
  100. package/templates/html-static/screenshots/.gitkeep +0 -0
  101. package/templates/html-static/scripts/build-clean.js +0 -5
  102. package/templates/html-static/scripts/bump-version.mjs +0 -33
  103. package/templates/html-static/version +0 -1
  104. package/templates/nextjs-dapp/.editorconfig +0 -23
  105. package/templates/nextjs-dapp/.github/workflows/main.yml +0 -36
  106. package/templates/nextjs-dapp/.github/workflows/pr-title.yml +0 -21
  107. package/templates/nextjs-dapp/.github/workflows/version-check.yml +0 -20
  108. package/templates/nextjs-dapp/.husky/pre-commit +0 -4
  109. package/templates/nextjs-dapp/.prettierrc +0 -9
  110. package/templates/nextjs-dapp/LICENSE +0 -13
  111. package/templates/nextjs-dapp/_gitignore +0 -28
  112. package/templates/nextjs-dapp/_npmrc +0 -3
  113. package/templates/nextjs-dapp/logo.png +0 -0
  114. package/templates/nextjs-dapp/public/favicon.ico +0 -0
  115. package/templates/nextjs-dapp/public/robots.txt +0 -3
  116. package/templates/nextjs-dapp/screenshots/.gitkeep +0 -0
  117. package/templates/nextjs-dapp/scripts/build-clean.js +0 -5
  118. package/templates/nextjs-dapp/scripts/bump-version.mjs +0 -33
  119. package/templates/nextjs-dapp/version +0 -1
  120. package/templates/react-dapp/.editorconfig +0 -23
  121. package/templates/react-dapp/.env +0 -2
  122. package/templates/react-dapp/.github/workflows/main.yml +0 -36
  123. package/templates/react-dapp/.github/workflows/pr-title.yml +0 -21
  124. package/templates/react-dapp/.github/workflows/version-check.yml +0 -20
  125. package/templates/react-dapp/.husky/pre-commit +0 -4
  126. package/templates/react-dapp/.prettierrc +0 -9
  127. package/templates/react-dapp/LICENSE +0 -13
  128. package/templates/react-dapp/_gitignore +0 -28
  129. package/templates/react-dapp/_npmrc +0 -3
  130. package/templates/react-dapp/logo.png +0 -0
  131. package/templates/react-dapp/public/favicon.ico +0 -0
  132. package/templates/react-dapp/public/robots.txt +0 -3
  133. package/templates/react-dapp/screenshots/.gitkeep +0 -0
  134. package/templates/react-dapp/scripts/build-clean.js +0 -5
  135. package/templates/react-dapp/scripts/bump-version.mjs +0 -33
  136. package/templates/react-dapp/version +0 -1
  137. package/templates/react-gun-dapp/.editorconfig +0 -23
  138. package/templates/react-gun-dapp/.env +0 -2
  139. package/templates/react-gun-dapp/.github/workflows/main.yml +0 -36
  140. package/templates/react-gun-dapp/.github/workflows/pr-title.yml +0 -21
  141. package/templates/react-gun-dapp/.github/workflows/version-check.yml +0 -20
  142. package/templates/react-gun-dapp/.husky/pre-commit +0 -4
  143. package/templates/react-gun-dapp/.prettierrc +0 -9
  144. package/templates/react-gun-dapp/LICENSE +0 -13
  145. package/templates/react-gun-dapp/_gitignore +0 -28
  146. package/templates/react-gun-dapp/_npmrc +0 -3
  147. package/templates/react-gun-dapp/logo.png +0 -0
  148. package/templates/react-gun-dapp/public/favicon.ico +0 -0
  149. package/templates/react-gun-dapp/public/robots.txt +0 -3
  150. package/templates/react-gun-dapp/screenshots/.gitkeep +0 -0
  151. package/templates/react-gun-dapp/scripts/build-clean.js +0 -5
  152. package/templates/react-gun-dapp/scripts/bump-version.mjs +0 -33
  153. package/templates/react-gun-dapp/version +0 -1
  154. package/templates/react-static/.editorconfig +0 -23
  155. package/templates/react-static/.env +0 -2
  156. package/templates/react-static/.github/workflows/main.yml +0 -36
  157. package/templates/react-static/.github/workflows/pr-title.yml +0 -21
  158. package/templates/react-static/.github/workflows/version-check.yml +0 -20
  159. package/templates/react-static/.husky/pre-commit +0 -4
  160. package/templates/react-static/.prettierrc +0 -9
  161. package/templates/react-static/LICENSE +0 -13
  162. package/templates/react-static/_gitignore +0 -28
  163. package/templates/react-static/_npmrc +0 -3
  164. package/templates/react-static/logo.png +0 -0
  165. package/templates/react-static/public/favicon.ico +0 -0
  166. package/templates/react-static/public/robots.txt +0 -3
  167. package/templates/react-static/screenshots/.gitkeep +0 -0
  168. package/templates/react-static/scripts/build-clean.js +0 -5
  169. package/templates/react-static/scripts/bump-version.mjs +0 -33
  170. package/templates/react-static/version +0 -1
  171. package/templates/solidjs-dapp/.editorconfig +0 -23
  172. package/templates/solidjs-dapp/.env +0 -1
  173. package/templates/solidjs-dapp/.github/workflows/main.yml +0 -36
  174. package/templates/solidjs-dapp/.github/workflows/pr-title.yml +0 -21
  175. package/templates/solidjs-dapp/.github/workflows/version-check.yml +0 -20
  176. package/templates/solidjs-dapp/.husky/pre-commit +0 -4
  177. package/templates/solidjs-dapp/.prettierrc +0 -9
  178. package/templates/solidjs-dapp/LICENSE +0 -13
  179. package/templates/solidjs-dapp/_gitignore +0 -28
  180. package/templates/solidjs-dapp/_npmrc +0 -3
  181. package/templates/solidjs-dapp/logo.png +0 -0
  182. package/templates/solidjs-dapp/public/favicon.ico +0 -0
  183. package/templates/solidjs-dapp/public/robots.txt +0 -3
  184. package/templates/solidjs-dapp/screenshots/.gitkeep +0 -0
  185. package/templates/solidjs-dapp/scripts/build-clean.js +0 -5
  186. package/templates/solidjs-dapp/scripts/bump-version.mjs +0 -33
  187. package/templates/solidjs-dapp/version +0 -1
  188. package/templates/solidjs-static/.editorconfig +0 -23
  189. package/templates/solidjs-static/.env +0 -1
  190. package/templates/solidjs-static/.github/workflows/main.yml +0 -36
  191. package/templates/solidjs-static/.github/workflows/pr-title.yml +0 -21
  192. package/templates/solidjs-static/.github/workflows/version-check.yml +0 -20
  193. package/templates/solidjs-static/.husky/pre-commit +0 -4
  194. package/templates/solidjs-static/.prettierrc +0 -9
  195. package/templates/solidjs-static/LICENSE +0 -13
  196. package/templates/solidjs-static/_gitignore +0 -28
  197. package/templates/solidjs-static/_npmrc +0 -3
  198. package/templates/solidjs-static/logo.png +0 -0
  199. package/templates/solidjs-static/public/favicon.ico +0 -0
  200. package/templates/solidjs-static/public/robots.txt +0 -3
  201. package/templates/solidjs-static/screenshots/.gitkeep +0 -0
  202. package/templates/solidjs-static/scripts/build-clean.js +0 -5
  203. package/templates/solidjs-static/scripts/bump-version.mjs +0 -33
  204. package/templates/solidjs-static/version +0 -1
  205. package/templates/svelte-dapp/.editorconfig +0 -23
  206. package/templates/svelte-dapp/.env +0 -1
  207. package/templates/svelte-dapp/.github/workflows/main.yml +0 -36
  208. package/templates/svelte-dapp/.github/workflows/pr-title.yml +0 -21
  209. package/templates/svelte-dapp/.github/workflows/version-check.yml +0 -20
  210. package/templates/svelte-dapp/.husky/pre-commit +0 -4
  211. package/templates/svelte-dapp/.prettierrc +0 -9
  212. package/templates/svelte-dapp/.vscode/extensions.json +0 -3
  213. package/templates/svelte-dapp/LICENSE +0 -13
  214. package/templates/svelte-dapp/_gitignore +0 -28
  215. package/templates/svelte-dapp/_npmrc +0 -3
  216. package/templates/svelte-dapp/logo.png +0 -0
  217. package/templates/svelte-dapp/public/favicon.ico +0 -0
  218. package/templates/svelte-dapp/public/robots.txt +0 -3
  219. package/templates/svelte-dapp/screenshots/.gitkeep +0 -0
  220. package/templates/svelte-dapp/scripts/build-clean.js +0 -5
  221. package/templates/svelte-dapp/scripts/bump-version.mjs +0 -33
  222. package/templates/svelte-dapp/version +0 -1
  223. package/templates/svelte-static/.editorconfig +0 -23
  224. package/templates/svelte-static/.env +0 -1
  225. package/templates/svelte-static/.github/workflows/main.yml +0 -36
  226. package/templates/svelte-static/.github/workflows/pr-title.yml +0 -21
  227. package/templates/svelte-static/.github/workflows/version-check.yml +0 -20
  228. package/templates/svelte-static/.husky/pre-commit +0 -4
  229. package/templates/svelte-static/.prettierrc +0 -9
  230. package/templates/svelte-static/.vscode/extensions.json +0 -3
  231. package/templates/svelte-static/LICENSE +0 -13
  232. package/templates/svelte-static/_gitignore +0 -28
  233. package/templates/svelte-static/_npmrc +0 -3
  234. package/templates/svelte-static/logo.png +0 -0
  235. package/templates/svelte-static/public/favicon.ico +0 -0
  236. package/templates/svelte-static/public/robots.txt +0 -3
  237. package/templates/svelte-static/screenshots/.gitkeep +0 -0
  238. package/templates/svelte-static/scripts/build-clean.js +0 -5
  239. package/templates/svelte-static/scripts/bump-version.mjs +0 -33
  240. package/templates/svelte-static/version +0 -1
  241. package/templates/vue-dapp/.editorconfig +0 -23
  242. package/templates/vue-dapp/.env +0 -1
  243. package/templates/vue-dapp/.github/workflows/main.yml +0 -36
  244. package/templates/vue-dapp/.github/workflows/pr-title.yml +0 -21
  245. package/templates/vue-dapp/.github/workflows/version-check.yml +0 -20
  246. package/templates/vue-dapp/.husky/pre-commit +0 -4
  247. package/templates/vue-dapp/.prettierrc +0 -9
  248. package/templates/vue-dapp/LICENSE +0 -13
  249. package/templates/vue-dapp/_gitignore +0 -28
  250. package/templates/vue-dapp/_npmrc +0 -3
  251. package/templates/vue-dapp/logo.png +0 -0
  252. package/templates/vue-dapp/public/favicon.ico +0 -0
  253. package/templates/vue-dapp/public/robots.txt +0 -3
  254. package/templates/vue-dapp/screenshots/.gitkeep +0 -0
  255. package/templates/vue-dapp/scripts/build-clean.js +0 -5
  256. package/templates/vue-dapp/scripts/bump-version.mjs +0 -33
  257. package/templates/vue-dapp/version +0 -1
  258. package/templates/vue-static/.editorconfig +0 -23
  259. package/templates/vue-static/.env +0 -1
  260. package/templates/vue-static/.github/workflows/main.yml +0 -36
  261. package/templates/vue-static/.github/workflows/pr-title.yml +0 -21
  262. package/templates/vue-static/.github/workflows/version-check.yml +0 -20
  263. package/templates/vue-static/.husky/pre-commit +0 -4
  264. package/templates/vue-static/.prettierrc +0 -9
  265. package/templates/vue-static/LICENSE +0 -13
  266. package/templates/vue-static/_gitignore +0 -28
  267. package/templates/vue-static/_npmrc +0 -3
  268. package/templates/vue-static/logo.png +0 -0
  269. package/templates/vue-static/public/favicon.ico +0 -0
  270. package/templates/vue-static/public/robots.txt +0 -3
  271. package/templates/vue-static/screenshots/.gitkeep +0 -0
  272. package/templates/vue-static/scripts/build-clean.js +0 -5
  273. package/templates/vue-static/scripts/bump-version.mjs +0 -33
  274. package/templates/vue-static/version +0 -1
  275. package/templates/vue2-dapp/.editorconfig +0 -23
  276. package/templates/vue2-dapp/.env +0 -1
  277. package/templates/vue2-dapp/.github/workflows/main.yml +0 -36
  278. package/templates/vue2-dapp/.github/workflows/pr-title.yml +0 -21
  279. package/templates/vue2-dapp/.github/workflows/version-check.yml +0 -20
  280. package/templates/vue2-dapp/.husky/pre-commit +0 -4
  281. package/templates/vue2-dapp/.prettierrc +0 -9
  282. package/templates/vue2-dapp/LICENSE +0 -13
  283. package/templates/vue2-dapp/_gitignore +0 -28
  284. package/templates/vue2-dapp/_npmrc +0 -3
  285. package/templates/vue2-dapp/babel.config.js +0 -3
  286. package/templates/vue2-dapp/jsconfig.json +0 -19
  287. package/templates/vue2-dapp/logo.png +0 -0
  288. package/templates/vue2-dapp/public/favicon.ico +0 -0
  289. package/templates/vue2-dapp/public/robots.txt +0 -3
  290. package/templates/vue2-dapp/screenshots/.gitkeep +0 -0
  291. package/templates/vue2-dapp/scripts/build-clean.js +0 -5
  292. package/templates/vue2-dapp/scripts/bump-version.mjs +0 -33
  293. package/templates/vue2-dapp/version +0 -1
  294. package/templates/vue2-dapp/vue.config.js +0 -25
  295. package/templates/vue2-static/.editorconfig +0 -23
  296. package/templates/vue2-static/.env +0 -1
  297. package/templates/vue2-static/.github/workflows/main.yml +0 -36
  298. package/templates/vue2-static/.github/workflows/pr-title.yml +0 -21
  299. package/templates/vue2-static/.github/workflows/version-check.yml +0 -20
  300. package/templates/vue2-static/.husky/pre-commit +0 -4
  301. package/templates/vue2-static/.prettierrc +0 -9
  302. package/templates/vue2-static/LICENSE +0 -13
  303. package/templates/vue2-static/_gitignore +0 -28
  304. package/templates/vue2-static/_npmrc +0 -3
  305. package/templates/vue2-static/babel.config.js +0 -3
  306. package/templates/vue2-static/jsconfig.json +0 -19
  307. package/templates/vue2-static/logo.png +0 -0
  308. package/templates/vue2-static/public/favicon.ico +0 -0
  309. package/templates/vue2-static/public/robots.txt +0 -3
  310. package/templates/vue2-static/screenshots/.gitkeep +0 -0
  311. package/templates/vue2-static/scripts/build-clean.js +0 -5
  312. package/templates/vue2-static/scripts/bump-version.mjs +0 -33
  313. package/templates/vue2-static/version +0 -1
  314. package/templates/vue2-static/vue.config.js +0 -17
  315. package/templates/website/.editorconfig +0 -23
  316. package/templates/website/.github/workflows/main.yml +0 -36
  317. package/templates/website/.github/workflows/pr-title.yml +0 -21
  318. package/templates/website/.github/workflows/version-check.yml +0 -20
  319. package/templates/website/.prettierrc +0 -9
  320. package/templates/website/LICENSE +0 -13
  321. package/templates/website/_gitignore +0 -28
  322. package/templates/website/_npmrc +0 -3
  323. package/templates/website/logo.png +0 -0
  324. package/templates/website/public/favicon.ico +0 -0
  325. package/templates/website/public/robots.txt +0 -3
  326. package/templates/website/screenshots/.gitkeep +0 -0
  327. package/templates/website/scripts/build-clean.js +0 -6
  328. package/templates/website/scripts/bump-version.mjs +0 -33
  329. package/templates/website/version +0 -1
@@ -1,21 +0,0 @@
1
- name: 'Lint PR Title'
2
-
3
- on:
4
- pull_request:
5
- types:
6
- - opened
7
- - reopened
8
- - edited
9
- - synchronize
10
- branches:
11
- - main
12
- - dev
13
- - master
14
-
15
- jobs:
16
- lint-title:
17
- runs-on: ubuntu-latest
18
- steps:
19
- - uses: ArcBlock/action-lint-pull-request-title@master
20
- env:
21
- GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
@@ -1,20 +0,0 @@
1
- name: 'Version Check'
2
-
3
- on:
4
- pull_request:
5
- types:
6
- - opened
7
- - reopened
8
- - edited
9
- - synchronize
10
- branches:
11
- - main
12
- - master
13
- jobs:
14
- main:
15
- runs-on: ubuntu-latest
16
- steps:
17
- - name: action-version-check
18
- uses: arcblock/action-version-check@master
19
- env:
20
- GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
@@ -1,9 +0,0 @@
1
- {
2
- "printWidth": 120,
3
- "useTabs": false,
4
- "tabWidth": 2,
5
- "trailingComma": "es5",
6
- "bracketSameLine": true,
7
- "semi": true,
8
- "singleQuote": true
9
- }
@@ -1,13 +0,0 @@
1
- Copyright 2018-2020 ArcBlock
2
-
3
- Licensed under the Apache License, Version 2.0 (the "License");
4
- you may not use this file except in compliance with the License.
5
- You may obtain a copy of the License at
6
-
7
- http://www.apache.org/licenses/LICENSE-2.0
8
-
9
- Unless required by applicable law or agreed to in writing, software
10
- distributed under the License is distributed on an "AS IS" BASIS,
11
- WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12
- See the License for the specific language governing permissions and
13
- limitations under the License.
@@ -1,28 +0,0 @@
1
- # See https://help.github.com/articles/ignoring-files/ for more about ignoring files.
2
-
3
- # dependencies
4
- .pnp
5
- .pnp.js
6
- .DS_Store
7
- node_modules
8
-
9
- # testing
10
- coverage
11
-
12
- # production
13
- build
14
- dist
15
- dist-ssr
16
- .blocklet
17
-
18
- # local env files
19
- *.local
20
-
21
- # Log files
22
- logs
23
- *.log
24
- npm-debug.log*
25
- yarn-debug.log*
26
- yarn-error.log*
27
- pnpm-debug.log*
28
- lerna-debug.log*
@@ -1,3 +0,0 @@
1
- ## force pnpm to hoist
2
- shamefully-hoist=true
3
- strict-peer-dependencies=false
Binary file
@@ -1,3 +0,0 @@
1
- # https://www.robotstxt.org/robotstxt.html
2
- User-agent: *
3
- Disallow:
File without changes
@@ -1,6 +0,0 @@
1
- const rimraf = require('rimraf');
2
-
3
- console.log('clean .blocklet folder && node_modules/.vite');
4
- rimraf.sync('.blocklet');
5
- rimraf.sync('node_modules/.vite');
6
- console.log('clean .blocklet folder && node_modules/.vite done!');
@@ -1,33 +0,0 @@
1
- /* eslint-disable no-console */
2
- import { execSync } from 'child_process';
3
- import { $, chalk, fs } from 'zx';
4
-
5
- execSync('bumpp --no-tag --no-commit --no-push package.json', { stdio: 'inherit' });
6
-
7
- const { version } = await fs.readJSON('package.json');
8
-
9
- let newChangelog = '';
10
-
11
- try {
12
- const gitRes = await $`git log --pretty=format:"- %s" "master"...HEAD`;
13
- newChangelog = gitRes.stdout.trim();
14
- } catch {
15
- console.error(chalk.redBright('Could not get git log, please write changelog manually.'));
16
- }
17
-
18
- const now = new Date();
19
- const currentDate = `${now.getFullYear()}-${now.getMonth() + 1}-${now.getDate()}`;
20
- const title = `## ${version} (${currentDate})`;
21
-
22
- await fs.ensureFile('CHANGELOG.md');
23
- const oldChangelog = await fs.readFile('CHANGELOG.md', 'utf8');
24
- const changelog = [title, newChangelog, oldChangelog].filter((item) => !!item).join('\n\n');
25
- await fs.writeFile('CHANGELOG.md', changelog);
26
-
27
- console.log(`\nNow you can make adjustments to ${chalk.cyan('CHANGELOG.md')}. Then press enter to continue.`);
28
-
29
- process.stdin.setRawMode(true);
30
- process.stdin.resume();
31
- process.stdin.on('data', process.exit.bind(process, 0));
32
-
33
- await fs.writeFileSync('version', version);
@@ -1 +0,0 @@
1
- 0.1.0