Skip to content

Commit

Permalink
deps: updated all dependencies (#1944)
Browse files Browse the repository at this point in the history
  • Loading branch information
TheSlimvReal authored Jul 25, 2023
1 parent ca927be commit 484ee47
Show file tree
Hide file tree
Showing 101 changed files with 17,475 additions and 51,235 deletions.
13 changes: 8 additions & 5 deletions .eslintrc.json
Original file line number Diff line number Diff line change
@@ -1,17 +1,13 @@
{
"root": true,
"ignorePatterns": [
"projects/**/*"
],
"overrides": [
{
"files": [
"*.ts"
],
"parserOptions": {
"project": [
"tsconfig.json",
"e2e/tsconfig.json"
"tsconfig.json"
],
"createDefaultProgram": true
},
Expand Down Expand Up @@ -46,8 +42,15 @@
"extends": [
"plugin:@angular-eslint/template/recommended"
],
"rules": {}
}, {
"files": ["*.stories.@(ts|tsx|js|jsx|mjs|cjs)"],
"rules": {
"storybook/story-exports": "off"
}
}
],
"extends": [
"plugin:storybook/recommended"
]
}
9 changes: 4 additions & 5 deletions .storybook/main.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,11 +5,10 @@ module.exports = {
"@storybook/addon-essentials",
"@storybook/addon-interactions",
],
framework: "@storybook/angular",
core: {
builder: {
name: "webpack5",
options: {
framework: {
name: "@storybook/angular",
options: {
builder: {
lazyCompilation: true,
fsCache: true,
},
Expand Down
20 changes: 0 additions & 20 deletions .storybook/preview.js

This file was deleted.

26 changes: 26 additions & 0 deletions .storybook/preview.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
import "@angular/localize/init";
import * as buffer from "buffer";
import * as MockDate from "mockdate";
import { Preview } from "@storybook/angular";
import { environment } from "../src/environments/environment";
import { SessionType } from "../src/app/core/session/session-type";

// fixing a mocked "TODAY" to have persistent stories for visual regression testing
MockDate.set(new Date("2023-06-09"));
// polyfill buffer here as well
window.Buffer = buffer.Buffer;
environment.production = false;
environment.session_type = SessionType.mock;
environment.demo_mode = false;

export const preview: Preview = {
parameters: {
actions: { argTypesRegex: "^on[A-Z].*" },
options: {
storySort: {
order: ["Core", "Features", "*"],
method: "alphabetical",
},
},
},
};
16 changes: 3 additions & 13 deletions .storybook/tsconfig.json
Original file line number Diff line number Diff line change
@@ -1,19 +1,9 @@
{
"extends": "../src/tsconfig.app.json",
"compilerOptions": {
"types": [
"node",
"jasmine"
],
"allowSyntheticDefaultImports": true
},
"exclude": [
"../src/**/*.spec.ts",
"../projects/**/*.spec.ts"
],
"extends": "../tsconfig.json",
"include": [
"../src/**/*.stories.ts",
"../src/polyfills.ts"
"../src/polyfills.ts",
"preview.ts"
],
"files": [
"./typings.d.ts"
Expand Down
4 changes: 2 additions & 2 deletions e2e/tsconfig.json
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
{
"extends": "../tsconfig.json",
"include": ["**/*.ts"],
"include": ["integration"],
"compilerOptions": {
"sourceMap": false,
"types": ["cypress", "node"]
"types": ["cypress"]
}
}
1 change: 0 additions & 1 deletion karma.conf.js
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,6 @@ module.exports = function (config) {
plugins: [
require("karma-jasmine"),
require("karma-chrome-launcher"),
require("karma-firefox-launcher"),
require("karma-jasmine-html-reporter"),
require("karma-coverage"),
require("@angular-devkit/build-angular/plugins/karma"),
Expand Down
Loading

0 comments on commit 484ee47

Please sign in to comment.