Skip to content

Commit

Permalink
Reduce cache size
Browse files Browse the repository at this point in the history
  • Loading branch information
hv0905 committed Nov 25, 2024
1 parent 70c997b commit 5c96b8e
Show file tree
Hide file tree
Showing 5 changed files with 16 additions and 12 deletions.
23 changes: 13 additions & 10 deletions eslint.config.js
Original file line number Diff line number Diff line change
@@ -1,18 +1,18 @@
// @ts-check
const eslint = require('@eslint/js');
const tseslint = require('typescript-eslint');
const angular = require('angular-eslint');
import js from '@eslint/js';
import tsEslint from 'typescript-eslint';
import ngEslint from 'angular-eslint';

module.exports = tseslint.config(
export default tsEslint.config(
{
files: ['**/*.ts'],
extends: [
eslint.configs.recommended,
...tseslint.configs.recommended,
...tseslint.configs.stylistic,
...angular.configs.tsRecommended,
js.configs.recommended,
...tsEslint.configs.recommended,
...tsEslint.configs.stylistic,
...ngEslint.configs.tsRecommended,
],
processor: angular.processInlineTemplates,
processor: ngEslint.processInlineTemplates,
rules: {
'@angular-eslint/directive-selector': [
'error',
Expand All @@ -34,7 +34,10 @@ module.exports = tseslint.config(
},
{
files: ['**/*.html'],
extends: [...angular.configs.templateRecommended, ...angular.configs.templateAccessibility],
extends: [
...ngEslint.configs.templateRecommended,
...ngEslint.configs.templateAccessibility,
],
rules: {
'@angular-eslint/template/label-has-associated-control': ['off'],
'@angular-eslint/template/click-events-have-key-events': ['off'],
Expand Down
File renamed without changes.
1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@
"[email protected]"
],
"license": "MIT",
"type": "module",
"scripts": {
"start": "yarn build:sw-base && ng serve",
"build:sw-base": "tsc -p ./sw-base/",
Expand Down
Empty file removed public/assets/.gitkeep
Empty file.
4 changes: 2 additions & 2 deletions workbox-config.js
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
module.exports = {
globDirectory: './dist/browser',
globPatterns: ['**/*.{png,icns,js,ico,html,json,ttf,woff2,css}'],
globPatterns: ['**/*.{png,js,ico,html,json,woff2,css}'],
swDest: 'dist/browser/sw.js',
ignoreURLParametersMatching: [/^utm_/, /^fbclid$/],
importScripts: ['./sw_notifications.js'],
sourcemap: false,
cleanupOutdatedCaches: true,
navigateFallback: '/index.html',
navigateFallbackDenylist: [/^\/api\//],
navigateFallbackDenylist: [/^\/api\//, /^\/assets\//],
};

0 comments on commit 5c96b8e

Please sign in to comment.