Skip to content

Instantly share code, notes, and snippets.

@theetrain
Created December 20, 2024 15:42
Show Gist options
  • Save theetrain/e8a1a87894b86ba96d6e5441b3c455de to your computer and use it in GitHub Desktop.
Save theetrain/e8a1a87894b86ba96d6e5441b3c455de to your computer and use it in GitHub Desktop.
Example Svelte UI library package.json
{
"name": "@internal/ui-svelte",
"version": "0.0.0-semantically-released",
"description": "Component library for the common Svelte components",
"license": "SEE LICENSE IN LICENSE",
"repository": {
"type": "git",
"url": "git+https://github.com/redacted/ui-svelte.git"
},
"files": [
"src",
"!*test*",
"!*stories*",
"!*example*"
],
"type": "module",
"exports": {
".": {
"import": "./src/index.js",
"svelte": "./src/index.js"
},
"./styles/main.css": "./src/styles/main.css"
},
"scripts": {
"storybook": "storybook dev -p 6006",
"build-storybook": "storybook build",
"svelte-check": "svelte-check",
"chromatic": "chromatic --exit-zero-on-changes",
"test": "svelte-check && vitest && chromatic",
"test:unit": "vitest"
},
"engines": {
"node": ">=20"
},
"devDependencies": {
"@chromatic-com/storybook": "^3.2.2",
"@eslint/eslintrc": "^3.1.0",
"@storybook/addon-a11y": "^8.4.5",
"@storybook/addon-essentials": "^8.4.5",
"@storybook/addon-interactions": "^8.4.5",
"@storybook/addon-links": "^8.4.5",
"@storybook/addon-svelte-csf": "^4.1.7",
"@storybook/blocks": "^8.4.5",
"@storybook/svelte": "^8.4.5",
"@storybook/svelte-vite": "^8.4.5",
"@storybook/test": "^8.4.5",
"@sveltejs/vite-plugin-svelte": "^3.0.2",
"@testing-library/jest-dom": "^6.6.2",
"@testing-library/svelte": "^5.2.4",
"chromatic": "^11.5.4",
"eslint": "^9.5.0",
"eslint-config-standard": "^17.1.0",
"eslint-plugin-svelte": "^2.41.0",
"jsdom": "^25.0.1",
"prettier-plugin-svelte": "^3.2.5",
"storybook": "^8.4.5",
"storybook-addon-pseudo-states": "^4.0.2",
"svelte": "^4.2.12",
"svelte-cartesian": "^1.1.1",
"svelte-check": "^4.0.2",
"vite": "^5.2.0",
"vitest": "^2.1.3"
},
"overrides": {
"eslint-config-standard": {
"eslint": "$eslint"
}
},
"dependencies": {
"svelte-progress-bar": "^3.0.2"
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment