diff --git a/.gitignore b/.gitignore index 2c8e89efc2..71c1dad10b 100644 --- a/.gitignore +++ b/.gitignore @@ -25,4 +25,5 @@ _actual*.* /site/.env /site/.sessions /site/static/svelte-app.json -/site/scripts/svelte-app \ No newline at end of file +/site/scripts/svelte-app +/site/src/routes/_contributors.js diff --git a/package-lock.json b/package-lock.json index bb8027e73b..b435177e9d 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1,6 +1,6 @@ { "name": "svelte", - "version": "3.0.0-alpha6", + "version": "3.0.0-alpha12", "lockfileVersion": 1, "requires": true, "dependencies": { diff --git a/site/content/blog/2018-04-18-version-2.md b/site/content/blog/2018-04-18-version-2.md index cde706795a..3204fa1035 100644 --- a/site/content/blog/2018-04-18-version-2.md +++ b/site/content/blog/2018-04-18-version-2.md @@ -15,25 +15,12 @@ Almost a year after we first started talking about version 2 on the Svelte issue Each of these items is described in more depth below. If you get stuck, ask for help in our friendly [Gitter chatroom](https://gitter.im/sveltejs/svelte). - - -- Install Svelte v2 from npm -- Upgrade your templates with [svelte-upgrade](https://github.com/sveltejs/svelte-upgrade) -- Remove calls to `component.observe`, or add the `observe` method from [svelte-extras](https://github.com/sveltejs/svelte-extras) -- Rewrite calls to `component.get('foo')` as `component.get().foo` -- Return `destroy` from your custom event handlers, rather than `teardown` -- Make sure you're not passing numeric string props to components +- Install Svelte v2 from npm +- Upgrade your templates with [svelte-upgrade](https://github.com/sveltejs/svelte-upgrade) +- Remove calls to `component.observe`, or add the `observe` method from [svelte-extras](https://github.com/sveltejs/svelte-extras) +- Rewrite calls to `component.get('foo')` as `component.get().foo` +- Return `destroy` from your custom event handlers, rather than `teardown` +- Make sure you're not passing numeric string props to components ## New template syntax diff --git a/site/content/blog/2018-12-26-svelte-css-in-js.md b/site/content/blog/2018-12-26-svelte-css-in-js.md new file mode 100644 index 0000000000..40bbfe8bd1 --- /dev/null +++ b/site/content/blog/2018-12-26-svelte-css-in-js.md @@ -0,0 +1,29 @@ +--- +title: Using CSS-in-JS with Svelte +description: You don't need to, but you can +pubdate: 2018-12-26 +author: Rich Harris +authorURL: https://twitter.com/Rich_Harris +--- + +CSS is a core part of any web app. By extension, a UI framework that doesn't have a built-in way to add styles to your components is unfinished. + +That's why Svelte allows you to add CSS in a component's ` -
- -
- - {#if open} - - {:else} - - {/if} - + -