@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.
- package/dist/index.js +6 -6
- package/dist/templates/make-cpp/.clang-format +2 -0
- package/dist/templates/make-cpp/Makefile +44 -0
- package/dist/templates/make-cpp/README.md +15 -0
- package/dist/templates/make-cpp/include/example.hpp +5 -0
- package/dist/templates/make-cpp/src/example.cpp +5 -0
- package/dist/templates/make-cpp/src/main.cpp +6 -0
- package/dist/templates/wxt-solid/.prettierrc.json +11 -0
- package/dist/templates/wxt-solid/README.md +3 -0
- package/dist/templates/wxt-solid/_gitignore +26 -0
- package/dist/templates/wxt-solid/assets/tailwind.css +1 -0
- package/dist/templates/wxt-solid/entrypoints/background.ts +3 -0
- package/dist/templates/wxt-solid/entrypoints/content.ts +6 -0
- package/dist/templates/wxt-solid/entrypoints/popup/App.tsx +11 -0
- package/dist/templates/wxt-solid/entrypoints/popup/index.html +13 -0
- package/dist/templates/wxt-solid/entrypoints/popup/main.tsx +7 -0
- package/dist/templates/wxt-solid/manager.cjs +69 -0
- package/dist/templates/wxt-solid/package.json +32 -0
- package/dist/templates/wxt-solid/public/icon/128.png +0 -0
- package/dist/templates/wxt-solid/public/icon/16.png +0 -0
- package/dist/templates/wxt-solid/public/icon/32.png +0 -0
- package/dist/templates/wxt-solid/public/icon/48.png +0 -0
- package/dist/templates/wxt-solid/public/icon/96.png +0 -0
- package/dist/templates/wxt-solid/public/wxt.svg +15 -0
- package/dist/templates/wxt-solid/tsconfig.json +7 -0
- package/dist/templates/wxt-solid/wxt.config.ts +13 -0
- package/dist/templates/wxt-svelte/.wxt/tsconfig.json +28 -0
- package/dist/templates/wxt-svelte/.wxt/types/globals.d.ts +15 -0
- package/dist/templates/wxt-svelte/.wxt/types/i18n.d.ts +81 -0
- package/dist/templates/wxt-svelte/.wxt/types/imports-module.d.ts +21 -0
- package/dist/templates/wxt-svelte/.wxt/types/imports.d.ts +60 -0
- package/dist/templates/wxt-svelte/.wxt/types/paths.d.ts +21 -0
- package/dist/templates/wxt-svelte/.wxt/wxt.d.ts +8 -0
- package/dist/templates/wxt-svelte/node_modules/.bin/acorn.bunx +0 -0
- package/dist/templates/wxt-svelte/node_modules/.bin/acorn.exe +0 -0
- package/dist/templates/wxt-svelte/node_modules/.bin/adbkit.bunx +0 -0
- package/dist/templates/wxt-svelte/node_modules/.bin/adbkit.exe +0 -0
- package/dist/templates/wxt-svelte/node_modules/.bin/esbuild.bunx +0 -0
- package/dist/templates/wxt-svelte/node_modules/.bin/esbuild.exe +0 -0
- package/dist/templates/wxt-svelte/node_modules/.bin/firefox-profile.bunx +0 -0
- package/dist/templates/wxt-svelte/node_modules/.bin/firefox-profile.exe +0 -0
- package/dist/templates/wxt-svelte/node_modules/.bin/fx-runner.bunx +0 -0
- package/dist/templates/wxt-svelte/node_modules/.bin/fx-runner.exe +0 -0
- package/dist/templates/wxt-svelte/node_modules/.bin/giget.bunx +0 -0
- package/dist/templates/wxt-svelte/node_modules/.bin/giget.exe +0 -0
- package/dist/templates/wxt-svelte/node_modules/.bin/is-docker.bunx +0 -0
- package/dist/templates/wxt-svelte/node_modules/.bin/is-docker.exe +0 -0
- package/dist/templates/wxt-svelte/node_modules/.bin/is-in-ci.bunx +0 -0
- package/dist/templates/wxt-svelte/node_modules/.bin/is-in-ci.exe +0 -0
- package/dist/templates/wxt-svelte/node_modules/.bin/is-inside-container.bunx +0 -0
- package/dist/templates/wxt-svelte/node_modules/.bin/is-inside-container.exe +0 -0
- package/dist/templates/wxt-svelte/node_modules/.bin/jiti.bunx +0 -0
- package/dist/templates/wxt-svelte/node_modules/.bin/jiti.exe +0 -0
- package/dist/templates/wxt-svelte/node_modules/.bin/json5.bunx +0 -0
- package/dist/templates/wxt-svelte/node_modules/.bin/json5.exe +0 -0
- package/dist/templates/wxt-svelte/node_modules/.bin/nanoid.bunx +0 -0
- package/dist/templates/wxt-svelte/node_modules/.bin/nanoid.exe +0 -0
- package/dist/templates/wxt-svelte/node_modules/.bin/nypm.bunx +0 -0
- package/dist/templates/wxt-svelte/node_modules/.bin/nypm.exe +0 -0
- package/dist/templates/wxt-svelte/node_modules/.bin/parser.bunx +0 -0
- package/dist/templates/wxt-svelte/node_modules/.bin/parser.exe +0 -0
- package/dist/templates/wxt-svelte/node_modules/.bin/pino.bunx +0 -0
- package/dist/templates/wxt-svelte/node_modules/.bin/pino.exe +0 -0
- package/dist/templates/wxt-svelte/node_modules/.bin/print-chrome-path.bunx +0 -0
- package/dist/templates/wxt-svelte/node_modules/.bin/print-chrome-path.exe +0 -0
- package/dist/templates/wxt-svelte/node_modules/.bin/publish-extension.bunx +0 -0
- package/dist/templates/wxt-svelte/node_modules/.bin/publish-extension.exe +0 -0
- package/dist/templates/wxt-svelte/node_modules/.bin/rc.bunx +0 -0
- package/dist/templates/wxt-svelte/node_modules/.bin/rc.exe +0 -0
- package/dist/templates/wxt-svelte/node_modules/.bin/rollup-plugin-visualizer.bunx +0 -0
- package/dist/templates/wxt-svelte/node_modules/.bin/rollup-plugin-visualizer.exe +0 -0
- package/dist/templates/wxt-svelte/node_modules/.bin/rollup.bunx +0 -0
- package/dist/templates/wxt-svelte/node_modules/.bin/rollup.exe +0 -0
- package/dist/templates/wxt-svelte/node_modules/.bin/semver.bunx +0 -0
- package/dist/templates/wxt-svelte/node_modules/.bin/semver.exe +0 -0
- package/dist/templates/wxt-svelte/node_modules/.bin/svelte-check.bunx +0 -0
- package/dist/templates/wxt-svelte/node_modules/.bin/svelte-check.exe +0 -0
- package/dist/templates/wxt-svelte/node_modules/.bin/tsc.bunx +0 -0
- package/dist/templates/wxt-svelte/node_modules/.bin/tsc.exe +0 -0
- package/dist/templates/wxt-svelte/node_modules/.bin/tsserver.bunx +0 -0
- package/dist/templates/wxt-svelte/node_modules/.bin/tsserver.exe +0 -0
- package/dist/templates/wxt-svelte/node_modules/.bin/uuid.bunx +0 -0
- package/dist/templates/wxt-svelte/node_modules/.bin/uuid.exe +0 -0
- package/dist/templates/wxt-svelte/node_modules/.bin/vite-node.bunx +0 -0
- package/dist/templates/wxt-svelte/node_modules/.bin/vite-node.exe +0 -0
- package/dist/templates/wxt-svelte/node_modules/.bin/vite.bunx +0 -0
- package/dist/templates/wxt-svelte/node_modules/.bin/vite.exe +0 -0
- package/dist/templates/wxt-svelte/node_modules/.bin/which.bunx +0 -0
- package/dist/templates/wxt-svelte/node_modules/.bin/which.exe +0 -0
- package/dist/templates/wxt-svelte/node_modules/.bin/wxt-publish-extension.bunx +0 -0
- package/dist/templates/wxt-svelte/node_modules/.bin/wxt-publish-extension.exe +0 -0
- package/dist/templates/wxt-svelte/node_modules/.bin/wxt.bunx +0 -0
- package/dist/templates/wxt-svelte/node_modules/.bin/wxt.exe +0 -0
- package/dist/templates/wxt-svelte/node_modules/.cache/jiti/wxt-svelte-wxt.config.8de5262d.mjs +14 -0
- package/dist/templates/wxt-svelte/node_modules/.svelte2tsx-language-server-files/svelte-native-jsx.d.ts +32 -0
- package/dist/templates/wxt-svelte/node_modules/.svelte2tsx-language-server-files/svelte-shims-v4.d.ts +290 -0
- package/dist/templates/wxt-svelte/node_modules/.vite/_svelte_metadata.json +1 -0
- package/dist/templates/wxt-svelte/node_modules/@devicefarmer/adbkit/.github/dependabot.yml +46 -0
- package/dist/templates/wxt-svelte/node_modules/@devicefarmer/adbkit-monkey/.github/dependabot.yml +23 -0
- package/dist/templates/wxt-svelte/node_modules/@devicefarmer/adbkit-monkey/.semaphore/publish.yml +19 -0
- package/dist/templates/wxt-svelte/node_modules/@devicefarmer/adbkit-monkey/.semaphore/semaphore.yml +24 -0
- package/dist/templates/wxt-svelte/node_modules/atomic-sleep/.travis.yml +11 -0
- package/dist/templates/wxt-svelte/node_modules/atomically/.nyc_output/3e844113-839b-4b48-a102-297deb37538a.json +1 -0
- package/dist/templates/wxt-svelte/node_modules/atomically/.nyc_output/a2b562cc-4021-472c-b0e7-61b08d0856cc.json +1 -0
- package/dist/templates/wxt-svelte/node_modules/atomically/.nyc_output/af7432be-6f17-4c42-94eb-ac00c46b95fc.json +1 -0
- package/dist/templates/wxt-svelte/node_modules/atomically/.nyc_output/ceeeef50-6926-41c0-91b2-771446718957.json +1 -0
- package/dist/templates/wxt-svelte/node_modules/atomically/.nyc_output/e69c4534-8d9f-4c8d-98f1-55020da1bd75.json +1 -0
- package/dist/templates/wxt-svelte/node_modules/atomically/.nyc_output/processinfo/3e844113-839b-4b48-a102-297deb37538a.json +1 -0
- package/dist/templates/wxt-svelte/node_modules/atomically/.nyc_output/processinfo/a2b562cc-4021-472c-b0e7-61b08d0856cc.json +1 -0
- package/dist/templates/wxt-svelte/node_modules/atomically/.nyc_output/processinfo/af7432be-6f17-4c42-94eb-ac00c46b95fc.json +1 -0
- package/dist/templates/wxt-svelte/node_modules/atomically/.nyc_output/processinfo/ceeeef50-6926-41c0-91b2-771446718957.json +1 -0
- package/dist/templates/wxt-svelte/node_modules/atomically/.nyc_output/processinfo/e69c4534-8d9f-4c8d-98f1-55020da1bd75.json +1 -0
- package/dist/templates/wxt-svelte/node_modules/atomically/.nyc_output/processinfo/index.json +1 -0
- package/dist/templates/wxt-svelte/node_modules/atomically/.tap/processinfo/1139a7eb-c451-490b-a796-93ec17c301b4.json +244 -0
- package/dist/templates/wxt-svelte/node_modules/atomically/.tap/processinfo/2f325add-3ccd-4eb0-9a8e-03fcae4dda09.json +245 -0
- package/dist/templates/wxt-svelte/node_modules/atomically/.tap/processinfo/727ff5b3-573d-4552-853f-883cb2c42a43.json +245 -0
- package/dist/templates/wxt-svelte/node_modules/atomically/.tap/processinfo/cbbc81f4-251f-4e57-969f-e5e3622d90cd.json +245 -0
- package/dist/templates/wxt-svelte/node_modules/balanced-match/.github/FUNDING.yml +2 -0
- package/dist/templates/wxt-svelte/node_modules/chrome-launcher/.clang-format +6 -0
- package/dist/templates/wxt-svelte/node_modules/chrome-launcher/.github/workflows/ci.yml +56 -0
- package/dist/templates/wxt-svelte/node_modules/chrome-launcher/.github/workflows/lh-smoke.yml +48 -0
- package/dist/templates/wxt-svelte/node_modules/concat-map/.travis.yml +4 -0
- package/dist/templates/wxt-svelte/node_modules/deepmerge/.editorconfig +7 -0
- package/dist/templates/wxt-svelte/node_modules/deepmerge/.eslintcache +1 -0
- package/dist/templates/wxt-svelte/node_modules/entities/src/generated/.eslintrc.json +10 -0
- package/dist/templates/wxt-svelte/node_modules/fast-redact/.github/workflows/ci.yml +37 -0
- package/dist/templates/wxt-svelte/node_modules/fastq/.github/dependabot.yml +11 -0
- package/dist/templates/wxt-svelte/node_modules/fastq/.github/workflows/ci.yml +75 -0
- package/dist/templates/wxt-svelte/node_modules/firefox-profile/.github/workflows/ci.yml +22 -0
- package/dist/templates/wxt-svelte/node_modules/firefox-profile/.prettierrc +6 -0
- package/dist/templates/wxt-svelte/node_modules/fx-runner/.circleci/config.yml +152 -0
- package/dist/templates/wxt-svelte/node_modules/fx-runner/.github/dependabot.yml +7 -0
- package/dist/templates/wxt-svelte/node_modules/glob-to-regexp/.travis.yml +4 -0
- package/dist/templates/wxt-svelte/node_modules/graceful-readlink/.travis.yml +5 -0
- package/dist/templates/wxt-svelte/node_modules/is-arrayish/.editorconfig +18 -0
- package/dist/templates/wxt-svelte/node_modules/is-arrayish/.istanbul.yml +4 -0
- package/dist/templates/wxt-svelte/node_modules/is-arrayish/.travis.yml +17 -0
- package/dist/templates/wxt-svelte/node_modules/is-inside-container/node_modules/.bin/is-docker.bunx +0 -0
- package/dist/templates/wxt-svelte/node_modules/is-inside-container/node_modules/.bin/is-docker.exe +0 -0
- package/dist/templates/wxt-svelte/node_modules/isarray/.travis.yml +4 -0
- package/dist/templates/wxt-svelte/node_modules/jszip/.codeclimate.yml +16 -0
- package/dist/templates/wxt-svelte/node_modules/jszip/.editorconfig +8 -0
- package/dist/templates/wxt-svelte/node_modules/jszip/.eslintrc.js +43 -0
- package/dist/templates/wxt-svelte/node_modules/jszip/.github/workflows/pr.yaml +58 -0
- package/dist/templates/wxt-svelte/node_modules/jszip/.jekyll-metadata +0 -0
- package/dist/templates/wxt-svelte/node_modules/jszip/.travis.yml +17 -0
- package/dist/templates/wxt-svelte/node_modules/linkedom/.github/workflows/node.js.yml +31 -0
- package/dist/templates/wxt-svelte/node_modules/minimist/.eslintrc +29 -0
- package/dist/templates/wxt-svelte/node_modules/minimist/.github/FUNDING.yml +12 -0
- package/dist/templates/wxt-svelte/node_modules/minimist/.nycrc +14 -0
- package/dist/templates/wxt-svelte/node_modules/node-notifier/.github/workflows/test.yml +23 -0
- package/dist/templates/wxt-svelte/node_modules/node-notifier/.prettierrc +5 -0
- package/dist/templates/wxt-svelte/node_modules/node-notifier/node_modules/.bin/node-which.bunx +0 -0
- package/dist/templates/wxt-svelte/node_modules/node-notifier/node_modules/.bin/node-which.exe +0 -0
- package/dist/templates/wxt-svelte/node_modules/on-exit-leak-free/.github/dependabot.yml +12 -0
- package/dist/templates/wxt-svelte/node_modules/on-exit-leak-free/.github/workflows/ci.yml +46 -0
- package/dist/templates/wxt-svelte/node_modules/os-shim/.editorconfig +9 -0
- package/dist/templates/wxt-svelte/node_modules/os-shim/.travis.yml +8 -0
- package/dist/templates/wxt-svelte/node_modules/pino/.eslintignore +2 -0
- package/dist/templates/wxt-svelte/node_modules/pino/.eslintrc +8 -0
- package/dist/templates/wxt-svelte/node_modules/pino/.github/dependabot.yml +13 -0
- package/dist/templates/wxt-svelte/node_modules/pino/.github/workflows/bench.yml +61 -0
- package/dist/templates/wxt-svelte/node_modules/pino/.github/workflows/ci.yml +88 -0
- package/dist/templates/wxt-svelte/node_modules/pino/.github/workflows/lock-threads.yml +30 -0
- package/dist/templates/wxt-svelte/node_modules/pino/.github/workflows/target-main.yml +23 -0
- package/dist/templates/wxt-svelte/node_modules/pino/.nojekyll +0 -0
- package/dist/templates/wxt-svelte/node_modules/pino/.prettierignore +1 -0
- package/dist/templates/wxt-svelte/node_modules/pino/.taprc.yaml +8 -0
- package/dist/templates/wxt-svelte/node_modules/pino-abstract-transport/.github/dependabot.yml +13 -0
- package/dist/templates/wxt-svelte/node_modules/pino-abstract-transport/.github/workflows/ci.yml +97 -0
- package/dist/templates/wxt-svelte/node_modules/pino-abstract-transport/.husky/pre-commit +4 -0
- package/dist/templates/wxt-svelte/node_modules/pino-std-serializers/.editorconfig +13 -0
- package/dist/templates/wxt-svelte/node_modules/pino-std-serializers/.eslintignore +2 -0
- package/dist/templates/wxt-svelte/node_modules/pino-std-serializers/.github/dependabot.yml +13 -0
- package/dist/templates/wxt-svelte/node_modules/pino-std-serializers/.github/workflows/ci.yml +81 -0
- package/dist/templates/wxt-svelte/node_modules/process-warning/.gitattributes +2 -0
- package/dist/templates/wxt-svelte/node_modules/process-warning/.github/dependabot.yml +13 -0
- package/dist/templates/wxt-svelte/node_modules/process-warning/.github/workflows/ci.yml +22 -0
- package/dist/templates/wxt-svelte/node_modules/quick-format-unescaped/.github/workflows/ci.yml +21 -0
- package/dist/templates/wxt-svelte/node_modules/readable-stream/.travis.yml +34 -0
- package/dist/templates/wxt-svelte/node_modules/require-directory/.jshintrc +67 -0
- package/dist/templates/wxt-svelte/node_modules/require-directory/.travis.yml +3 -0
- package/dist/templates/wxt-svelte/node_modules/reusify/.github/dependabot.yml +7 -0
- package/dist/templates/wxt-svelte/node_modules/reusify/.github/workflows/ci.yml +96 -0
- package/dist/templates/wxt-svelte/node_modules/rfdc/.github/workflows/ci.yml +21 -0
- package/dist/templates/wxt-svelte/node_modules/shell-quote/.github/workflows/nodejs.yml +35 -0
- package/dist/templates/wxt-svelte/node_modules/sonic-boom/.eslintignore +2 -0
- package/dist/templates/wxt-svelte/node_modules/sonic-boom/.taprc +3 -0
- package/dist/templates/wxt-svelte/node_modules/spawn-sync/.travis.yml +8 -0
- package/dist/templates/wxt-svelte/node_modules/split/.travis.yml +3 -0
- package/dist/templates/wxt-svelte/node_modules/string_decoder/.travis.yml +50 -0
- package/dist/templates/wxt-svelte/node_modules/thread-stream/.github/dependabot.yml +13 -0
- package/dist/templates/wxt-svelte/node_modules/thread-stream/.github/workflows/ci.yml +94 -0
- package/dist/templates/wxt-svelte/node_modules/thread-stream/.husky/pre-commit +4 -0
- package/dist/templates/wxt-svelte/node_modules/thread-stream/.taprc +4 -0
- package/dist/templates/wxt-svelte/node_modules/through/.travis.yml +5 -0
- package/dist/templates/wxt-svelte/node_modules/typedarray/.travis.yml +4 -0
- package/dist/templates/wxt-svelte/node_modules/which/.travis.yml +6 -0
- package/dist/templates/wxt-svelte/node_modules/zip-dir/.travis.yml +3 -0
- package/package.json +1 -1
|
@@ -0,0 +1,48 @@
|
|
|
1
|
+
name: smoke
|
|
2
|
+
|
|
3
|
+
on:
|
|
4
|
+
push:
|
|
5
|
+
branches: [main]
|
|
6
|
+
pull_request: # run on all PRs, not just PRs to a particular branch
|
|
7
|
+
|
|
8
|
+
jobs:
|
|
9
|
+
# Only run smoke tests for windows against stable chrome.
|
|
10
|
+
lh-smoke-windows:
|
|
11
|
+
strategy:
|
|
12
|
+
matrix:
|
|
13
|
+
smoke-test-shard: [1, 2]
|
|
14
|
+
# e.g. if set 1 fails, continue with set 2 anyway
|
|
15
|
+
fail-fast: false
|
|
16
|
+
runs-on: windows-latest
|
|
17
|
+
name: Windows smoke ${{ matrix.smoke-test-shard }}/2
|
|
18
|
+
|
|
19
|
+
steps:
|
|
20
|
+
- name: git clone
|
|
21
|
+
uses: actions/checkout@v3
|
|
22
|
+
|
|
23
|
+
- name: Use Node.js
|
|
24
|
+
uses: actions/setup-node@v3
|
|
25
|
+
with:
|
|
26
|
+
node-version: lts/*
|
|
27
|
+
cache: 'yarn'
|
|
28
|
+
|
|
29
|
+
# chrome-launcher
|
|
30
|
+
# This'll add lighthouse AND install chrome-launcher's deps
|
|
31
|
+
- run: yarn add --frozen-lockfile --network-timeout 1000000 -D https://github.com/GoogleChrome/lighthouse.git#main
|
|
32
|
+
- run: yarn build
|
|
33
|
+
|
|
34
|
+
# lighthouse
|
|
35
|
+
- run: yarn --cwd node_modules/lighthouse/ install --frozen-lockfile --network-timeout 1000000
|
|
36
|
+
- run: yarn reset-link
|
|
37
|
+
- run: yarn --cwd node_modules/lighthouse/ build-report
|
|
38
|
+
|
|
39
|
+
- name: Run smoke tests
|
|
40
|
+
# Windows bots are slow, so only run enough tests to verify matching behavior.
|
|
41
|
+
run: yarn --cwd node_modules/lighthouse/ smoke --debug -j=2 --retries=5 --shard=${{ matrix.smoke-test-shard }}/2 dbw oopif offline lantern metrics
|
|
42
|
+
|
|
43
|
+
- name: Upload failures
|
|
44
|
+
if: failure()
|
|
45
|
+
uses: actions/upload-artifact@v4
|
|
46
|
+
with:
|
|
47
|
+
name: Smokehouse (windows)
|
|
48
|
+
path: node_modules/lighthouse/.tmp/smokehouse-ci-failures/
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
[{"/Users/joshduff/code/deepmerge/test/custom-is-mergeable-object.js":"1"},{"size":1990,"mtime":1679007485753,"results":"2","hashOfConfig":"3"},{"filePath":"4","messages":"5","suppressedMessages":"6","errorCount":0,"fatalErrorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0},"ktjd5k","/Users/joshduff/code/deepmerge/test/custom-is-mergeable-object.js",[],[]]
|
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
name: ci
|
|
2
|
+
|
|
3
|
+
on: [push, pull_request]
|
|
4
|
+
|
|
5
|
+
# This allows a subsequently queued workflow run to interrupt previous runs
|
|
6
|
+
concurrency:
|
|
7
|
+
group: "${{ github.workflow }} @ ${{ github.event.pull_request.head.label || github.head_ref || github.ref }}"
|
|
8
|
+
cancel-in-progress: true
|
|
9
|
+
|
|
10
|
+
jobs:
|
|
11
|
+
test:
|
|
12
|
+
runs-on: ubuntu-latest
|
|
13
|
+
|
|
14
|
+
permissions:
|
|
15
|
+
contents: read
|
|
16
|
+
|
|
17
|
+
strategy:
|
|
18
|
+
matrix:
|
|
19
|
+
node-version: [6.x, 8.x, 10.x, 12.x, 14.x, 16.x, 18.x]
|
|
20
|
+
|
|
21
|
+
steps:
|
|
22
|
+
- uses: actions/checkout@v3
|
|
23
|
+
with:
|
|
24
|
+
persist-credentials: false
|
|
25
|
+
|
|
26
|
+
- name: Use Node.js
|
|
27
|
+
uses: actions/setup-node@v3
|
|
28
|
+
with:
|
|
29
|
+
node-version: ${{ matrix.node-version }}
|
|
30
|
+
|
|
31
|
+
- name: Install
|
|
32
|
+
run: |
|
|
33
|
+
npm install
|
|
34
|
+
|
|
35
|
+
- name: Run tests
|
|
36
|
+
run: |
|
|
37
|
+
npm run test
|
|
@@ -0,0 +1,75 @@
|
|
|
1
|
+
name: ci
|
|
2
|
+
|
|
3
|
+
on: [push, pull_request]
|
|
4
|
+
|
|
5
|
+
jobs:
|
|
6
|
+
legacy:
|
|
7
|
+
runs-on: ubuntu-latest
|
|
8
|
+
|
|
9
|
+
strategy:
|
|
10
|
+
matrix:
|
|
11
|
+
node-version: ['0.10', '0.12', 4.x, 6.x, 8.x, 10.x, 12.x, 13.x, 14.x, 15.x, 16.x]
|
|
12
|
+
|
|
13
|
+
steps:
|
|
14
|
+
- uses: actions/checkout@v3
|
|
15
|
+
with:
|
|
16
|
+
persist-credentials: false
|
|
17
|
+
|
|
18
|
+
- name: Use Node.js
|
|
19
|
+
uses: actions/setup-node@v1
|
|
20
|
+
with:
|
|
21
|
+
node-version: ${{ matrix.node-version }}
|
|
22
|
+
|
|
23
|
+
- name: Install
|
|
24
|
+
run: |
|
|
25
|
+
npm install --production && npm install tape
|
|
26
|
+
|
|
27
|
+
- name: Run tests
|
|
28
|
+
run: |
|
|
29
|
+
npm run legacy
|
|
30
|
+
|
|
31
|
+
test:
|
|
32
|
+
runs-on: ubuntu-latest
|
|
33
|
+
|
|
34
|
+
strategy:
|
|
35
|
+
matrix:
|
|
36
|
+
node-version: [18.x, 20.x, 22.x]
|
|
37
|
+
|
|
38
|
+
steps:
|
|
39
|
+
- uses: actions/checkout@v3
|
|
40
|
+
with:
|
|
41
|
+
persist-credentials: false
|
|
42
|
+
|
|
43
|
+
- name: Use Node.js
|
|
44
|
+
uses: actions/setup-node@v3
|
|
45
|
+
with:
|
|
46
|
+
node-version: ${{ matrix.node-version }}
|
|
47
|
+
|
|
48
|
+
- name: Install
|
|
49
|
+
run: |
|
|
50
|
+
npm install
|
|
51
|
+
|
|
52
|
+
- name: Run tests
|
|
53
|
+
run: |
|
|
54
|
+
npm run test
|
|
55
|
+
|
|
56
|
+
types:
|
|
57
|
+
runs-on: ubuntu-latest
|
|
58
|
+
|
|
59
|
+
steps:
|
|
60
|
+
- uses: actions/checkout@v3
|
|
61
|
+
with:
|
|
62
|
+
persist-credentials: false
|
|
63
|
+
|
|
64
|
+
- name: Use Node.js
|
|
65
|
+
uses: actions/setup-node@v3
|
|
66
|
+
with:
|
|
67
|
+
node-version: 16
|
|
68
|
+
|
|
69
|
+
- name: Install
|
|
70
|
+
run: |
|
|
71
|
+
npm install
|
|
72
|
+
|
|
73
|
+
- name: Run types tests
|
|
74
|
+
run: |
|
|
75
|
+
npm run typescript
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
name: CI
|
|
2
|
+
on:
|
|
3
|
+
- push
|
|
4
|
+
- pull_request
|
|
5
|
+
jobs:
|
|
6
|
+
test:
|
|
7
|
+
name: Node.js ${{ matrix.node-version }}
|
|
8
|
+
runs-on: ubuntu-latest
|
|
9
|
+
strategy:
|
|
10
|
+
fail-fast: false
|
|
11
|
+
matrix:
|
|
12
|
+
node-version:
|
|
13
|
+
- 18
|
|
14
|
+
- 20
|
|
15
|
+
- 22
|
|
16
|
+
steps:
|
|
17
|
+
- uses: actions/checkout@v4
|
|
18
|
+
- uses: actions/setup-node@v4
|
|
19
|
+
with:
|
|
20
|
+
node-version: ${{ matrix.node-version }}
|
|
21
|
+
- run: npm install
|
|
22
|
+
- run: npm test
|
|
@@ -0,0 +1,152 @@
|
|
|
1
|
+
# These environment variables must be set in CircleCI UI
|
|
2
|
+
#
|
|
3
|
+
# NPM_TOKEN - A valid NPM token for releases
|
|
4
|
+
#
|
|
5
|
+
# NOTE:
|
|
6
|
+
# - to validate changes to this file locally using the circleci CLI tool:
|
|
7
|
+
#
|
|
8
|
+
# circleci config process .circleci/config.yml
|
|
9
|
+
#
|
|
10
|
+
# - to try run jobs locally:
|
|
11
|
+
#
|
|
12
|
+
# circleci config process .circleci/config.yml > tmp/processed.yaml
|
|
13
|
+
# circleci local execute -c tmp/processed.yml --job build-nodejs-current
|
|
14
|
+
#
|
|
15
|
+
version: 2.1
|
|
16
|
+
|
|
17
|
+
references:
|
|
18
|
+
# NOTE: update the nodejs version strings that follows to change the
|
|
19
|
+
# set of nodejs versions that should be tested.
|
|
20
|
+
# The nodejs version set as `nodejs_current` is the one used to
|
|
21
|
+
# release the package on npm.
|
|
22
|
+
nodejs_versions:
|
|
23
|
+
- &nodejs_current "14.19"
|
|
24
|
+
- &nodejs_next "16.14"
|
|
25
|
+
- &nodejs_experimental "17.7"
|
|
26
|
+
|
|
27
|
+
nodejs_enum: &nodejs_enum
|
|
28
|
+
type: enum
|
|
29
|
+
default: *nodejs_current
|
|
30
|
+
enum:
|
|
31
|
+
- *nodejs_current
|
|
32
|
+
- *nodejs_next
|
|
33
|
+
- *nodejs_experimental
|
|
34
|
+
repo_path: &repo_path ~/web-ext
|
|
35
|
+
defaults: &defaults
|
|
36
|
+
working_directory: *repo_path
|
|
37
|
+
|
|
38
|
+
commands:
|
|
39
|
+
attach_project_repo:
|
|
40
|
+
description: attach repo from workspace
|
|
41
|
+
steps:
|
|
42
|
+
- attach_workspace:
|
|
43
|
+
at: *repo_path
|
|
44
|
+
|
|
45
|
+
persist_project_repo:
|
|
46
|
+
description: persist repo in workspace
|
|
47
|
+
steps:
|
|
48
|
+
- persist_to_workspace:
|
|
49
|
+
root: *repo_path
|
|
50
|
+
paths: .
|
|
51
|
+
|
|
52
|
+
restore_build_cache:
|
|
53
|
+
description: restore npm package cache
|
|
54
|
+
parameters:
|
|
55
|
+
suffix:
|
|
56
|
+
type: string
|
|
57
|
+
default: default
|
|
58
|
+
steps:
|
|
59
|
+
- restore_cache:
|
|
60
|
+
keys:
|
|
61
|
+
- npm-packages-{{ checksum "package-lock.json" }}-<< parameters.suffix >>
|
|
62
|
+
|
|
63
|
+
save_build_cache:
|
|
64
|
+
description: save npm package cache
|
|
65
|
+
parameters:
|
|
66
|
+
suffix:
|
|
67
|
+
type: string
|
|
68
|
+
default: default
|
|
69
|
+
steps:
|
|
70
|
+
- save_cache:
|
|
71
|
+
key: npm-packages-{{ checksum "package-lock.json" }}-<< parameters.suffix >>
|
|
72
|
+
paths:
|
|
73
|
+
- ./node_modules
|
|
74
|
+
|
|
75
|
+
run_npm_ci:
|
|
76
|
+
description: install npm dependencies
|
|
77
|
+
steps:
|
|
78
|
+
- run: npm ci
|
|
79
|
+
|
|
80
|
+
jobs:
|
|
81
|
+
build:
|
|
82
|
+
parameters:
|
|
83
|
+
nodejs:
|
|
84
|
+
<<: *nodejs_enum
|
|
85
|
+
<<: *defaults
|
|
86
|
+
docker:
|
|
87
|
+
- image: cimg/node:<< parameters.nodejs >>
|
|
88
|
+
steps:
|
|
89
|
+
- attach_project_repo
|
|
90
|
+
- checkout
|
|
91
|
+
- restore_build_cache:
|
|
92
|
+
suffix: << parameters.nodejs >>
|
|
93
|
+
- run_npm_ci
|
|
94
|
+
- run: npm run test
|
|
95
|
+
## Only persist the workspace once (for the same nodejs
|
|
96
|
+
## version that release_tag will be executed for).
|
|
97
|
+
- when:
|
|
98
|
+
condition:
|
|
99
|
+
equal: [*nodejs_current, << parameters.nodejs >>]
|
|
100
|
+
steps:
|
|
101
|
+
- persist_project_repo
|
|
102
|
+
- save_build_cache:
|
|
103
|
+
suffix: << parameters.nodejs >>
|
|
104
|
+
|
|
105
|
+
release-tag:
|
|
106
|
+
parameters:
|
|
107
|
+
nodejs:
|
|
108
|
+
<<: *nodejs_enum
|
|
109
|
+
<<: *defaults
|
|
110
|
+
docker:
|
|
111
|
+
- image: cimg/node:<< parameters.nodejs >>
|
|
112
|
+
steps:
|
|
113
|
+
- attach_project_repo
|
|
114
|
+
- run:
|
|
115
|
+
name: npm registry auth
|
|
116
|
+
command: echo '//registry.npmjs.org/:_authToken=${NPM_TOKEN}' > .npmrc
|
|
117
|
+
- run:
|
|
118
|
+
name: npm registry publish
|
|
119
|
+
command: npm publish
|
|
120
|
+
|
|
121
|
+
workflows:
|
|
122
|
+
default-workflow:
|
|
123
|
+
jobs:
|
|
124
|
+
- build:
|
|
125
|
+
name: build-nodejs-current
|
|
126
|
+
nodejs: *nodejs_current
|
|
127
|
+
filters:
|
|
128
|
+
tags:
|
|
129
|
+
only: /.*/
|
|
130
|
+
- build:
|
|
131
|
+
name: build-nodejs-next
|
|
132
|
+
nodejs: *nodejs_next
|
|
133
|
+
filters:
|
|
134
|
+
tags:
|
|
135
|
+
only: /.*/
|
|
136
|
+
- build:
|
|
137
|
+
name: build-nodejs-experimental
|
|
138
|
+
nodejs: *nodejs_experimental
|
|
139
|
+
filters:
|
|
140
|
+
tags:
|
|
141
|
+
only: /.*/
|
|
142
|
+
- release-tag:
|
|
143
|
+
nodejs: *nodejs_current
|
|
144
|
+
requires:
|
|
145
|
+
- build-nodejs-current
|
|
146
|
+
- build-nodejs-next
|
|
147
|
+
- build-nodejs-experimental
|
|
148
|
+
filters:
|
|
149
|
+
tags:
|
|
150
|
+
only: /.*/
|
|
151
|
+
branches:
|
|
152
|
+
ignore: /.*/
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
root = true
|
|
2
|
+
|
|
3
|
+
[*]
|
|
4
|
+
indent_style = tab
|
|
5
|
+
end_of_line = lf
|
|
6
|
+
charset = utf-8
|
|
7
|
+
trim_trailing_whitespace = true
|
|
8
|
+
insert_final_newline = true
|
|
9
|
+
|
|
10
|
+
[*.coffee]
|
|
11
|
+
indent_style = space
|
|
12
|
+
|
|
13
|
+
[{package.json,*.yml}]
|
|
14
|
+
indent_style = space
|
|
15
|
+
indent_size = 2
|
|
16
|
+
|
|
17
|
+
[*.md]
|
|
18
|
+
trim_trailing_whitespace = false
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
language: node_js
|
|
2
|
+
|
|
3
|
+
script:
|
|
4
|
+
- node_modules/.bin/istanbul cover node_modules/.bin/_mocha -- --compilers coffee:coffee-script/register
|
|
5
|
+
- cat coverage/lcov.info | node_modules/.bin/coveralls
|
|
6
|
+
node_js:
|
|
7
|
+
- "0.10"
|
|
8
|
+
- "0.11"
|
|
9
|
+
- "0.12"
|
|
10
|
+
- "iojs"
|
|
11
|
+
os:
|
|
12
|
+
- linux
|
|
13
|
+
- osx
|
|
14
|
+
|
|
15
|
+
notifications:
|
|
16
|
+
slack:
|
|
17
|
+
secure: oOt8QGzdrPDsTMcyahtIq5Q+0U1iwfgJgFCxBLsomQ0bpIMn+y5m4viJydA2UinHPGc944HS3LMZS9iKQyv+DjTgbhUyNXqeVjtxCwRe37f5rKQlXVvdfmjHk2kln4H8DcK3r5Qd/+2hd9BeMsp2GImTrkRSud1CZQlhhe5IgZOboSoWpGVMMy1iazWT06tAtiB2LRVhmsdUaFZDWAhGZ+UAvCPf+mnBOAylIj+U0GDrofhfTi25RK0gddG2f/p2M1HCu49O6wECGWkt2hVei233DkNJyLLLJVcvmhf+aXkV5TjMyaoxh/HdcV4DrA7KvYuWmWWKsINa9hlwAsdd/FYmJ6PjRkKWas2JoQ1C+qOzDxyQvn3CaUZFKD99pdsq0rBBZujqXQKZZ/hWb/CE74BI6fKmqQkiEPaD/7uADj04FEg6HVBZaMCyauOaK5b3VC97twbALZ1qVxYV6mU+zSEvnUbpnjjvRO0fSl9ZHA+rzkW73kX3GmHY0wAozEZbSy7QLuZlQ2QtHmBLr+APaGMdL1sFF9qFfzqKy0WDbSE0WS6hpAEJpTsjYmeBrnI8UmK3m++iEgyQPvZoH9LhUT+ek7XIfHZMe04BmC6wuO24/RfpmR6bQK9VMarFCYlBiWxg/z30vkP0KTpUi3o/cqFm7/Noxc0i2LVqM3E0Sy4=
|
package/dist/templates/wxt-svelte/node_modules/is-inside-container/node_modules/.bin/is-docker.bunx
ADDED
|
Binary file
|
package/dist/templates/wxt-svelte/node_modules/is-inside-container/node_modules/.bin/is-docker.exe
ADDED
|
Binary file
|
|
@@ -0,0 +1,43 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
module.exports = {
|
|
4
|
+
"env": {
|
|
5
|
+
"browser": true,
|
|
6
|
+
"commonjs": true,
|
|
7
|
+
"es2021": true,
|
|
8
|
+
"node": true
|
|
9
|
+
},
|
|
10
|
+
"extends": "eslint:recommended",
|
|
11
|
+
"parserOptions": {
|
|
12
|
+
"ecmaVersion": "latest"
|
|
13
|
+
},
|
|
14
|
+
"ignorePatterns": ["vendor/*.js", "dist/*.js", "test/jquery-1.8.3.min.js"],
|
|
15
|
+
"rules": {
|
|
16
|
+
"indent": [
|
|
17
|
+
"error",
|
|
18
|
+
4
|
|
19
|
+
],
|
|
20
|
+
"linebreak-style": [
|
|
21
|
+
"error",
|
|
22
|
+
"unix"
|
|
23
|
+
],
|
|
24
|
+
"quotes": [
|
|
25
|
+
"error",
|
|
26
|
+
"double"
|
|
27
|
+
],
|
|
28
|
+
"semi": [
|
|
29
|
+
"error",
|
|
30
|
+
"always"
|
|
31
|
+
],
|
|
32
|
+
"curly": "error",
|
|
33
|
+
"eqeqeq": "error",
|
|
34
|
+
"no-new": "error",
|
|
35
|
+
"no-caller": "error",
|
|
36
|
+
"guard-for-in": "error",
|
|
37
|
+
"no-extend-native": "error",
|
|
38
|
+
"strict": [
|
|
39
|
+
"error",
|
|
40
|
+
"global"
|
|
41
|
+
],
|
|
42
|
+
}
|
|
43
|
+
};
|
|
@@ -0,0 +1,58 @@
|
|
|
1
|
+
name: pull-request
|
|
2
|
+
|
|
3
|
+
on:
|
|
4
|
+
pull_request:
|
|
5
|
+
branches: [ main ]
|
|
6
|
+
push:
|
|
7
|
+
branches: [ main ]
|
|
8
|
+
|
|
9
|
+
jobs:
|
|
10
|
+
test:
|
|
11
|
+
runs-on: ubuntu-latest
|
|
12
|
+
steps:
|
|
13
|
+
- uses: actions/checkout@v2
|
|
14
|
+
|
|
15
|
+
- uses: actions/setup-node@v2
|
|
16
|
+
with:
|
|
17
|
+
node-version: 'lts/*'
|
|
18
|
+
cache: 'npm'
|
|
19
|
+
|
|
20
|
+
- name: Cache Node modules
|
|
21
|
+
uses: actions/cache@v3
|
|
22
|
+
id: npm-cache
|
|
23
|
+
with:
|
|
24
|
+
path: ~/.npm
|
|
25
|
+
key: ${{ runner.os }}-node-${{ hashFiles('**/package-lock.json') }}
|
|
26
|
+
restore-keys: |
|
|
27
|
+
${{ runner.os }}-node-
|
|
28
|
+
|
|
29
|
+
- name: Install dependencies
|
|
30
|
+
run: |
|
|
31
|
+
npm install
|
|
32
|
+
sudo npx playwright install-deps
|
|
33
|
+
|
|
34
|
+
- name: Lint
|
|
35
|
+
run: npm run lint
|
|
36
|
+
- name: Test
|
|
37
|
+
run: npm test
|
|
38
|
+
|
|
39
|
+
- name: Benchmark
|
|
40
|
+
run: npm run benchmark | tee benchmark.txt
|
|
41
|
+
|
|
42
|
+
- name: Download previous benchmark data
|
|
43
|
+
uses: actions/cache@v3
|
|
44
|
+
with:
|
|
45
|
+
path: ./cache
|
|
46
|
+
key: ${{ runner.os }}-benchmark
|
|
47
|
+
|
|
48
|
+
- name: Store benchmark result
|
|
49
|
+
uses: benchmark-action/github-action-benchmark@v1
|
|
50
|
+
with:
|
|
51
|
+
tool: 'benchmarkjs'
|
|
52
|
+
output-file-path: benchmark.txt
|
|
53
|
+
external-data-json-path: ./cache/benchmark-data.json
|
|
54
|
+
github-token: ${{ secrets.GITHUB_TOKEN }}
|
|
55
|
+
alert-threshold: '150%'
|
|
56
|
+
comment-on-alert: true
|
|
57
|
+
fail-on-alert: true
|
|
58
|
+
alert-comment-cc-users: '@Stuk'
|
|
Binary file
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
language: node_js
|
|
2
|
+
sudo: false
|
|
3
|
+
matrix:
|
|
4
|
+
include:
|
|
5
|
+
- node_js: "stable"
|
|
6
|
+
env: COMMAND=lint
|
|
7
|
+
- node_js: "lts/*"
|
|
8
|
+
env: COMMAND=test-node
|
|
9
|
+
- node_js: "stable"
|
|
10
|
+
env: COMMAND=test-node
|
|
11
|
+
- node_js: "stable"
|
|
12
|
+
env: COMMAND=test-browser
|
|
13
|
+
env:
|
|
14
|
+
global:
|
|
15
|
+
- secure: MhA8GHU42X3GWTUMaqdZVvarx4BMjhQCUGNi3kvuD/iCmKVb7gMwj4jbds7AcJdsCRsRk8bBGzZs/E7HidBJMPDa5DhgLKy9EV1s42JlHq8lVzbJeWIGgrtyJvhVUkGRy2OJjnDSgh3U6elkQmvDn74jreSQc6m/yGoPFF1nqq8=
|
|
16
|
+
- secure: qREw6aUu2DnB+2reMuHgygSkumRiJvt7Z5Fz4uEVoraqbe65e4PGhtzypr9uIgCN43vxS2D5tAIeDbfid5VQrWFUQnrC9O5Z5qgVPsKN94zZ1tvYurXI4wRlAg58nNjkfGXWhLI3VUjjDTp5gYcMqgfe5hpEFYUPnUQkKGnaqAk=
|
|
17
|
+
script: npm run $COMMAND
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
# This workflow will do a clean install of node dependencies, cache/restore them, build the source code and run tests across different versions of node
|
|
2
|
+
# For more information see: https://help.github.com/actions/language-and-framework-guides/using-nodejs-with-github-actions
|
|
3
|
+
|
|
4
|
+
name: build
|
|
5
|
+
|
|
6
|
+
on: [push, pull_request]
|
|
7
|
+
|
|
8
|
+
jobs:
|
|
9
|
+
build:
|
|
10
|
+
|
|
11
|
+
runs-on: ubuntu-latest
|
|
12
|
+
|
|
13
|
+
strategy:
|
|
14
|
+
matrix:
|
|
15
|
+
node-version: [20]
|
|
16
|
+
|
|
17
|
+
steps:
|
|
18
|
+
- uses: actions/checkout@v4
|
|
19
|
+
- name: Use Node.js ${{ matrix.node-version }}
|
|
20
|
+
uses: actions/setup-node@v4
|
|
21
|
+
with:
|
|
22
|
+
node-version: ${{ matrix.node-version }}
|
|
23
|
+
cache: 'npm'
|
|
24
|
+
- run: npm ci
|
|
25
|
+
- run: npm run build --if-present
|
|
26
|
+
- run: npm test
|
|
27
|
+
- run: npm run coverage --if-present
|
|
28
|
+
- name: Coveralls
|
|
29
|
+
uses: coverallsapp/github-action@master
|
|
30
|
+
with:
|
|
31
|
+
github-token: ${{ secrets.GITHUB_TOKEN }}
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
{
|
|
2
|
+
"root": true,
|
|
3
|
+
|
|
4
|
+
"extends": "@ljharb/eslint-config/node/0.4",
|
|
5
|
+
|
|
6
|
+
"rules": {
|
|
7
|
+
"array-element-newline": 0,
|
|
8
|
+
"complexity": 0,
|
|
9
|
+
"func-style": [2, "declaration"],
|
|
10
|
+
"max-lines-per-function": 0,
|
|
11
|
+
"max-nested-callbacks": 1,
|
|
12
|
+
"max-statements-per-line": 1,
|
|
13
|
+
"max-statements": 0,
|
|
14
|
+
"multiline-comment-style": 0,
|
|
15
|
+
"no-continue": 1,
|
|
16
|
+
"no-param-reassign": 1,
|
|
17
|
+
"no-restricted-syntax": 1,
|
|
18
|
+
"object-curly-newline": 0,
|
|
19
|
+
},
|
|
20
|
+
|
|
21
|
+
"overrides": [
|
|
22
|
+
{
|
|
23
|
+
"files": "test/**",
|
|
24
|
+
"rules": {
|
|
25
|
+
"camelcase": 0,
|
|
26
|
+
},
|
|
27
|
+
},
|
|
28
|
+
]
|
|
29
|
+
}
|