Skip to content

Commit

Permalink
updates docs, readme to v2
Browse files Browse the repository at this point in the history
  • Loading branch information
stolinski committed Jul 1, 2022
1 parent 94e842b commit f597497
Show file tree
Hide file tree
Showing 6 changed files with 15 additions and 8 deletions.
1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@
"description": "A dope toy for Svelte stores",
"devDependencies": {
"@leveluptuts/svelte-side-menu": "workspace:^0.0.4",
"@sveltejs/adapter-static": "^1.0.0-next.34",
"@sveltejs/kit": "next",
"@typescript-eslint/eslint-plugin": "^5.27.0",
"@typescript-eslint/parser": "^5.27.0",
Expand Down
2 changes: 1 addition & 1 deletion package/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

## Demo

https://svelte.dev/repl/4566ac90a5ca42d6ade1c383b6f1ba66?version=3.43.1
https://svelte.dev/repl/4566ac90a5ca42d6ade1c383b6f1ba66

`npm install @leveluptuts/svelte-toy`

Expand Down
4 changes: 2 additions & 2 deletions src/app.html
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,9 @@
<meta charset="utf-8" />
<link rel="icon" href="/favicon.png" />
<meta name="viewport" content="width=device-width, initial-scale=1" />
%svelte.head%
%sveltekit.head%
</head>
<body>
<div id="svelte">%svelte.body%</div>
<div id="svelte">%sveltekit.body%</div>
</body>
</html>
2 changes: 0 additions & 2 deletions src/lib/Row.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -108,8 +108,6 @@
border-radius: 1px;
outline-offset: 1px;
background: var(--toy-background-int);
/* border-bottom: 1px solid hsla(0, 0%, 80%, 1); */
}
/* Chrome, Safari, Edge, Opera */
Expand Down
4 changes: 2 additions & 2 deletions src/routes/index.svelte
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
<script>
import Toy from '$lib/Toy.svelte';
import { Toy } from '$lib/index';
import { writable } from 'svelte/store';
let example = writable({
Expand Down Expand Up @@ -42,7 +42,7 @@
<pre>{JSON.stringify($singleObj, null, 2)}</pre>
</div>

<Toy register={[{ example }, { singleValue }, { singleObj }]} />
<Toy register={{ example, singleValue, singleObj }} />

<style>
.state-example {
Expand Down
10 changes: 9 additions & 1 deletion svelte.config.js
Original file line number Diff line number Diff line change
@@ -1,10 +1,18 @@
import adapter from '@sveltejs/adapter-static';
import preprocess from 'svelte-preprocess';

/** @type {import('@sveltejs/kit').Config} */
const config = {
// Consult https://github.com/sveltejs/svelte-preprocess
// for more information about preprocessors
preprocess: preprocess()
preprocess: preprocess(),

kit: {
prerender: {
default: true
},
adapter: adapter()
}
};

export default config;

0 comments on commit f597497

Please sign in to comment.