Skip to content

Commit

Permalink
Project update. [p][robotic]
Browse files Browse the repository at this point in the history
  • Loading branch information
jaswrks committed Aug 29, 2023
1 parent 90f0c63 commit 08b0fab
Show file tree
Hide file tree
Showing 7 changed files with 238 additions and 325 deletions.
48 changes: 26 additions & 22 deletions .github/dependabot.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,31 +11,35 @@
version: 2

registries:
registry-npmjs-org:
type: npm-registry
url: https://registry.npmjs.org
token: ${{secrets.USER_NPM_TOKEN}}
registry-npmjs-org:
type: npm-registry
url: https://registry.npmjs.org
token: ${{secrets.USER_NPM_TOKEN}}

updates:
- package-ecosystem: npm
directory: /
registries:
- registry-npmjs-org
labels:
- suggestion
- robotic
schedule:
interval: daily
open-pull-requests-limit: 5
- package-ecosystem: npm
directory: /
registries:
- registry-npmjs-org
labels:
- suggestion
- robotic
schedule:
interval: weekly
open-pull-requests-limit: 5
allow:
- dependency-type: production

- package-ecosystem: github-actions
directory: /
labels:
- suggestion
- robotic
schedule:
interval: daily
open-pull-requests-limit: 5
- package-ecosystem: github-actions
directory: /
labels:
- suggestion
- robotic
schedule:
interval: weekly
open-pull-requests-limit: 5
allow:
- dependency-type: all
#
##
# Customizations
Expand Down
6 changes: 4 additions & 2 deletions dev/.files/typescript/config.json
Original file line number Diff line number Diff line change
Expand Up @@ -40,9 +40,11 @@
"forceConsistentCasingInFileNames": true,

"paths": {
// Note: Use just a single array item for Vite/Jest compatibility.
"react": ["../node_modules/preact/compat"],
"react-dom": ["../node_modules/preact/compat"]
"react/jsx-runtime": ["../node_modules/preact/jsx-runtime"],

"react-dom": ["../node_modules/preact/compat"],
"react-dom/test-utils": ["../node_modules/preact/test-utils"]
},
"declaration": true,
"declarationMap": false,
Expand Down
3 changes: 3 additions & 0 deletions dev/.files/typescript/includes/import-aliases.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -27,5 +27,8 @@ const projDir = path.resolve(__dirname, '../../../..');
*/
export default {
'^react$': path.resolve(projDir, './node_modules/preact/compat'),
'^react/jsx-runtime$': path.resolve(projDir, './node_modules/preact/jsx-runtime'),

'^react-dom$': path.resolve(projDir, './node_modules/preact/compat'),
'^react-dom/test-utils$': path.resolve(projDir, './node_modules/preact/test-utils'),
};
5 changes: 5 additions & 0 deletions dev/.files/vite/config.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -539,8 +539,13 @@ export default async ({ mode, command, ssrBuild: isSSRBuild }) => {
// See: <https://o5p.me/8Pjw1d> for `environment`, `environmentMatchGlobs` precedence.
environmentMatchGlobs: [
['**/*.{cfp,web,webw}.{test,tests,spec,specs}.{' + vitestExtensions.map((e) => e.slice(1)).join(',') + '}', 'jsdom'],
['**/{test,tests,spec,specs,__test__,__tests__,__spec__,__specs__}/**/*.{cfp,web,webw}.{' + vitestExtensions.map((e) => e.slice(1)).join(',') + '}', 'jsdom'],

['**/*.cfw.{test,tests,spec,specs}.{' + vitestExtensions.map((e) => e.slice(1)).join(',') + '}', 'miniflare'],
['**/{test,tests,spec,specs,__test__,__tests__,__spec__,__specs__}/**/*.cfw.{' + vitestExtensions.map((e) => e.slice(1)).join(',') + '}', 'miniflare'],

['**/*.{node,any}.{test,tests,spec,specs}.{' + vitestExtensions.map((e) => e.slice(1)).join(',') + '}', 'node'],
['**/{test,tests,spec,specs,__test__,__tests__,__spec__,__specs__}/**/*.{node,any}.{' + vitestExtensions.map((e) => e.slice(1)).join(',') + '}', 'node'],
],
server: { deps: { external: ['**/dist/**', '**/node_modules/**'].concat(rollupConfig.external) } },
cache: { dir: path.resolve(projDir, './node_modules/.vitest') },
Expand Down
Loading

0 comments on commit 08b0fab

Please sign in to comment.