Skip to content

Commit

Permalink
bump deps
Browse files Browse the repository at this point in the history
  • Loading branch information
mceck committed Sep 24, 2024
1 parent b91b513 commit 58caa4f
Show file tree
Hide file tree
Showing 5 changed files with 419 additions and 207 deletions.
7 changes: 7 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,13 @@ All notable changes to the "clickup-kanbans" extension will be documented in thi

Check [Keep a Changelog](http://keepachangelog.com/) for recommendations on how to structure this file.

## [1.5.3]

### Fixed

- timesheet view labels
- bump dependencies

## [1.5.2]

### Fixed
Expand Down
4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -157,11 +157,11 @@
"glob": "^8.0.3",
"mocha": "^10.0.0",
"postcss": "^8.4.21",
"rollup": "^2.77.0",
"rollup": "^3.29.5",
"rollup-plugin-svelte": "^7.1.0",
"rollup-plugin-svelte-svg": "^1.0.0-beta.6",
"rollup-plugin-terser": "^7.0.2",
"svelte": "^3.49.0",
"svelte": "^4.2.19",
"svelte-check": "^2.8.0",
"svelte-preprocess": "^4.10.7",
"tailwindcss": "^3.2.4",
Expand Down
51 changes: 30 additions & 21 deletions rollup.config.js → rollup.config.mjs
Original file line number Diff line number Diff line change
@@ -1,40 +1,49 @@
import svelte from 'rollup-plugin-svelte';
import resolve from '@rollup/plugin-node-resolve';
import commonjs from '@rollup/plugin-commonjs';
import { terser } from 'rollup-plugin-terser';
import sveltePreprocess from 'svelte-preprocess';
import typescript from '@rollup/plugin-typescript';
import { svelteSVG } from 'rollup-plugin-svelte-svg';
import path from 'path';
import fs from 'fs';
import css from 'rollup-plugin-css-only';
import svelte from "rollup-plugin-svelte";
import resolve from "@rollup/plugin-node-resolve";
import commonjs from "@rollup/plugin-commonjs";
import { terser } from "rollup-plugin-terser";
import sveltePreprocess from "svelte-preprocess";
import typescript from "@rollup/plugin-typescript";
import { svelteSVG } from "rollup-plugin-svelte-svg";
import path from "path";
import fs from "fs";
import css from "rollup-plugin-css-only";
import autoprefixer from "autoprefixer";
import tailwind from "tailwindcss";

const production = !process.env.ROLLUP_WATCH;

export default fs
.readdirSync(path.join(__dirname, 'web', 'pages'))
.filter((input) => input.endsWith('.ts'))
.readdirSync(path.join(".", "web", "pages"))
.filter((input) => input.endsWith(".ts"))
.map((input) => {
const name = input.split('.')[0];
const name = input.split(".")[0];
return {
input: 'web/pages/' + input,
input: "web/pages/" + input,
output: {
sourcemap: true,
format: 'iife',
name: 'app',
file: 'out/compiled/' + name + '.js',
assetFileNames: name + '.css',
format: "iife",
name: "app",
file: "out/compiled/" + name + ".js",
assetFileNames: name + ".css",
},
plugins: [
svelte({
onwarn: (warning, handler) => {
if (warning.code.startsWith("a11y")) {
// ignore a11y warnings
return;
}
handler(warning);
},
compilerOptions: {
// enable run-time checks when not in production
dev: !production,
},
preprocess: sveltePreprocess({
sourceMap: !production,
postcss: {
plugins: [require('tailwindcss'), require('autoprefixer')],
plugins: [tailwind, autoprefixer],
},
}),
emitCss: production,
Expand All @@ -49,11 +58,11 @@ export default fs
// https://github.com/rollup/plugins/tree/master/packages/commonjs
resolve({
browser: true,
dedupe: ['svelte'],
dedupe: ["svelte"],
}),
commonjs(),
typescript({
tsconfig: 'web/tsconfig.json',
tsconfig: "web/tsconfig.json",
sourceMap: !production,
inlineSources: !production,
}),
Expand Down
6 changes: 4 additions & 2 deletions web/components/Page.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -234,7 +234,8 @@
if (folder.lists.find((l) => l.id === filter.selectedView.list.id)) {
const follow = [...folder.lists]
.sort((a, b) => a.name.localeCompare(b.name))
.findLast((l) => l.name.startsWith(filter.follow));
.reverse()
.find((l) => l.name.startsWith(filter.follow));
if (follow && follow.id !== filter.selectedView.list.id) {
return follow;
}
Expand All @@ -243,7 +244,8 @@
if (space.lists.find((l) => l.id === filter.selectedView.list.id)) {
const follow = [...space.lists]
.sort((a, b) => a.name.localeCompare(b.name))
.findLast((l) => l.name.startsWith(filter.follow));
.reverse()
.find((l) => l.name.startsWith(filter.follow));
if (follow) {
return follow;
}
Expand Down
Loading

0 comments on commit 58caa4f

Please sign in to comment.