Skip to content

Commit

Permalink
feat: update build flow for svelte-kit (#561)
Browse files Browse the repository at this point in the history
Co-authored-by: Dominik Moritz <[email protected]>
  • Loading branch information
cabreraalex and domoritz authored Nov 1, 2022
1 parent 81cf535 commit dd6f785
Show file tree
Hide file tree
Showing 28 changed files with 1,344 additions and 630 deletions.
6 changes: 2 additions & 4 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -23,11 +23,9 @@
},
"devDependencies": {
"@babel/eslint-parser": "^7.19.1",
"@storybook/builder-webpack5": "^6.5.13",
"@storybook/manager-webpack5": "^6.5.13",
"@tsconfig/svelte": "^3.0.0",
"@typescript-eslint/eslint-plugin": "^5.41.0",
"@typescript-eslint/parser": "^5.41.0",
"@typescript-eslint/eslint-plugin": "^5.42.0",
"@typescript-eslint/parser": "^5.42.0",
"commitizen": "^4.2.5",
"cz-conventional-changelog": "3.3.0",
"eslint": "^8.26.0",
Expand Down
9 changes: 0 additions & 9 deletions packages/sample-project/README.md

This file was deleted.

39 changes: 0 additions & 39 deletions packages/sample-project/package.json

This file was deleted.

Binary file removed packages/sample-project/public/favicon.png
Binary file not shown.
63 changes: 0 additions & 63 deletions packages/sample-project/public/global.css

This file was deleted.

18 changes: 0 additions & 18 deletions packages/sample-project/public/index.html

This file was deleted.

86 changes: 0 additions & 86 deletions packages/sample-project/rollup.config.js

This file was deleted.

5 changes: 0 additions & 5 deletions packages/sample-project/tsconfig.json

This file was deleted.

2 changes: 1 addition & 1 deletion packages/storybook/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@
"@storybook/source-loader": "6.5.13",
"@storybook/svelte": "6.5.13",
"svelte": "^3.52.0",
"svelte-vega": "^1.1.0",
"svelte-vega": "^1.1.1",
"vega": "^5.22.1",
"vega-lite": "^5.6.0",
"react": "^18.2.0",
Expand Down
24 changes: 24 additions & 0 deletions packages/svelte-vega-sample/.gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
# Logs
logs
*.log
npm-debug.log*
yarn-debug.log*
yarn-error.log*
pnpm-debug.log*
lerna-debug.log*

node_modules
dist
dist-ssr
*.local

# Editor directories and files
.vscode/*
!.vscode/extensions.json
.idea
.DS_Store
*.suo
*.ntvs*
*.njsproj
*.sln
*.sw?
3 changes: 3 additions & 0 deletions packages/svelte-vega-sample/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
# Sample Svelte-Vega Application

Simple Svelte application using svelte-vega.
12 changes: 12 additions & 0 deletions packages/svelte-vega-sample/index.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>Vite + Svelte + TS</title>
</head>
<body>
<div id="app"></div>
<script type="module" src="/src/main.ts"></script>
</body>
</html>
23 changes: 23 additions & 0 deletions packages/svelte-vega-sample/package.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
{
"name": "svelte-vega-sample",
"private": true,
"version": "0.0.0",
"type": "module",
"scripts": {
"dev": "vite",
"build": "vite build",
"preview": "vite preview",
"check": "svelte-check --tsconfig ./tsconfig.json"
},
"devDependencies": {
"@sveltejs/vite-plugin-svelte": "^1.1.0",
"@tsconfig/svelte": "^3.0.0",
"svelte-check": "^2.9.2",
"svelte-preprocess": "^4.10.7",
"svelte-vega": "^1.1.1",
"svelte": "^3.52.0",
"tslib": "^2.4.0",
"typescript": "^4.6.4",
"vite": "^3.2.0"
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -116,7 +116,6 @@
$: viewVL ? console.log("Vega-Lite view: ", viewVL.data("table")) : "";
$: viewV ? console.log("Vega view: ", viewV.data("table")) : "";
</script>

<main>
Expand All @@ -137,5 +136,4 @@
max-width: none;
}
}
</style>
Loading

0 comments on commit dd6f785

Please sign in to comment.