create-blocklet 0.5.0 → 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 (272) hide show
  1. package/{templates/docsite → common}/.editorconfig +0 -0
  2. package/{templates/docsite → common}/.github/workflows/main.yml +0 -0
  3. package/{templates/docsite → common}/.github/workflows/pr-title.yml +0 -0
  4. package/{templates/docsite → common}/.github/workflows/version-check.yml +0 -0
  5. package/{templates/express-api → common}/.husky/pre-commit +0 -0
  6. package/{templates/docsite → common}/.prettierrc +0 -0
  7. package/{templates/docsite → common}/LICENSE +0 -0
  8. package/{templates/docsite → common}/_gitignore +0 -0
  9. package/{templates/docsite → common}/_npmrc +0 -0
  10. package/{templates/docsite → common}/logo.png +0 -0
  11. package/{templates/docsite → common}/public/favicon.ico +0 -0
  12. package/{templates/docsite → common}/public/robots.txt +0 -0
  13. package/{templates/docsite → common}/screenshots/.gitkeep +0 -0
  14. package/{templates/express-api → common}/scripts/build-clean.js +0 -0
  15. package/{templates/docsite → common}/scripts/bump-version.mjs +6 -4
  16. package/{templates/docsite → common}/version +0 -0
  17. package/index.js +23 -6
  18. package/package.json +1 -1
  19. package/templates/html-static/package.json +1 -1
  20. package/templates/monorepo/package.json +2 -2
  21. package/templates/monorepo/scripts/bump-version.mjs +13 -17
  22. package/templates/react-dapp/package.json +1 -1
  23. package/templates/react-gun-dapp/package.json +1 -1
  24. package/templates/react-static/package.json +1 -1
  25. package/templates/solidjs-dapp/package.json +1 -1
  26. package/templates/solidjs-static/package.json +1 -1
  27. package/templates/svelte-dapp/package.json +1 -1
  28. package/templates/svelte-static/package.json +1 -1
  29. package/templates/vue-dapp/package.json +1 -1
  30. package/templates/vue-static/package.json +1 -1
  31. package/templates/vue2-dapp/package.json +1 -1
  32. package/templates/vue2-static/package.json +1 -1
  33. package/templates/docsite/scripts/build-clean.js +0 -6
  34. package/templates/express-api/.editorconfig +0 -23
  35. package/templates/express-api/.github/workflows/main.yml +0 -36
  36. package/templates/express-api/.github/workflows/pr-title.yml +0 -21
  37. package/templates/express-api/.github/workflows/version-check.yml +0 -20
  38. package/templates/express-api/.prettierrc +0 -9
  39. package/templates/express-api/LICENSE +0 -13
  40. package/templates/express-api/_gitignore +0 -28
  41. package/templates/express-api/_npmrc +0 -3
  42. package/templates/express-api/logo.png +0 -0
  43. package/templates/express-api/public/favicon.ico +0 -0
  44. package/templates/express-api/public/robots.txt +0 -3
  45. package/templates/express-api/screenshots/.gitkeep +0 -0
  46. package/templates/express-api/scripts/bump-version.mjs +0 -33
  47. package/templates/express-api/version +0 -1
  48. package/templates/html-static/.editorconfig +0 -23
  49. package/templates/html-static/.github/workflows/main.yml +0 -36
  50. package/templates/html-static/.github/workflows/pr-title.yml +0 -21
  51. package/templates/html-static/.github/workflows/version-check.yml +0 -20
  52. package/templates/html-static/.prettierrc +0 -9
  53. package/templates/html-static/LICENSE +0 -13
  54. package/templates/html-static/_gitignore +0 -28
  55. package/templates/html-static/_npmrc +0 -3
  56. package/templates/html-static/logo.png +0 -0
  57. package/templates/html-static/public/favicon.ico +0 -0
  58. package/templates/html-static/public/robots.txt +0 -3
  59. package/templates/html-static/screenshots/.gitkeep +0 -0
  60. package/templates/html-static/scripts/build-clean.js +0 -5
  61. package/templates/html-static/scripts/bump-version.mjs +0 -33
  62. package/templates/html-static/version +0 -1
  63. package/templates/nextjs-dapp/.editorconfig +0 -23
  64. package/templates/nextjs-dapp/.github/workflows/main.yml +0 -36
  65. package/templates/nextjs-dapp/.github/workflows/pr-title.yml +0 -21
  66. package/templates/nextjs-dapp/.github/workflows/version-check.yml +0 -20
  67. package/templates/nextjs-dapp/.husky/pre-commit +0 -4
  68. package/templates/nextjs-dapp/.prettierrc +0 -9
  69. package/templates/nextjs-dapp/LICENSE +0 -13
  70. package/templates/nextjs-dapp/_gitignore +0 -28
  71. package/templates/nextjs-dapp/_npmrc +0 -3
  72. package/templates/nextjs-dapp/logo.png +0 -0
  73. package/templates/nextjs-dapp/public/favicon.ico +0 -0
  74. package/templates/nextjs-dapp/public/robots.txt +0 -3
  75. package/templates/nextjs-dapp/screenshots/.gitkeep +0 -0
  76. package/templates/nextjs-dapp/scripts/build-clean.js +0 -5
  77. package/templates/nextjs-dapp/scripts/bump-version.mjs +0 -33
  78. package/templates/nextjs-dapp/version +0 -1
  79. package/templates/react-dapp/.editorconfig +0 -23
  80. package/templates/react-dapp/.github/workflows/main.yml +0 -36
  81. package/templates/react-dapp/.github/workflows/pr-title.yml +0 -21
  82. package/templates/react-dapp/.github/workflows/version-check.yml +0 -20
  83. package/templates/react-dapp/.husky/pre-commit +0 -4
  84. package/templates/react-dapp/.prettierrc +0 -9
  85. package/templates/react-dapp/LICENSE +0 -13
  86. package/templates/react-dapp/_gitignore +0 -28
  87. package/templates/react-dapp/_npmrc +0 -3
  88. package/templates/react-dapp/logo.png +0 -0
  89. package/templates/react-dapp/public/favicon.ico +0 -0
  90. package/templates/react-dapp/public/robots.txt +0 -3
  91. package/templates/react-dapp/screenshots/.gitkeep +0 -0
  92. package/templates/react-dapp/scripts/build-clean.js +0 -5
  93. package/templates/react-dapp/scripts/bump-version.mjs +0 -33
  94. package/templates/react-dapp/version +0 -1
  95. package/templates/react-gun-dapp/.editorconfig +0 -23
  96. package/templates/react-gun-dapp/.github/workflows/main.yml +0 -36
  97. package/templates/react-gun-dapp/.github/workflows/pr-title.yml +0 -21
  98. package/templates/react-gun-dapp/.github/workflows/version-check.yml +0 -20
  99. package/templates/react-gun-dapp/.husky/pre-commit +0 -4
  100. package/templates/react-gun-dapp/.prettierrc +0 -9
  101. package/templates/react-gun-dapp/LICENSE +0 -13
  102. package/templates/react-gun-dapp/_gitignore +0 -28
  103. package/templates/react-gun-dapp/_npmrc +0 -3
  104. package/templates/react-gun-dapp/logo.png +0 -0
  105. package/templates/react-gun-dapp/public/favicon.ico +0 -0
  106. package/templates/react-gun-dapp/public/robots.txt +0 -3
  107. package/templates/react-gun-dapp/screenshots/.gitkeep +0 -0
  108. package/templates/react-gun-dapp/scripts/build-clean.js +0 -5
  109. package/templates/react-gun-dapp/scripts/bump-version.mjs +0 -33
  110. package/templates/react-gun-dapp/version +0 -1
  111. package/templates/react-static/.editorconfig +0 -23
  112. package/templates/react-static/.github/workflows/main.yml +0 -36
  113. package/templates/react-static/.github/workflows/pr-title.yml +0 -21
  114. package/templates/react-static/.github/workflows/version-check.yml +0 -20
  115. package/templates/react-static/.husky/pre-commit +0 -4
  116. package/templates/react-static/.prettierrc +0 -9
  117. package/templates/react-static/LICENSE +0 -13
  118. package/templates/react-static/_gitignore +0 -28
  119. package/templates/react-static/_npmrc +0 -3
  120. package/templates/react-static/logo.png +0 -0
  121. package/templates/react-static/public/favicon.ico +0 -0
  122. package/templates/react-static/public/robots.txt +0 -3
  123. package/templates/react-static/screenshots/.gitkeep +0 -0
  124. package/templates/react-static/scripts/build-clean.js +0 -5
  125. package/templates/react-static/scripts/bump-version.mjs +0 -33
  126. package/templates/react-static/version +0 -1
  127. package/templates/solidjs-dapp/.editorconfig +0 -23
  128. package/templates/solidjs-dapp/.github/workflows/main.yml +0 -36
  129. package/templates/solidjs-dapp/.github/workflows/pr-title.yml +0 -21
  130. package/templates/solidjs-dapp/.github/workflows/version-check.yml +0 -20
  131. package/templates/solidjs-dapp/.husky/pre-commit +0 -4
  132. package/templates/solidjs-dapp/.prettierrc +0 -9
  133. package/templates/solidjs-dapp/LICENSE +0 -13
  134. package/templates/solidjs-dapp/_gitignore +0 -28
  135. package/templates/solidjs-dapp/_npmrc +0 -3
  136. package/templates/solidjs-dapp/logo.png +0 -0
  137. package/templates/solidjs-dapp/public/favicon.ico +0 -0
  138. package/templates/solidjs-dapp/public/robots.txt +0 -3
  139. package/templates/solidjs-dapp/screenshots/.gitkeep +0 -0
  140. package/templates/solidjs-dapp/scripts/build-clean.js +0 -5
  141. package/templates/solidjs-dapp/scripts/bump-version.mjs +0 -33
  142. package/templates/solidjs-dapp/version +0 -1
  143. package/templates/solidjs-static/.editorconfig +0 -23
  144. package/templates/solidjs-static/.github/workflows/main.yml +0 -36
  145. package/templates/solidjs-static/.github/workflows/pr-title.yml +0 -21
  146. package/templates/solidjs-static/.github/workflows/version-check.yml +0 -20
  147. package/templates/solidjs-static/.husky/pre-commit +0 -4
  148. package/templates/solidjs-static/.prettierrc +0 -9
  149. package/templates/solidjs-static/LICENSE +0 -13
  150. package/templates/solidjs-static/_gitignore +0 -28
  151. package/templates/solidjs-static/_npmrc +0 -3
  152. package/templates/solidjs-static/logo.png +0 -0
  153. package/templates/solidjs-static/public/favicon.ico +0 -0
  154. package/templates/solidjs-static/public/robots.txt +0 -3
  155. package/templates/solidjs-static/screenshots/.gitkeep +0 -0
  156. package/templates/solidjs-static/scripts/build-clean.js +0 -5
  157. package/templates/solidjs-static/scripts/bump-version.mjs +0 -33
  158. package/templates/solidjs-static/version +0 -1
  159. package/templates/svelte-dapp/.editorconfig +0 -23
  160. package/templates/svelte-dapp/.github/workflows/main.yml +0 -36
  161. package/templates/svelte-dapp/.github/workflows/pr-title.yml +0 -21
  162. package/templates/svelte-dapp/.github/workflows/version-check.yml +0 -20
  163. package/templates/svelte-dapp/.husky/pre-commit +0 -4
  164. package/templates/svelte-dapp/.prettierrc +0 -9
  165. package/templates/svelte-dapp/.vscode/extensions.json +0 -3
  166. package/templates/svelte-dapp/LICENSE +0 -13
  167. package/templates/svelte-dapp/_gitignore +0 -28
  168. package/templates/svelte-dapp/_npmrc +0 -3
  169. package/templates/svelte-dapp/logo.png +0 -0
  170. package/templates/svelte-dapp/public/favicon.ico +0 -0
  171. package/templates/svelte-dapp/public/robots.txt +0 -3
  172. package/templates/svelte-dapp/screenshots/.gitkeep +0 -0
  173. package/templates/svelte-dapp/scripts/build-clean.js +0 -5
  174. package/templates/svelte-dapp/scripts/bump-version.mjs +0 -33
  175. package/templates/svelte-dapp/version +0 -1
  176. package/templates/svelte-static/.editorconfig +0 -23
  177. package/templates/svelte-static/.github/workflows/main.yml +0 -36
  178. package/templates/svelte-static/.github/workflows/pr-title.yml +0 -21
  179. package/templates/svelte-static/.github/workflows/version-check.yml +0 -20
  180. package/templates/svelte-static/.husky/pre-commit +0 -4
  181. package/templates/svelte-static/.prettierrc +0 -9
  182. package/templates/svelte-static/.vscode/extensions.json +0 -3
  183. package/templates/svelte-static/LICENSE +0 -13
  184. package/templates/svelte-static/_gitignore +0 -28
  185. package/templates/svelte-static/_npmrc +0 -3
  186. package/templates/svelte-static/logo.png +0 -0
  187. package/templates/svelte-static/public/favicon.ico +0 -0
  188. package/templates/svelte-static/public/robots.txt +0 -3
  189. package/templates/svelte-static/screenshots/.gitkeep +0 -0
  190. package/templates/svelte-static/scripts/build-clean.js +0 -5
  191. package/templates/svelte-static/scripts/bump-version.mjs +0 -33
  192. package/templates/svelte-static/version +0 -1
  193. package/templates/vue-dapp/.editorconfig +0 -23
  194. package/templates/vue-dapp/.github/workflows/main.yml +0 -36
  195. package/templates/vue-dapp/.github/workflows/pr-title.yml +0 -21
  196. package/templates/vue-dapp/.github/workflows/version-check.yml +0 -20
  197. package/templates/vue-dapp/.husky/pre-commit +0 -4
  198. package/templates/vue-dapp/.prettierrc +0 -9
  199. package/templates/vue-dapp/LICENSE +0 -13
  200. package/templates/vue-dapp/_gitignore +0 -28
  201. package/templates/vue-dapp/_npmrc +0 -3
  202. package/templates/vue-dapp/logo.png +0 -0
  203. package/templates/vue-dapp/public/favicon.ico +0 -0
  204. package/templates/vue-dapp/public/robots.txt +0 -3
  205. package/templates/vue-dapp/screenshots/.gitkeep +0 -0
  206. package/templates/vue-dapp/scripts/build-clean.js +0 -5
  207. package/templates/vue-dapp/scripts/bump-version.mjs +0 -33
  208. package/templates/vue-dapp/version +0 -1
  209. package/templates/vue-static/.editorconfig +0 -23
  210. package/templates/vue-static/.github/workflows/main.yml +0 -36
  211. package/templates/vue-static/.github/workflows/pr-title.yml +0 -21
  212. package/templates/vue-static/.github/workflows/version-check.yml +0 -20
  213. package/templates/vue-static/.husky/pre-commit +0 -4
  214. package/templates/vue-static/.prettierrc +0 -9
  215. package/templates/vue-static/LICENSE +0 -13
  216. package/templates/vue-static/_gitignore +0 -28
  217. package/templates/vue-static/_npmrc +0 -3
  218. package/templates/vue-static/logo.png +0 -0
  219. package/templates/vue-static/public/favicon.ico +0 -0
  220. package/templates/vue-static/public/robots.txt +0 -3
  221. package/templates/vue-static/screenshots/.gitkeep +0 -0
  222. package/templates/vue-static/scripts/build-clean.js +0 -5
  223. package/templates/vue-static/scripts/bump-version.mjs +0 -33
  224. package/templates/vue-static/version +0 -1
  225. package/templates/vue2-dapp/.editorconfig +0 -23
  226. package/templates/vue2-dapp/.github/workflows/main.yml +0 -36
  227. package/templates/vue2-dapp/.github/workflows/pr-title.yml +0 -21
  228. package/templates/vue2-dapp/.github/workflows/version-check.yml +0 -20
  229. package/templates/vue2-dapp/.husky/pre-commit +0 -4
  230. package/templates/vue2-dapp/.prettierrc +0 -9
  231. package/templates/vue2-dapp/LICENSE +0 -13
  232. package/templates/vue2-dapp/_gitignore +0 -28
  233. package/templates/vue2-dapp/_npmrc +0 -3
  234. package/templates/vue2-dapp/logo.png +0 -0
  235. package/templates/vue2-dapp/public/favicon.ico +0 -0
  236. package/templates/vue2-dapp/public/robots.txt +0 -3
  237. package/templates/vue2-dapp/screenshots/.gitkeep +0 -0
  238. package/templates/vue2-dapp/scripts/build-clean.js +0 -5
  239. package/templates/vue2-dapp/scripts/bump-version.mjs +0 -33
  240. package/templates/vue2-dapp/version +0 -1
  241. package/templates/vue2-static/.editorconfig +0 -23
  242. package/templates/vue2-static/.github/workflows/main.yml +0 -36
  243. package/templates/vue2-static/.github/workflows/pr-title.yml +0 -21
  244. package/templates/vue2-static/.github/workflows/version-check.yml +0 -20
  245. package/templates/vue2-static/.husky/pre-commit +0 -4
  246. package/templates/vue2-static/.prettierrc +0 -9
  247. package/templates/vue2-static/LICENSE +0 -13
  248. package/templates/vue2-static/_gitignore +0 -28
  249. package/templates/vue2-static/_npmrc +0 -3
  250. package/templates/vue2-static/logo.png +0 -0
  251. package/templates/vue2-static/public/favicon.ico +0 -0
  252. package/templates/vue2-static/public/index.html +0 -17
  253. package/templates/vue2-static/public/robots.txt +0 -3
  254. package/templates/vue2-static/screenshots/.gitkeep +0 -0
  255. package/templates/vue2-static/scripts/build-clean.js +0 -5
  256. package/templates/vue2-static/scripts/bump-version.mjs +0 -33
  257. package/templates/vue2-static/version +0 -1
  258. package/templates/website/.editorconfig +0 -23
  259. package/templates/website/.github/workflows/main.yml +0 -36
  260. package/templates/website/.github/workflows/pr-title.yml +0 -21
  261. package/templates/website/.github/workflows/version-check.yml +0 -20
  262. package/templates/website/.prettierrc +0 -9
  263. package/templates/website/LICENSE +0 -13
  264. package/templates/website/_gitignore +0 -28
  265. package/templates/website/_npmrc +0 -3
  266. package/templates/website/logo.png +0 -0
  267. package/templates/website/public/favicon.ico +0 -0
  268. package/templates/website/public/robots.txt +0 -3
  269. package/templates/website/screenshots/.gitkeep +0 -0
  270. package/templates/website/scripts/build-clean.js +0 -6
  271. package/templates/website/scripts/bump-version.mjs +0 -33
  272. package/templates/website/version +0 -1
@@ -1,36 +0,0 @@
1
- name: Deploy
2
-
3
- on:
4
- push:
5
- branches:
6
- - main
7
-
8
- jobs:
9
- Deploy:
10
- runs-on: ubuntu-latest
11
-
12
- if: "! contains(toJSON(github.event.commits.*.message), '[skip ci]')"
13
-
14
- steps:
15
- - name: Checkout repo
16
- uses: actions/checkout@v2
17
-
18
- - name: Set yarn cache
19
- uses: c-hive/gha-yarn-cache@v2
20
-
21
- - name: Install dependencies
22
- run: yarn
23
-
24
- - name: Blocklet workflow
25
- uses: blocklet/action-workflow@v1
26
- with:
27
- skip-upload: false
28
- skip-deploy: false
29
- bundle-command: yarn bundle
30
- store-endpoint: ${{ secrets.STORE_ENDPOINT }}
31
- store-access-token: ${{ secrets.STORE_ACCESS_TOKEN }}
32
- server-endpoint: ${{ secrets.SERVER_ENDPOINT }}
33
- server-access-key: ${{ secrets.SERVER_ACCESS_KEY }}
34
- server-access-secret: ${{ secrets.SERVER_ACCESS_SECRET }}
35
- slack-webhook: ${{ secrets.SLACK_WEBHOOK }}
36
- github-token: ${{ secrets.GITHUB_TOKEN }}
@@ -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,4 +0,0 @@
1
- #!/bin/sh
2
- . "$(dirname "$0")/_/husky.sh"
3
-
4
- npx lint-staged
@@ -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,5 +0,0 @@
1
- const rimraf = require('rimraf');
2
-
3
- console.log('clean .blocklet folder');
4
- rimraf.sync('.blocklet');
5
- console.log('clean .blocklet folder 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
@@ -1,23 +0,0 @@
1
- # For more information about the properties used in
2
- # this file, please see the EditorConfig documentation:
3
- # http://editorconfig.org/
4
- #
5
- # Sensible EditorConfig defaults
6
- # https://gist.github.com/matijs/662bf45dd4ec37b3a068
7
- root = true
8
-
9
- [*]
10
- charset = utf-8
11
- end_of_line = lf
12
- indent_size = 2
13
- indent_style = space
14
- insert_final_newline = true
15
- trim_trailing_whitespace = true
16
-
17
- # Make sure package.json always uses 2 spaces to indent
18
- [{package.json}]
19
- indent_size = 2
20
- indent_style = space
21
-
22
- [{makefile, Makefile}]
23
- indent_style = tab
@@ -1,36 +0,0 @@
1
- name: Deploy
2
-
3
- on:
4
- push:
5
- branches:
6
- - main
7
-
8
- jobs:
9
- Deploy:
10
- runs-on: ubuntu-latest
11
-
12
- if: "! contains(toJSON(github.event.commits.*.message), '[skip ci]')"
13
-
14
- steps:
15
- - name: Checkout repo
16
- uses: actions/checkout@v2
17
-
18
- - name: Set yarn cache
19
- uses: c-hive/gha-yarn-cache@v2
20
-
21
- - name: Install dependencies
22
- run: yarn
23
-
24
- - name: Blocklet workflow
25
- uses: blocklet/action-workflow@v1
26
- with:
27
- skip-upload: false
28
- skip-deploy: false
29
- bundle-command: yarn bundle
30
- store-endpoint: ${{ secrets.STORE_ENDPOINT }}
31
- store-access-token: ${{ secrets.STORE_ACCESS_TOKEN }}
32
- server-endpoint: ${{ secrets.SERVER_ENDPOINT }}
33
- server-access-key: ${{ secrets.SERVER_ACCESS_KEY }}
34
- server-access-secret: ${{ secrets.SERVER_ACCESS_SECRET }}
35
- slack-webhook: ${{ secrets.SLACK_WEBHOOK }}
36
- github-token: ${{ secrets.GITHUB_TOKEN }}
@@ -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,4 +0,0 @@
1
- #!/bin/sh
2
- . "$(dirname "$0")/_/husky.sh"
3
-
4
- npx lint-staged
@@ -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,5 +0,0 @@
1
- const rimraf = require('rimraf');
2
-
3
- console.log('clean .blocklet folder');
4
- rimraf.sync('.blocklet');
5
- console.log('clean .blocklet folder 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
@@ -1,23 +0,0 @@
1
- # For more information about the properties used in
2
- # this file, please see the EditorConfig documentation:
3
- # http://editorconfig.org/
4
- #
5
- # Sensible EditorConfig defaults
6
- # https://gist.github.com/matijs/662bf45dd4ec37b3a068
7
- root = true
8
-
9
- [*]
10
- charset = utf-8
11
- end_of_line = lf
12
- indent_size = 2
13
- indent_style = space
14
- insert_final_newline = true
15
- trim_trailing_whitespace = true
16
-
17
- # Make sure package.json always uses 2 spaces to indent
18
- [{package.json}]
19
- indent_size = 2
20
- indent_style = space
21
-
22
- [{makefile, Makefile}]
23
- indent_style = tab
@@ -1,36 +0,0 @@
1
- name: Deploy
2
-
3
- on:
4
- push:
5
- branches:
6
- - main
7
-
8
- jobs:
9
- Deploy:
10
- runs-on: ubuntu-latest
11
-
12
- if: "! contains(toJSON(github.event.commits.*.message), '[skip ci]')"
13
-
14
- steps:
15
- - name: Checkout repo
16
- uses: actions/checkout@v2
17
-
18
- - name: Set yarn cache
19
- uses: c-hive/gha-yarn-cache@v2
20
-
21
- - name: Install dependencies
22
- run: yarn
23
-
24
- - name: Blocklet workflow
25
- uses: blocklet/action-workflow@v1
26
- with:
27
- skip-upload: false
28
- skip-deploy: false
29
- bundle-command: yarn bundle
30
- store-endpoint: ${{ secrets.STORE_ENDPOINT }}
31
- store-access-token: ${{ secrets.STORE_ACCESS_TOKEN }}
32
- server-endpoint: ${{ secrets.SERVER_ENDPOINT }}
33
- server-access-key: ${{ secrets.SERVER_ACCESS_KEY }}
34
- server-access-secret: ${{ secrets.SERVER_ACCESS_SECRET }}
35
- slack-webhook: ${{ secrets.SLACK_WEBHOOK }}
36
- github-token: ${{ secrets.GITHUB_TOKEN }}
@@ -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,4 +0,0 @@
1
- #!/bin/sh
2
- . "$(dirname "$0")/_/husky.sh"
3
-
4
- npx lint-staged
@@ -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,5 +0,0 @@
1
- const rimraf = require('rimraf');
2
-
3
- console.log('clean .blocklet folder');
4
- rimraf.sync('.blocklet');
5
- console.log('clean .blocklet folder 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