Skip to content

Commit

Permalink
move d3-array, d3-interpolate-path, d3-shape, d3-scale, @iconify/svel…
Browse files Browse the repository at this point in the history
…te from package devDeps to deps
  • Loading branch information
janosh committed Jan 3, 2023
1 parent 3033f6e commit f901471
Show file tree
Hide file tree
Showing 6 changed files with 47 additions and 38 deletions.
7 changes: 6 additions & 1 deletion .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,6 @@ jobs:
uses: actions/setup-node@v3
with:
node-version: 18
registry-url: https://registry.npmjs.org

- name: Install dependencies
run: |
Expand All @@ -40,6 +39,12 @@ jobs:
- name: Check out repo
uses: actions/checkout@v3

- name: Set up node
uses: actions/setup-node@v3
with:
node-version: 18
registry-url: https://registry.npmjs.org

- name: Build package and publish to NPM
run: |
npm install
Expand Down
14 changes: 8 additions & 6 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -21,10 +21,16 @@
"test:unit": "vitest tests/unit/*.ts",
"test:e2e": "playwright test tests/*.ts",
"changelog": "npx auto-changelog --package --output changelog.md --unreleased-only --hide-credit --commit-limit false",
"update-coverage": "pnpm test:unit --run --coverage && npx istanbul-badges-readme"
"update-coverage": "vitest tests/unit --run --coverage && npx istanbul-badges-readme"
},
"devDependencies": {
"dependencies": {
"@iconify/svelte": "^3.0.1",
"d3-array": "^3.2.1",
"d3-interpolate-path": "^2.3.0",
"d3-scale": "^4.0.2",
"d3-shape": "^3.2.0"
},
"devDependencies": {
"@playwright/test": "^1.29.1",
"@sveltejs/adapter-static": "1.0.0",
"@sveltejs/kit": "1.0.1",
Expand All @@ -36,10 +42,6 @@
"@typescript-eslint/eslint-plugin": "^5.47.0",
"@typescript-eslint/parser": "^5.47.0",
"@vitest/coverage-c8": "^0.26.3",
"d3-array": "^3.2.1",
"d3-interpolate-path": "^2.3.0",
"d3-scale": "^4.0.2",
"d3-shape": "^3.2.0",
"eslint": "^8.30.0",
"eslint-plugin-svelte3": "^4.0.0",
"hastscript": "^7.1.0",
Expand Down
39 changes: 20 additions & 19 deletions pnpm-lock.yaml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

22 changes: 12 additions & 10 deletions src/lib/ColorCustomizer.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -13,16 +13,18 @@
}
</script>

<h2
on:click={() => (open = !open)}
on:keyup={(e) => [`Enter`, ` `].includes(e.key) && (open = !open)}
title={!open && collapsible ? `Click to open color picker` : null}
style:cursor={collapsible ? `pointer` : `default`}
transition:fade|local
>
<Icon icon="ion:color-palette" />
Customize Colors
</h2>
<slot name="title">
<h2
on:click={() => (open = !open)}
on:keyup={(e) => [`Enter`, ` `].includes(e.key) && (open = !open)}
title={!open && collapsible ? `Click to open color picker` : null}
style:cursor={collapsible ? `pointer` : `default`}
transition:fade|local
>
<Icon icon="ion:color-palette" />
Customize Colors
</h2>
</slot>
<div class="grid" transition:fade|local>
{#if open || !collapsible}
{#each Object.keys($category_colors) as category}
Expand Down
2 changes: 1 addition & 1 deletion src/lib/Icon.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -4,5 +4,5 @@
</script>

{#if $show_icons}
<Icon inline {...$$props} style="padding: 0 6pt 0 0;" />
<Icon inline {...$$props} style="padding: 0 5pt 0 0;" />
{/if}
1 change: 0 additions & 1 deletion vite.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,6 @@ const vite_config: UserConfig & { test: VitestConfig } = {
environment: `jsdom`,
css: true,
coverage: {
// add 'json'/'html' for more detailed reports
reporter: [`text`, `json-summary`],
},
},
Expand Down

0 comments on commit f901471

Please sign in to comment.