@kunver/new 2.6.0 → 2.8.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (200) hide show
  1. package/dist/index.js +6 -6
  2. package/dist/templates/make-cpp/.clang-format +2 -0
  3. package/dist/templates/make-cpp/Makefile +44 -0
  4. package/dist/templates/make-cpp/README.md +15 -0
  5. package/dist/templates/make-cpp/include/example.hpp +5 -0
  6. package/dist/templates/make-cpp/src/example.cpp +5 -0
  7. package/dist/templates/make-cpp/src/main.cpp +6 -0
  8. package/dist/templates/wxt-solid/.prettierrc.json +11 -0
  9. package/dist/templates/wxt-solid/README.md +3 -0
  10. package/dist/templates/wxt-solid/_gitignore +26 -0
  11. package/dist/templates/wxt-solid/assets/tailwind.css +1 -0
  12. package/dist/templates/wxt-solid/entrypoints/background.ts +3 -0
  13. package/dist/templates/wxt-solid/entrypoints/content.ts +6 -0
  14. package/dist/templates/wxt-solid/entrypoints/popup/App.tsx +11 -0
  15. package/dist/templates/wxt-solid/entrypoints/popup/index.html +13 -0
  16. package/dist/templates/wxt-solid/entrypoints/popup/main.tsx +7 -0
  17. package/dist/templates/wxt-solid/manager.cjs +69 -0
  18. package/dist/templates/wxt-solid/package.json +32 -0
  19. package/dist/templates/wxt-solid/public/icon/128.png +0 -0
  20. package/dist/templates/wxt-solid/public/icon/16.png +0 -0
  21. package/dist/templates/wxt-solid/public/icon/32.png +0 -0
  22. package/dist/templates/wxt-solid/public/icon/48.png +0 -0
  23. package/dist/templates/wxt-solid/public/icon/96.png +0 -0
  24. package/dist/templates/wxt-solid/public/wxt.svg +15 -0
  25. package/dist/templates/wxt-solid/tsconfig.json +7 -0
  26. package/dist/templates/wxt-solid/wxt.config.ts +13 -0
  27. package/dist/templates/wxt-svelte/.wxt/tsconfig.json +28 -0
  28. package/dist/templates/wxt-svelte/.wxt/types/globals.d.ts +15 -0
  29. package/dist/templates/wxt-svelte/.wxt/types/i18n.d.ts +81 -0
  30. package/dist/templates/wxt-svelte/.wxt/types/imports-module.d.ts +21 -0
  31. package/dist/templates/wxt-svelte/.wxt/types/imports.d.ts +60 -0
  32. package/dist/templates/wxt-svelte/.wxt/types/paths.d.ts +21 -0
  33. package/dist/templates/wxt-svelte/.wxt/wxt.d.ts +8 -0
  34. package/dist/templates/wxt-svelte/node_modules/.bin/acorn.bunx +0 -0
  35. package/dist/templates/wxt-svelte/node_modules/.bin/acorn.exe +0 -0
  36. package/dist/templates/wxt-svelte/node_modules/.bin/adbkit.bunx +0 -0
  37. package/dist/templates/wxt-svelte/node_modules/.bin/adbkit.exe +0 -0
  38. package/dist/templates/wxt-svelte/node_modules/.bin/esbuild.bunx +0 -0
  39. package/dist/templates/wxt-svelte/node_modules/.bin/esbuild.exe +0 -0
  40. package/dist/templates/wxt-svelte/node_modules/.bin/firefox-profile.bunx +0 -0
  41. package/dist/templates/wxt-svelte/node_modules/.bin/firefox-profile.exe +0 -0
  42. package/dist/templates/wxt-svelte/node_modules/.bin/fx-runner.bunx +0 -0
  43. package/dist/templates/wxt-svelte/node_modules/.bin/fx-runner.exe +0 -0
  44. package/dist/templates/wxt-svelte/node_modules/.bin/giget.bunx +0 -0
  45. package/dist/templates/wxt-svelte/node_modules/.bin/giget.exe +0 -0
  46. package/dist/templates/wxt-svelte/node_modules/.bin/is-docker.bunx +0 -0
  47. package/dist/templates/wxt-svelte/node_modules/.bin/is-docker.exe +0 -0
  48. package/dist/templates/wxt-svelte/node_modules/.bin/is-in-ci.bunx +0 -0
  49. package/dist/templates/wxt-svelte/node_modules/.bin/is-in-ci.exe +0 -0
  50. package/dist/templates/wxt-svelte/node_modules/.bin/is-inside-container.bunx +0 -0
  51. package/dist/templates/wxt-svelte/node_modules/.bin/is-inside-container.exe +0 -0
  52. package/dist/templates/wxt-svelte/node_modules/.bin/jiti.bunx +0 -0
  53. package/dist/templates/wxt-svelte/node_modules/.bin/jiti.exe +0 -0
  54. package/dist/templates/wxt-svelte/node_modules/.bin/json5.bunx +0 -0
  55. package/dist/templates/wxt-svelte/node_modules/.bin/json5.exe +0 -0
  56. package/dist/templates/wxt-svelte/node_modules/.bin/nanoid.bunx +0 -0
  57. package/dist/templates/wxt-svelte/node_modules/.bin/nanoid.exe +0 -0
  58. package/dist/templates/wxt-svelte/node_modules/.bin/nypm.bunx +0 -0
  59. package/dist/templates/wxt-svelte/node_modules/.bin/nypm.exe +0 -0
  60. package/dist/templates/wxt-svelte/node_modules/.bin/parser.bunx +0 -0
  61. package/dist/templates/wxt-svelte/node_modules/.bin/parser.exe +0 -0
  62. package/dist/templates/wxt-svelte/node_modules/.bin/pino.bunx +0 -0
  63. package/dist/templates/wxt-svelte/node_modules/.bin/pino.exe +0 -0
  64. package/dist/templates/wxt-svelte/node_modules/.bin/print-chrome-path.bunx +0 -0
  65. package/dist/templates/wxt-svelte/node_modules/.bin/print-chrome-path.exe +0 -0
  66. package/dist/templates/wxt-svelte/node_modules/.bin/publish-extension.bunx +0 -0
  67. package/dist/templates/wxt-svelte/node_modules/.bin/publish-extension.exe +0 -0
  68. package/dist/templates/wxt-svelte/node_modules/.bin/rc.bunx +0 -0
  69. package/dist/templates/wxt-svelte/node_modules/.bin/rc.exe +0 -0
  70. package/dist/templates/wxt-svelte/node_modules/.bin/rollup-plugin-visualizer.bunx +0 -0
  71. package/dist/templates/wxt-svelte/node_modules/.bin/rollup-plugin-visualizer.exe +0 -0
  72. package/dist/templates/wxt-svelte/node_modules/.bin/rollup.bunx +0 -0
  73. package/dist/templates/wxt-svelte/node_modules/.bin/rollup.exe +0 -0
  74. package/dist/templates/wxt-svelte/node_modules/.bin/semver.bunx +0 -0
  75. package/dist/templates/wxt-svelte/node_modules/.bin/semver.exe +0 -0
  76. package/dist/templates/wxt-svelte/node_modules/.bin/svelte-check.bunx +0 -0
  77. package/dist/templates/wxt-svelte/node_modules/.bin/svelte-check.exe +0 -0
  78. package/dist/templates/wxt-svelte/node_modules/.bin/tsc.bunx +0 -0
  79. package/dist/templates/wxt-svelte/node_modules/.bin/tsc.exe +0 -0
  80. package/dist/templates/wxt-svelte/node_modules/.bin/tsserver.bunx +0 -0
  81. package/dist/templates/wxt-svelte/node_modules/.bin/tsserver.exe +0 -0
  82. package/dist/templates/wxt-svelte/node_modules/.bin/uuid.bunx +0 -0
  83. package/dist/templates/wxt-svelte/node_modules/.bin/uuid.exe +0 -0
  84. package/dist/templates/wxt-svelte/node_modules/.bin/vite-node.bunx +0 -0
  85. package/dist/templates/wxt-svelte/node_modules/.bin/vite-node.exe +0 -0
  86. package/dist/templates/wxt-svelte/node_modules/.bin/vite.bunx +0 -0
  87. package/dist/templates/wxt-svelte/node_modules/.bin/vite.exe +0 -0
  88. package/dist/templates/wxt-svelte/node_modules/.bin/which.bunx +0 -0
  89. package/dist/templates/wxt-svelte/node_modules/.bin/which.exe +0 -0
  90. package/dist/templates/wxt-svelte/node_modules/.bin/wxt-publish-extension.bunx +0 -0
  91. package/dist/templates/wxt-svelte/node_modules/.bin/wxt-publish-extension.exe +0 -0
  92. package/dist/templates/wxt-svelte/node_modules/.bin/wxt.bunx +0 -0
  93. package/dist/templates/wxt-svelte/node_modules/.bin/wxt.exe +0 -0
  94. package/dist/templates/wxt-svelte/node_modules/.cache/jiti/wxt-svelte-wxt.config.8de5262d.mjs +14 -0
  95. package/dist/templates/wxt-svelte/node_modules/.svelte2tsx-language-server-files/svelte-native-jsx.d.ts +32 -0
  96. package/dist/templates/wxt-svelte/node_modules/.svelte2tsx-language-server-files/svelte-shims-v4.d.ts +290 -0
  97. package/dist/templates/wxt-svelte/node_modules/.vite/_svelte_metadata.json +1 -0
  98. package/dist/templates/wxt-svelte/node_modules/@devicefarmer/adbkit/.github/dependabot.yml +46 -0
  99. package/dist/templates/wxt-svelte/node_modules/@devicefarmer/adbkit-monkey/.github/dependabot.yml +23 -0
  100. package/dist/templates/wxt-svelte/node_modules/@devicefarmer/adbkit-monkey/.semaphore/publish.yml +19 -0
  101. package/dist/templates/wxt-svelte/node_modules/@devicefarmer/adbkit-monkey/.semaphore/semaphore.yml +24 -0
  102. package/dist/templates/wxt-svelte/node_modules/atomic-sleep/.travis.yml +11 -0
  103. package/dist/templates/wxt-svelte/node_modules/atomically/.nyc_output/3e844113-839b-4b48-a102-297deb37538a.json +1 -0
  104. package/dist/templates/wxt-svelte/node_modules/atomically/.nyc_output/a2b562cc-4021-472c-b0e7-61b08d0856cc.json +1 -0
  105. package/dist/templates/wxt-svelte/node_modules/atomically/.nyc_output/af7432be-6f17-4c42-94eb-ac00c46b95fc.json +1 -0
  106. package/dist/templates/wxt-svelte/node_modules/atomically/.nyc_output/ceeeef50-6926-41c0-91b2-771446718957.json +1 -0
  107. package/dist/templates/wxt-svelte/node_modules/atomically/.nyc_output/e69c4534-8d9f-4c8d-98f1-55020da1bd75.json +1 -0
  108. package/dist/templates/wxt-svelte/node_modules/atomically/.nyc_output/processinfo/3e844113-839b-4b48-a102-297deb37538a.json +1 -0
  109. package/dist/templates/wxt-svelte/node_modules/atomically/.nyc_output/processinfo/a2b562cc-4021-472c-b0e7-61b08d0856cc.json +1 -0
  110. package/dist/templates/wxt-svelte/node_modules/atomically/.nyc_output/processinfo/af7432be-6f17-4c42-94eb-ac00c46b95fc.json +1 -0
  111. package/dist/templates/wxt-svelte/node_modules/atomically/.nyc_output/processinfo/ceeeef50-6926-41c0-91b2-771446718957.json +1 -0
  112. package/dist/templates/wxt-svelte/node_modules/atomically/.nyc_output/processinfo/e69c4534-8d9f-4c8d-98f1-55020da1bd75.json +1 -0
  113. package/dist/templates/wxt-svelte/node_modules/atomically/.nyc_output/processinfo/index.json +1 -0
  114. package/dist/templates/wxt-svelte/node_modules/atomically/.tap/processinfo/1139a7eb-c451-490b-a796-93ec17c301b4.json +244 -0
  115. package/dist/templates/wxt-svelte/node_modules/atomically/.tap/processinfo/2f325add-3ccd-4eb0-9a8e-03fcae4dda09.json +245 -0
  116. package/dist/templates/wxt-svelte/node_modules/atomically/.tap/processinfo/727ff5b3-573d-4552-853f-883cb2c42a43.json +245 -0
  117. package/dist/templates/wxt-svelte/node_modules/atomically/.tap/processinfo/cbbc81f4-251f-4e57-969f-e5e3622d90cd.json +245 -0
  118. package/dist/templates/wxt-svelte/node_modules/balanced-match/.github/FUNDING.yml +2 -0
  119. package/dist/templates/wxt-svelte/node_modules/chrome-launcher/.clang-format +6 -0
  120. package/dist/templates/wxt-svelte/node_modules/chrome-launcher/.github/workflows/ci.yml +56 -0
  121. package/dist/templates/wxt-svelte/node_modules/chrome-launcher/.github/workflows/lh-smoke.yml +48 -0
  122. package/dist/templates/wxt-svelte/node_modules/concat-map/.travis.yml +4 -0
  123. package/dist/templates/wxt-svelte/node_modules/deepmerge/.editorconfig +7 -0
  124. package/dist/templates/wxt-svelte/node_modules/deepmerge/.eslintcache +1 -0
  125. package/dist/templates/wxt-svelte/node_modules/entities/src/generated/.eslintrc.json +10 -0
  126. package/dist/templates/wxt-svelte/node_modules/fast-redact/.github/workflows/ci.yml +37 -0
  127. package/dist/templates/wxt-svelte/node_modules/fastq/.github/dependabot.yml +11 -0
  128. package/dist/templates/wxt-svelte/node_modules/fastq/.github/workflows/ci.yml +75 -0
  129. package/dist/templates/wxt-svelte/node_modules/firefox-profile/.github/workflows/ci.yml +22 -0
  130. package/dist/templates/wxt-svelte/node_modules/firefox-profile/.prettierrc +6 -0
  131. package/dist/templates/wxt-svelte/node_modules/fx-runner/.circleci/config.yml +152 -0
  132. package/dist/templates/wxt-svelte/node_modules/fx-runner/.github/dependabot.yml +7 -0
  133. package/dist/templates/wxt-svelte/node_modules/glob-to-regexp/.travis.yml +4 -0
  134. package/dist/templates/wxt-svelte/node_modules/graceful-readlink/.travis.yml +5 -0
  135. package/dist/templates/wxt-svelte/node_modules/is-arrayish/.editorconfig +18 -0
  136. package/dist/templates/wxt-svelte/node_modules/is-arrayish/.istanbul.yml +4 -0
  137. package/dist/templates/wxt-svelte/node_modules/is-arrayish/.travis.yml +17 -0
  138. package/dist/templates/wxt-svelte/node_modules/is-inside-container/node_modules/.bin/is-docker.bunx +0 -0
  139. package/dist/templates/wxt-svelte/node_modules/is-inside-container/node_modules/.bin/is-docker.exe +0 -0
  140. package/dist/templates/wxt-svelte/node_modules/isarray/.travis.yml +4 -0
  141. package/dist/templates/wxt-svelte/node_modules/jszip/.codeclimate.yml +16 -0
  142. package/dist/templates/wxt-svelte/node_modules/jszip/.editorconfig +8 -0
  143. package/dist/templates/wxt-svelte/node_modules/jszip/.eslintrc.js +43 -0
  144. package/dist/templates/wxt-svelte/node_modules/jszip/.github/workflows/pr.yaml +58 -0
  145. package/dist/templates/wxt-svelte/node_modules/jszip/.jekyll-metadata +0 -0
  146. package/dist/templates/wxt-svelte/node_modules/jszip/.travis.yml +17 -0
  147. package/dist/templates/wxt-svelte/node_modules/linkedom/.github/workflows/node.js.yml +31 -0
  148. package/dist/templates/wxt-svelte/node_modules/minimist/.eslintrc +29 -0
  149. package/dist/templates/wxt-svelte/node_modules/minimist/.github/FUNDING.yml +12 -0
  150. package/dist/templates/wxt-svelte/node_modules/minimist/.nycrc +14 -0
  151. package/dist/templates/wxt-svelte/node_modules/node-notifier/.github/workflows/test.yml +23 -0
  152. package/dist/templates/wxt-svelte/node_modules/node-notifier/.prettierrc +5 -0
  153. package/dist/templates/wxt-svelte/node_modules/node-notifier/node_modules/.bin/node-which.bunx +0 -0
  154. package/dist/templates/wxt-svelte/node_modules/node-notifier/node_modules/.bin/node-which.exe +0 -0
  155. package/dist/templates/wxt-svelte/node_modules/on-exit-leak-free/.github/dependabot.yml +12 -0
  156. package/dist/templates/wxt-svelte/node_modules/on-exit-leak-free/.github/workflows/ci.yml +46 -0
  157. package/dist/templates/wxt-svelte/node_modules/os-shim/.editorconfig +9 -0
  158. package/dist/templates/wxt-svelte/node_modules/os-shim/.travis.yml +8 -0
  159. package/dist/templates/wxt-svelte/node_modules/pino/.eslintignore +2 -0
  160. package/dist/templates/wxt-svelte/node_modules/pino/.eslintrc +8 -0
  161. package/dist/templates/wxt-svelte/node_modules/pino/.github/dependabot.yml +13 -0
  162. package/dist/templates/wxt-svelte/node_modules/pino/.github/workflows/bench.yml +61 -0
  163. package/dist/templates/wxt-svelte/node_modules/pino/.github/workflows/ci.yml +88 -0
  164. package/dist/templates/wxt-svelte/node_modules/pino/.github/workflows/lock-threads.yml +30 -0
  165. package/dist/templates/wxt-svelte/node_modules/pino/.github/workflows/target-main.yml +23 -0
  166. package/dist/templates/wxt-svelte/node_modules/pino/.nojekyll +0 -0
  167. package/dist/templates/wxt-svelte/node_modules/pino/.prettierignore +1 -0
  168. package/dist/templates/wxt-svelte/node_modules/pino/.taprc.yaml +8 -0
  169. package/dist/templates/wxt-svelte/node_modules/pino-abstract-transport/.github/dependabot.yml +13 -0
  170. package/dist/templates/wxt-svelte/node_modules/pino-abstract-transport/.github/workflows/ci.yml +97 -0
  171. package/dist/templates/wxt-svelte/node_modules/pino-abstract-transport/.husky/pre-commit +4 -0
  172. package/dist/templates/wxt-svelte/node_modules/pino-std-serializers/.editorconfig +13 -0
  173. package/dist/templates/wxt-svelte/node_modules/pino-std-serializers/.eslintignore +2 -0
  174. package/dist/templates/wxt-svelte/node_modules/pino-std-serializers/.github/dependabot.yml +13 -0
  175. package/dist/templates/wxt-svelte/node_modules/pino-std-serializers/.github/workflows/ci.yml +81 -0
  176. package/dist/templates/wxt-svelte/node_modules/process-warning/.gitattributes +2 -0
  177. package/dist/templates/wxt-svelte/node_modules/process-warning/.github/dependabot.yml +13 -0
  178. package/dist/templates/wxt-svelte/node_modules/process-warning/.github/workflows/ci.yml +22 -0
  179. package/dist/templates/wxt-svelte/node_modules/quick-format-unescaped/.github/workflows/ci.yml +21 -0
  180. package/dist/templates/wxt-svelte/node_modules/readable-stream/.travis.yml +34 -0
  181. package/dist/templates/wxt-svelte/node_modules/require-directory/.jshintrc +67 -0
  182. package/dist/templates/wxt-svelte/node_modules/require-directory/.travis.yml +3 -0
  183. package/dist/templates/wxt-svelte/node_modules/reusify/.github/dependabot.yml +7 -0
  184. package/dist/templates/wxt-svelte/node_modules/reusify/.github/workflows/ci.yml +96 -0
  185. package/dist/templates/wxt-svelte/node_modules/rfdc/.github/workflows/ci.yml +21 -0
  186. package/dist/templates/wxt-svelte/node_modules/shell-quote/.github/workflows/nodejs.yml +35 -0
  187. package/dist/templates/wxt-svelte/node_modules/sonic-boom/.eslintignore +2 -0
  188. package/dist/templates/wxt-svelte/node_modules/sonic-boom/.taprc +3 -0
  189. package/dist/templates/wxt-svelte/node_modules/spawn-sync/.travis.yml +8 -0
  190. package/dist/templates/wxt-svelte/node_modules/split/.travis.yml +3 -0
  191. package/dist/templates/wxt-svelte/node_modules/string_decoder/.travis.yml +50 -0
  192. package/dist/templates/wxt-svelte/node_modules/thread-stream/.github/dependabot.yml +13 -0
  193. package/dist/templates/wxt-svelte/node_modules/thread-stream/.github/workflows/ci.yml +94 -0
  194. package/dist/templates/wxt-svelte/node_modules/thread-stream/.husky/pre-commit +4 -0
  195. package/dist/templates/wxt-svelte/node_modules/thread-stream/.taprc +4 -0
  196. package/dist/templates/wxt-svelte/node_modules/through/.travis.yml +5 -0
  197. package/dist/templates/wxt-svelte/node_modules/typedarray/.travis.yml +4 -0
  198. package/dist/templates/wxt-svelte/node_modules/which/.travis.yml +6 -0
  199. package/dist/templates/wxt-svelte/node_modules/zip-dir/.travis.yml +3 -0
  200. package/package.json +1 -1
@@ -0,0 +1,12 @@
1
+ # These are supported funding model platforms
2
+
3
+ github: [ljharb]
4
+ patreon: # Replace with a single Patreon username
5
+ open_collective: # Replace with a single Open Collective username
6
+ ko_fi: # Replace with a single Ko-fi username
7
+ tidelift: npm/minimist
8
+ community_bridge: # Replace with a single Community Bridge project-name e.g., cloud-foundry
9
+ liberapay: # Replace with a single Liberapay username
10
+ issuehunt: # Replace with a single IssueHunt username
11
+ otechie: # Replace with a single Otechie username
12
+ custom: # Replace with up to 4 custom sponsorship URLs e.g., ['link1', 'link2']
@@ -0,0 +1,14 @@
1
+ {
2
+ "all": true,
3
+ "check-coverage": false,
4
+ "reporter": ["text-summary", "text", "html", "json"],
5
+ "lines": 86,
6
+ "statements": 85.93,
7
+ "functions": 82.43,
8
+ "branches": 76.06,
9
+ "exclude": [
10
+ "coverage",
11
+ "example",
12
+ "test"
13
+ ]
14
+ }
@@ -0,0 +1,23 @@
1
+ name: Node.js CI
2
+
3
+ on:
4
+ push:
5
+ pull_request:
6
+
7
+ jobs:
8
+ build:
9
+ runs-on: ubuntu-latest
10
+
11
+ strategy:
12
+ matrix:
13
+ node-version: [10.x, 12.x, 14.x, 16.x, 17.x]
14
+
15
+ steps:
16
+ - uses: actions/checkout@v2
17
+ - name: Use Node.js
18
+ uses: actions/setup-node@v1
19
+ with:
20
+ node-version: '12.x'
21
+ - name: Install dependencies
22
+ run: npm ci
23
+ - run: npm test
@@ -0,0 +1,5 @@
1
+ {
2
+ "printWidth": 80,
3
+ "singleQuote": true,
4
+ "trailingComma": "none"
5
+ }
@@ -0,0 +1,12 @@
1
+ version: 2
2
+ updates:
3
+ - package-ecosystem: github-actions
4
+ directory: '/'
5
+ schedule:
6
+ interval: daily
7
+ open-pull-requests-limit: 10
8
+ - package-ecosystem: npm
9
+ directory: '/'
10
+ schedule:
11
+ interval: daily
12
+ open-pull-requests-limit: 10
@@ -0,0 +1,46 @@
1
+ name: CI
2
+ on:
3
+ push:
4
+ paths-ignore:
5
+ - 'docs/**'
6
+ - '*.md'
7
+ pull_request:
8
+ paths-ignore:
9
+ - 'docs/**'
10
+ - '*.md'
11
+ jobs:
12
+ test:
13
+ runs-on: ${{ matrix.os }}
14
+
15
+ strategy:
16
+ matrix:
17
+ node-version: [14, 16, 18, 20]
18
+ os: [macos-latest, ubuntu-latest, windows-latest]
19
+ exclude:
20
+ - node-version: 14
21
+ os: windows-latest
22
+
23
+ steps:
24
+
25
+ - uses: actions/checkout@v4
26
+
27
+ - name: Use Node.js
28
+ uses: actions/setup-node@v3
29
+ with:
30
+ node-version: ${{ matrix.node-version }}
31
+
32
+ - name: Install
33
+ run: |
34
+ npm install --ignore-scripts
35
+
36
+ - name: Run tests
37
+ run: |
38
+ npm run test
39
+
40
+ automerge:
41
+ needs: test
42
+ runs-on: ubuntu-latest
43
+ steps:
44
+ - uses: fastify/github-action-merge-dependabot@v3.9
45
+ with:
46
+ github-token: ${{ secrets.GITHUB_TOKEN }}
@@ -0,0 +1,9 @@
1
+ root = true
2
+
3
+ [*]
4
+ charset = utf-8
5
+ indent_style = space
6
+ indent_size = 2
7
+ end_of_line = lf
8
+ trim_trailing_whitespace = true
9
+ insert_final_newline = true
@@ -0,0 +1,8 @@
1
+ language: node_js
2
+ node_js:
3
+ - "0.10.0"
4
+ - "0.8.0"
5
+ - "0.6.0"
6
+ - "0.4.0"
7
+
8
+ script: make test
@@ -0,0 +1,2 @@
1
+ pino.d.ts
2
+ test/types/pino.test-d.ts
@@ -0,0 +1,8 @@
1
+ {
2
+ "extends": [
3
+ "standard"
4
+ ],
5
+ "rules": {
6
+ "no-var": "off"
7
+ }
8
+ }
@@ -0,0 +1,13 @@
1
+ version: 2
2
+ updates:
3
+ - package-ecosystem: "github-actions"
4
+ directory: "/"
5
+ schedule:
6
+ interval: "monthly"
7
+ open-pull-requests-limit: 10
8
+
9
+ - package-ecosystem: "npm"
10
+ directory: "/"
11
+ schedule:
12
+ interval: "monthly"
13
+ open-pull-requests-limit: 10
@@ -0,0 +1,61 @@
1
+ name: Benchmarks
2
+ on:
3
+ push:
4
+ branches:
5
+ - main
6
+ paths-ignore:
7
+ - 'docs/**'
8
+ - '*.md'
9
+ pull_request:
10
+ paths-ignore:
11
+ - 'docs/**'
12
+ - '*.md'
13
+
14
+ permissions:
15
+ contents: read
16
+
17
+ jobs:
18
+ benchmark_current:
19
+ name: benchmark current
20
+ runs-on: ubuntu-latest
21
+ steps:
22
+ - name: Checkout Code
23
+ uses: actions/checkout@v4
24
+ with:
25
+ ref: ${{ github.base_ref }}
26
+ persist-credentials: false
27
+ - name: Setup Node
28
+ uses: actions/setup-node@v4
29
+ with:
30
+ node-version: lts/*
31
+ - name: Install Modules
32
+ run: npm i --ignore-scripts
33
+ - name: Run Benchmark
34
+ run: npm run bench | tee current.txt
35
+ - name: Upload Current Results
36
+ uses: actions/upload-artifact@v4
37
+ with:
38
+ name: current
39
+ path: current.txt
40
+
41
+ benchmark_branch:
42
+ name: benchmark branch
43
+ runs-on: ubuntu-latest
44
+ steps:
45
+ - name: Checkout Code
46
+ uses: actions/checkout@v4
47
+ with:
48
+ persist-credentials: false
49
+ - name: Setup Node
50
+ uses: actions/setup-node@v4
51
+ with:
52
+ node-version: lts/*
53
+ - name: Install Modules
54
+ run: npm i --ignore-scripts
55
+ - name: Run Benchmark
56
+ run: npm run bench | tee branch.txt
57
+ - name: Upload Branch Results
58
+ uses: actions/upload-artifact@v4
59
+ with:
60
+ name: branch
61
+ path: branch.txt
@@ -0,0 +1,88 @@
1
+ name: CI
2
+
3
+ on:
4
+ push:
5
+ branches:
6
+ - main
7
+ - 'v*'
8
+ paths-ignore:
9
+ - 'docs/**'
10
+ - '*.md'
11
+ pull_request:
12
+ paths-ignore:
13
+ - 'docs/**'
14
+ - '*.md'
15
+
16
+ # This allows a subsequently queued workflow run to interrupt previous runs
17
+ concurrency:
18
+ group: "${{ github.workflow }} @ ${{ github.event.pull_request.head.label || github.head_ref || github.ref }}"
19
+ cancel-in-progress: true
20
+
21
+ jobs:
22
+ dependency-review:
23
+ name: Dependency Review
24
+ if: github.event_name == 'pull_request'
25
+ runs-on: ubuntu-latest
26
+ permissions:
27
+ contents: read
28
+ steps:
29
+ - name: Check out repo
30
+ uses: actions/checkout@v4
31
+ with:
32
+ persist-credentials: false
33
+
34
+ - name: Dependency review
35
+ uses: actions/dependency-review-action@v4
36
+
37
+ test:
38
+ name: ${{ matrix.node-version }} ${{ matrix.os }}
39
+ runs-on: ${{ matrix.os }}
40
+ permissions:
41
+ contents: read
42
+ strategy:
43
+ fail-fast: false
44
+ matrix:
45
+ os: [macOS-latest, windows-latest, ubuntu-latest]
46
+ node-version: [18, 20, 22]
47
+ exclude:
48
+ - os: windows-latest
49
+ node-version: 22
50
+
51
+ steps:
52
+ - name: Check out repo
53
+ uses: actions/checkout@v4
54
+ with:
55
+ persist-credentials: false
56
+
57
+ - name: Setup Node ${{ matrix.node-version }}
58
+ uses: actions/setup-node@v4
59
+ with:
60
+ node-version: ${{ matrix.node-version }}
61
+
62
+ - name: Install dependencies
63
+ run: npm i --ignore-scripts
64
+
65
+ - name: Run tests
66
+ run: npm run test-ci
67
+
68
+ - name: Run smoke test
69
+ if: >
70
+ matrix.os != 'windows-latest' &&
71
+ matrix.node-version > 14
72
+ run: npm run test:smoke
73
+
74
+ automerge:
75
+ name: Automerge Dependabot PRs
76
+ if: >
77
+ github.event_name == 'pull_request' &&
78
+ github.event.pull_request.user.login == 'dependabot[bot]'
79
+ needs: test
80
+ permissions:
81
+ pull-requests: write
82
+ contents: write
83
+ runs-on: ubuntu-latest
84
+ steps:
85
+ - uses: fastify/github-action-merge-dependabot@v3
86
+ with:
87
+ github-token: ${{ secrets.GITHUB_TOKEN }}
88
+ exclude: 'sonic-boom,pino-std-serializers,quick-format-unescaped,fast-redact'
@@ -0,0 +1,30 @@
1
+ name: 'Lock Threads'
2
+
3
+ on:
4
+ schedule:
5
+ - cron: '0 0 * * *'
6
+ workflow_dispatch:
7
+
8
+ permissions:
9
+ issues: write
10
+ pull-requests: write
11
+
12
+ concurrency:
13
+ group: lock
14
+
15
+ jobs:
16
+ action:
17
+ runs-on: ubuntu-latest
18
+ steps:
19
+ - uses: jsumners/lock-threads@b27edac0ac998d42b2815e122b6c24b32b568321
20
+ with:
21
+ log-output: true
22
+ issue-inactive-days: '30'
23
+ issue-comment: >
24
+ This issue has been automatically locked since there
25
+ has not been any recent activity after it was closed.
26
+ Please open a new issue for related bugs.
27
+ pr-comment: >
28
+ This pull request has been automatically locked since there
29
+ has not been any recent activity after it was closed.
30
+ Please open a new issue for related bugs.
@@ -0,0 +1,23 @@
1
+ name: PR Target Check
2
+
3
+ on:
4
+ pull_request_target:
5
+ types: [opened]
6
+
7
+ permissions:
8
+ pull-requests: write
9
+
10
+ jobs:
11
+ comment:
12
+ if: ${{ github.base_ref != "master" }}
13
+ runs-on: ubuntu-latest
14
+ steps:
15
+ - uses: actions/github-script@v7
16
+ with:
17
+ script: |
18
+ github.rest.issues.createComment({
19
+ issue_number: context.issue.number,
20
+ owner: context.repo.owner,
21
+ repo: context.repo.repo,
22
+ body: '⚠️ This pull request does not target the master branch.'
23
+ })
@@ -0,0 +1,8 @@
1
+ coverage: true
2
+ timeout: 480
3
+ check-coverage: false
4
+
5
+ reporter: terse
6
+
7
+ files:
8
+ - 'test/**/*.test.js'
@@ -0,0 +1,13 @@
1
+ version: 2
2
+ updates:
3
+ - package-ecosystem: "github-actions"
4
+ directory: "/"
5
+ schedule:
6
+ interval: "monthly"
7
+ open-pull-requests-limit: 10
8
+
9
+ - package-ecosystem: "npm"
10
+ directory: "/"
11
+ schedule:
12
+ interval: "weekly"
13
+ open-pull-requests-limit: 10
@@ -0,0 +1,97 @@
1
+ name: CI
2
+
3
+ on:
4
+ push:
5
+ paths-ignore:
6
+ - 'docs/**'
7
+ - '*.md'
8
+ pull_request:
9
+ paths-ignore:
10
+ - 'docs/**'
11
+ - '*.md'
12
+
13
+ # This allows a subsequently queued workflow run to interrupt previous runs
14
+ concurrency:
15
+ group: "${{ github.workflow }} @ ${{ github.event.pull_request.head.label || github.head_ref || github.ref }}"
16
+ cancel-in-progress: true
17
+
18
+ jobs:
19
+ dependency-review:
20
+ name: Dependency Review
21
+ if: github.event_name == 'pull_request'
22
+ runs-on: ubuntu-latest
23
+ permissions:
24
+ contents: read
25
+ steps:
26
+ - name: Check out repo
27
+ uses: actions/checkout@v4
28
+ with:
29
+ persist-credentials: false
30
+
31
+ - name: Dependency review
32
+ uses: actions/dependency-review-action@v3
33
+
34
+ test:
35
+ name: Test
36
+ runs-on: ${{ matrix.os }}
37
+ permissions:
38
+ contents: read
39
+ strategy:
40
+ matrix:
41
+ node-version: [18, 20, 22]
42
+ os: [macos-latest, ubuntu-latest, windows-latest]
43
+
44
+ steps:
45
+ - name: Check out repo
46
+ uses: actions/checkout@v4
47
+ with:
48
+ persist-credentials: false
49
+
50
+ - name: Setup Node ${{ matrix.node-version }}
51
+ uses: actions/setup-node@v4
52
+ with:
53
+ node-version: ${{ matrix.node-version }}
54
+
55
+ - name: Restore cached dependencies
56
+ uses: actions/cache@v4
57
+ with:
58
+ path: node_modules
59
+ key: node-modules-${{ hashFiles('package.json') }}
60
+
61
+ - name: Install dependencies
62
+ run: npm i --ignore-scripts
63
+
64
+ - name: Run Tests
65
+ run: npm run test-ci
66
+
67
+ - name: Coveralls Parallel
68
+ uses: coverallsapp/github-action@v2.1.2
69
+ with:
70
+ github-token: ${{ secrets.github_token }}
71
+ parallel: true
72
+ flag-name: run-${{ matrix.node-version }}-${{ matrix.os }}
73
+
74
+ coverage:
75
+ needs: test
76
+ runs-on: ubuntu-latest
77
+ steps:
78
+ - name: Coveralls Finished
79
+ uses: coverallsapp/github-action@v2.1.2
80
+ with:
81
+ github-token: ${{ secrets.GITHUB_TOKEN }}
82
+ parallel-finished: true
83
+
84
+ automerge:
85
+ name: Automerge Dependabot PRs
86
+ if: >
87
+ github.event_name == 'pull_request' &&
88
+ github.event.pull_request.user.login == 'dependabot[bot]'
89
+ needs: test
90
+ permissions:
91
+ pull-requests: write
92
+ contents: write
93
+ runs-on: ubuntu-latest
94
+ steps:
95
+ - uses: fastify/github-action-merge-dependabot@v3
96
+ with:
97
+ github-token: ${{ secrets.GITHUB_TOKEN }}
@@ -0,0 +1,4 @@
1
+ #!/usr/bin/env sh
2
+ . "$(dirname -- "$0")/_/husky.sh"
3
+
4
+ npm test
@@ -0,0 +1,13 @@
1
+
2
+ root = true
3
+
4
+ [*]
5
+ charset = utf-8
6
+ end_of_line = lf
7
+ insert_final_newline = true
8
+ indent_style = space
9
+ indent_size = 2
10
+ trim_trailing_whitespace = true
11
+
12
+ # [*.md]
13
+ # trim_trailing_whitespace = false
@@ -0,0 +1,2 @@
1
+ index.d.ts
2
+ test/types/index.test-d.ts
@@ -0,0 +1,13 @@
1
+ version: 2
2
+ updates:
3
+ - package-ecosystem: "github-actions"
4
+ directory: "/"
5
+ schedule:
6
+ interval: "monthly"
7
+ open-pull-requests-limit: 10
8
+
9
+ - package-ecosystem: "npm"
10
+ directory: "/"
11
+ schedule:
12
+ interval: "weekly"
13
+ open-pull-requests-limit: 10
@@ -0,0 +1,81 @@
1
+ name: CI
2
+
3
+ on:
4
+ push:
5
+ paths-ignore:
6
+ - 'docs/**'
7
+ - '*.md'
8
+ pull_request:
9
+ paths-ignore:
10
+ - 'docs/**'
11
+ - '*.md'
12
+
13
+ # This allows a subsequently queued workflow run to interrupt previous runs
14
+ concurrency:
15
+ group: "${{ github.workflow }} @ ${{ github.event.pull_request.head.label || github.head_ref || github.ref }}"
16
+ cancel-in-progress: true
17
+
18
+ jobs:
19
+ dependency-review:
20
+ name: Dependency Review
21
+ if: github.event_name == 'pull_request'
22
+ runs-on: ubuntu-latest
23
+ permissions:
24
+ contents: read
25
+ steps:
26
+ - name: Check out repo
27
+ uses: actions/checkout@v4
28
+ with:
29
+ persist-credentials: false
30
+
31
+ - name: Dependency review
32
+ uses: actions/dependency-review-action@v4
33
+
34
+ test:
35
+ name: Test
36
+ runs-on: ubuntu-latest
37
+ permissions:
38
+ contents: read
39
+ strategy:
40
+ fail-fast: false
41
+ matrix:
42
+ node-version: [18, 20]
43
+ steps:
44
+ - name: Check out repo
45
+ uses: actions/checkout@v4
46
+ with:
47
+ persist-credentials: false
48
+
49
+ - name: Setup Node ${{ matrix.node-version }}
50
+ uses: actions/setup-node@v4
51
+ with:
52
+ node-version: ${{ matrix.node-version }}
53
+
54
+ - name: Install dependencies
55
+ run: npm install --ignore-scripts
56
+ env:
57
+ NODE_ENV: development
58
+
59
+ - name: Lint-CI
60
+ run: npm run lint-ci
61
+
62
+ - name: Test-Types
63
+ run: npm run test-types
64
+
65
+ - name: Test-CI
66
+ run: npm run test-ci
67
+
68
+ automerge:
69
+ name: Automerge Dependabot PRs
70
+ if: >
71
+ github.event_name == 'pull_request' &&
72
+ github.event.pull_request.user.login == 'dependabot[bot]'
73
+ needs: test
74
+ permissions:
75
+ pull-requests: write
76
+ contents: write
77
+ runs-on: ubuntu-latest
78
+ steps:
79
+ - uses: fastify/github-action-merge-dependabot@v3
80
+ with:
81
+ github-token: ${{ secrets.GITHUB_TOKEN }}
@@ -0,0 +1,2 @@
1
+ # Set default behavior to automatically convert line endings
2
+ * text=auto eol=lf
@@ -0,0 +1,13 @@
1
+ version: 2
2
+ updates:
3
+ - package-ecosystem: "github-actions"
4
+ directory: "/"
5
+ schedule:
6
+ interval: "monthly"
7
+ open-pull-requests-limit: 10
8
+
9
+ - package-ecosystem: "npm"
10
+ directory: "/"
11
+ schedule:
12
+ interval: "monthly"
13
+ open-pull-requests-limit: 10
@@ -0,0 +1,22 @@
1
+ name: CI
2
+
3
+ on:
4
+ push:
5
+ branches:
6
+ - main
7
+ - next
8
+ - 'v*'
9
+ paths-ignore:
10
+ - 'docs/**'
11
+ - '*.md'
12
+ pull_request:
13
+ paths-ignore:
14
+ - 'docs/**'
15
+ - '*.md'
16
+
17
+ jobs:
18
+ test:
19
+ uses: fastify/workflows/.github/workflows/plugins-ci.yml@v5
20
+ with:
21
+ license-check: true
22
+ lint: true