-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #51 from palerdot/svelte-v5
v3: Svelte v5
- Loading branch information
Showing
22 changed files
with
8,463 additions
and
11,994 deletions.
There are no files selected for viewing
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,34 @@ | ||
name: Test Coverage | ||
|
||
on: | ||
push: | ||
branches: [ master ] | ||
pull_request: | ||
branches: [ master ] | ||
|
||
jobs: | ||
cache-and-install: | ||
runs-on: ubuntu-latest | ||
|
||
steps: | ||
- name: Checkout | ||
uses: actions/checkout@v4 | ||
|
||
# https://phoenixnap.com/kb/git-checkout-submodule | ||
- name: Checkout submodules | ||
run: git submodule update --init --recursive | ||
|
||
- uses: pnpm/action-setup@v4 | ||
name: Install pnpm | ||
|
||
- name: Install Node.js | ||
uses: actions/setup-node@v4 | ||
with: | ||
node-version: 20 | ||
cache: 'pnpm' | ||
|
||
- name: Install dependencies | ||
run: pnpm install | ||
|
||
- name: Run tests | ||
run: pnpm test |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,5 @@ | ||
.DS_Store | ||
node_modules | ||
/dist/ | ||
|
||
.svelte-kit |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,3 @@ | ||
[submodule "lib/d3-speedometer"] | ||
path = lib/d3-speedometer | ||
url = git://github.com/palerdot/react-d3-speedometer | ||
url = https://github.com/palerdot/react-d3-speedometer |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,9 +1,33 @@ | ||
module.exports = { | ||
stories: ["../stories/**/*.stories.js"], | ||
stories: [ | ||
"../stories/**/*.stories.mdx", | ||
"../stories/**/*.stories.@(js|jsx|ts|tsx)", | ||
], | ||
|
||
addons: [ | ||
"@storybook/addon-actions", | ||
"@storybook/addon-links", | ||
"@storybook/addon-storysource", | ||
"@storybook/addon-docs", | ||
], | ||
|
||
async viteFinal(config, { configType }) { | ||
// customize the Vite config here | ||
return { | ||
...config, | ||
define: { | ||
...config.define, | ||
global: "window", | ||
}, | ||
} | ||
}, | ||
|
||
framework: { | ||
name: "@storybook/svelte-vite", | ||
options: {}, | ||
}, | ||
|
||
docs: { | ||
autodocs: true, | ||
}, | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,16 @@ | ||
import { addons } from "@storybook/addons" | ||
import { themes } from "@storybook/theming" | ||
import { addons } from "@storybook/manager-api" | ||
import { themes, create } from "@storybook/theming/create" | ||
import theme from "../src/core/theme" | ||
|
||
const speedoTheme = create({ | ||
...themes.dark, | ||
...theme, | ||
|
||
brandTitle: "svelte-speedometer", | ||
brandUrl: "https://github.com/palerdot/svelte-speedometer", | ||
}) | ||
|
||
addons.setConfig({ | ||
showPanel: true, | ||
theme: themes.dark, | ||
theme: speedoTheme, | ||
}) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
Submodule d3-speedometer
updated
46 files
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -3,70 +3,85 @@ | |
"version": "2.0.0", | ||
"description": "Svelte component for showing speedometer like gauge using d3", | ||
"repository": "https://github.com/palerdot/svelte-speedometer", | ||
"svelte": "src/index.js", | ||
"module": "dist/index.mjs", | ||
"type": "module", | ||
"main": "dist/index.js", | ||
"types": "dist/index.d.ts", | ||
"svelte": "./dist/index.js", | ||
"exports": { | ||
".": { | ||
"types": "./dist/index.d.ts", | ||
"svelte": "./dist/index.js" | ||
}, | ||
"./package.json": "./package.json" | ||
}, | ||
"files": [ | ||
"dist", | ||
"src" | ||
], | ||
"scripts": { | ||
"prepare": "./scripts/publish.sh", | ||
"prepack": "./scripts/prepack.sh", | ||
"postpack": "./scripts/postpack.sh", | ||
"test": "jest --verbose", | ||
"build": "rollup -c", | ||
"test": "vitest", | ||
"build": "svelte-package --input ./src && publint --strict", | ||
"init-submodule": "git submodule update --init", | ||
"pull-submodules": "git submodule foreach git pull origin master", | ||
"storybook": "start-storybook -p 6006", | ||
"build-storybook": "build-storybook", | ||
"publish-storybook": "bash ./scripts/publish_storybook.sh", | ||
"make-build": "npm run build && cp ./src/index.d.ts ./dist/" | ||
"storybook": "storybook dev -p 6006", | ||
"build-storybook": "storybook build -o .out", | ||
"publish-storybook": "bash ./scripts/publish_storybook.sh" | ||
}, | ||
"devDependencies": { | ||
"@babel/cli": "^7.8.4", | ||
"@babel/core": "^7.9.0", | ||
"@babel/plugin-transform-runtime": "^7.9.0", | ||
"@babel/preset-env": "^7.9.0", | ||
"@rollup/plugin-commonjs": "^11.0.2", | ||
"@rollup/plugin-node-resolve": "^6.0.0", | ||
"@storybook/addon-actions": "^5.3.17", | ||
"@storybook/addon-docs": "^5.3.17", | ||
"@storybook/addon-links": "^5.3.17", | ||
"@storybook/addon-storysource": "^5.3.17", | ||
"@storybook/addons": "^5.3.17", | ||
"@storybook/svelte": "^5.3.17", | ||
"@testing-library/jest-dom": "^5.3.0", | ||
"@testing-library/svelte": "^3.0.0", | ||
"babel-jest": "^25.2.6", | ||
"babel-loader": "^8.1.0", | ||
"babel-plugin-lodash": "^3.3.4", | ||
"git-url-parse": "^11.1.2", | ||
"jest": "^25.2.7", | ||
"jest-transform-svelte": "^2.1.1", | ||
"prettier": "^2.0.2", | ||
"prettier-eslint": "^9.0.1", | ||
"rollup": "^1.20.0", | ||
"rollup-plugin-babel": "^4.4.0", | ||
"rollup-plugin-svelte": "^5.0.0", | ||
"svelte": "^3.20.1", | ||
"svelte-jester": "^1.0.5", | ||
"svelte-loader": "^2.13.6" | ||
"@storybook/addon-actions": "^8.2.6", | ||
"@storybook/addon-docs": "^8.2.6", | ||
"@storybook/addon-links": "^8.2.6", | ||
"@storybook/addon-storysource": "^8.2.6", | ||
"@storybook/manager-api": "^8.2.6", | ||
"@storybook/svelte": "^8.2.6", | ||
"@storybook/svelte-vite": "^8.2.6", | ||
"@storybook/theming": "^8.2.6", | ||
"@sveltejs/package": "^2.3.2", | ||
"@sveltejs/vite-plugin-svelte": "^3.1.1", | ||
"@testing-library/jest-dom": "^6.4.8", | ||
"@testing-library/svelte": "^5.2.1", | ||
"eslint": "^9.8.0", | ||
"eslint-plugin-svelte": "^2.43.0", | ||
"globals": "^15.8.0", | ||
"happy-dom": "^14.12.3", | ||
"prettier": "^3.3.3", | ||
"prettier-plugin-svelte": "^3.2.6", | ||
"publint": "^0.2.9", | ||
"storybook": "^8.2.6", | ||
"svelte": "5.0.0-next.203", | ||
"svelte-check": "^3.8.4", | ||
"svelte-eslint-parser": "^0.41.0", | ||
"typescript": "^5.5.4", | ||
"typescript-eslint": "^8.0.0-alpha.55", | ||
"vite": "^5.3.5", | ||
"vitest": "^2.0.4" | ||
}, | ||
"dependencies": { | ||
"d3": "^5.15.0", | ||
"d3-array": "^3.1.4", | ||
"d3-color": "^3.1.0", | ||
"d3-ease": "^3.0.1", | ||
"d3-format": "^3.1.0", | ||
"d3-interpolate": "^3.0.1", | ||
"d3-scale": "^4.0.2", | ||
"d3-selection": "^3.0.0", | ||
"d3-shape": "^3.1.0", | ||
"d3-transition": "^3.0.1", | ||
"lodash-es": "^4.17.15", | ||
"memoize-one": "^5.1.1" | ||
"memoize-one": "^6.0.0" | ||
}, | ||
"peerDependencies": { | ||
"svelte": "^3.0.0 || ^4.0.0" | ||
"svelte": "^5.0.0" | ||
}, | ||
"keywords": [ | ||
"svelte", | ||
"speedometer", | ||
"d3", | ||
"gauge" | ||
], | ||
"files": [ | ||
"src", | ||
"dist" | ||
], | ||
"author": "palerdot", | ||
"license": "MIT" | ||
"license": "MIT", | ||
"packageManager": "[email protected]" | ||
} |
Oops, something went wrong.