Skip to content

Commit

Permalink
chore(deps): bump angular from 18.2.9 to 18.2.11
Browse files Browse the repository at this point in the history
chore(deps): bump angular material from 18.2.10 to 18.2.12

chore(deps-dev): bump angular cli from 18.2.10 to 18.2.11

chore(deps-dev): remove husky from dependencies

test: add vitest support
  • Loading branch information
k3nsei committed Nov 8, 2024
1 parent 93c3652 commit cfc8ae4
Show file tree
Hide file tree
Showing 31 changed files with 2,836 additions and 1,438 deletions.
2 changes: 1 addition & 1 deletion .husky/commit-msg → .githooks/commit-msg
Original file line number Diff line number Diff line change
Expand Up @@ -2,4 +2,4 @@

[ -n "$CI" ] && exit 0

pnpm exec commitlint --edit "${1}"
pnpm commitlint --edit "${1}"
5 changes: 5 additions & 0 deletions .githooks/pre-commit
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
#!/bin/sh

[ -n "$CI" ] && exit 0

pnpm lint-staged --allow-empty
2 changes: 1 addition & 1 deletion .github/actions/install-deps/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ runs:
- name: Setup Package Manager
uses: pnpm/action-setup@v4
with:
version: ${{ inputs.pnpm-version }}
#version: ${{ inputs.pnpm-version }}
run_install: false

- name: Setup Node.js
Expand Down
15 changes: 10 additions & 5 deletions .github/workflows/pr.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,15 +23,20 @@ jobs:
uses: ./.github/actions/install-deps

- name: Check Format
run: pnpm exec prettier --check --ignore-unknown .
run: pnpm prettier --check --ignore-unknown .

- name: Lint
run: pnpm exec ng lint
run: pnpm ng lint

- name: Build
run: |
pnpm exec ng build ngx-signal-store-query --configuration=production
pnpm exec ng build demo --configuration=production --progress=false --verbose
pnpm ng build ngx-signal-store-query --configuration=production
pnpm ng build demo --configuration=production --progress=false --verbose
- name: Test
run: |
pnpm run test ngx-signal-store-query
pnpm run test demo
- name: Upload build artefacts
uses: actions/upload-artifact@v4
Expand Down Expand Up @@ -60,7 +65,7 @@ jobs:
env:
HOME: /root
working-directory: apps/demo-e2e
run: pnpm exec playwright test --project=${{ matrix.browser }}
run: pnpm playwright test --project=${{ matrix.browser }}

- name: Upload test report
if: ${{ !cancelled() }}
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/release-please.yml
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ jobs:
- name: Build
if: ${{ steps.release.outputs.release_created }}
shell: bash
run: pnpm exec ng build ngx-signal-store-query --configuration=production
run: pnpm ng build ngx-signal-store-query --configuration=production

- name: Copy extra files
if: ${{ steps.release.outputs.release_created }}
Expand Down
5 changes: 0 additions & 5 deletions .husky/pre-commit

This file was deleted.

1 change: 1 addition & 0 deletions .node-version
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
22.11.0
1 change: 1 addition & 0 deletions .nvmrc
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
22.11.0
26 changes: 6 additions & 20 deletions angular.json
Original file line number Diff line number Diff line change
Expand Up @@ -37,17 +37,16 @@
"defaultConfiguration": "production"
},
"test": {
"builder": "@angular-devkit/build-angular:karma",
"builder": "@analogjs/vitest-angular:test",
"options": {
"tsConfig": "libs/ngx-signal-store-query/tsconfig.spec.json",
"polyfills": ["zone.js", "zone.js/testing"]
"tsConfig": "libs/ngx-signal-store-query/tsconfig.spec.json"
}
},
"lint": {
"builder": "@angular-eslint/builder:lint",
"options": {
"lintFilePatterns": ["libs/ngx-signal-store-query/**/*.ts", "libs/ngx-signal-store-query/**/*.html"],
"eslintConfig": "libs/ngx-signal-store-query/eslint.config.js"
"eslintConfig": "libs/ngx-signal-store-query/eslint.config.mjs"
}
}
}
Expand Down Expand Up @@ -131,29 +130,16 @@
"builder": "@angular-devkit/build-angular:extract-i18n"
},
"test": {
"builder": "@angular-devkit/build-angular:karma",
"builder": "@analogjs/vitest-angular:test",
"options": {
"polyfills": ["zone.js", "zone.js/testing"],
"tsConfig": "apps/demo/tsconfig.spec.json",
"inlineStyleLanguage": "scss",
"assets": [
{
"glob": "**/*",
"input": "apps/demo/public"
}
],
"stylePreprocessorOptions": {
"includePaths": ["apps/demo/src/styles"]
},
"styles": ["apps/demo/src/global-styles.scss"],
"scripts": []
"tsConfig": "apps/demo/tsconfig.spec.json"
}
},
"lint": {
"builder": "@angular-eslint/builder:lint",
"options": {
"lintFilePatterns": ["apps/demo/**/*.ts", "apps/demo/**/*.html"],
"eslintConfig": "apps/demo/eslint.config.js"
"eslintConfig": "apps/demo/eslint.config.mjs"
}
}
}
Expand Down
8 changes: 0 additions & 8 deletions apps/demo-e2e/eslint.config.js

This file was deleted.

11 changes: 11 additions & 0 deletions apps/demo-e2e/eslint.config.mjs
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
// @ts-check
import tsEslint from 'typescript-eslint';

import rootConfig from '../../eslint.config.mjs';

const config = tsEslint.config(...rootConfig, {
files: ['*.ts', '**/*.ts'],
rules: {},
});

export default config;
2 changes: 1 addition & 1 deletion apps/demo-e2e/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
},
"devDependencies": {
"@playwright/test": "1.48.2",
"@types/node": "^22.8.1"
"@types/node": "^22.9.0"
},
"volta": {
"extends": "../../package.json"
Expand Down
Original file line number Diff line number Diff line change
@@ -1,8 +1,9 @@
// @ts-check
const tsEslint = require('typescript-eslint');
const rootConfig = require('../../eslint.config.js');
import tsEslint from 'typescript-eslint';

module.exports = tsEslint.config(
import rootConfig from '../../eslint.config.mjs';

const config = tsEslint.config(
...rootConfig,
{
files: ['**/*.ts'],
Expand Down Expand Up @@ -30,3 +31,5 @@ module.exports = tsEslint.config(
rules: {},
},
);

export default config;
Loading

0 comments on commit cfc8ae4

Please sign in to comment.