Skip to content

Commit 8aad909

Browse files
committed
svelte.technology -> v2.svelte.dev
1 parent be919d9 commit 8aad909

13 files changed

+37
-37
lines changed

LICENSE

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
Copyright (c) 2017 [these people](https://github.com/sveltejs/svelte.technology/graphs/contributors)
1+
Copyright (c) 2017 [these people](https://github.com/sveltejs/v2.svelte.dev/graphs/contributors)
22

33
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
44

README.md

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
1-
# [svelte.technology](https://svelte.technology)
1+
# [v2.svelte.dev](https://v2.svelte.dev)
22

3-
The website for Svelte.
3+
The website for Svelte v2.
44

55
## Note
66

@@ -13,8 +13,8 @@ This project uses [yarn](https://yarnpkg.com) to manage dependencies.
1313
Set up the project:
1414

1515
```bash
16-
git clone [email protected]:sveltejs/svelte.technology.git
17-
cd svelte.technology
16+
git clone [email protected]:sveltejs/v2.svelte.dev.git
17+
cd v2.svelte.dev
1818
yarn
1919
```
2020

@@ -29,7 +29,7 @@ cd /path/to/svelte
2929
yarn link
3030
yarn dev # rebuild Svelte on changes
3131

32-
cd /path/to/svelte.technology
32+
cd /path/to/v2.svelte.dev
3333
yarn link svelte
3434
yarn dev
3535
```

content/blog/2017-08-07-the-easiest-way-to-get-started.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ Because of that, getting started with it can be a little bit confusing at first.
1313

1414
## 1. Use the REPL
1515

16-
The [Svelte REPL](https://svelte.technology/repl) is the easiest way to begin. You can choose from a list of examples to get you started, and tweak them until they do what you want.
16+
The [Svelte REPL](repl) is the easiest way to begin. You can choose from a list of examples to get you started, and tweak them until they do what you want.
1717

1818
<aside>You'll need to have [Node.js](https://nodejs.org/) installed, and know how to use the terminal</aside>
1919

content/blog/2017-09-06-the-zen-of-just-writing-css.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ The consequence of all this is the **append-only stylesheet**. There's no way of
2828

2929
The idea behind SFCs is simple: you write your components in an HTML file that (optionally) contains a `<style>` and `<script>` attribute describing the component's styles and behaviour. Svelte, Ractive, Vue and Polymer all follow this basic pattern.
3030

31-
<aside>[Read the introductory blog post](https://svelte.technology/blog/frameworks-without-the-framework) if you're new to Svelte. Or [read](https://twitter.com/padolsey/status/899717303234908160) [the](https://twitter.com/sveltejs/status/901818357644701696) [testimonials](https://twitter.com/sveltejs/status/901818106309476352).</aside>
31+
<aside>[Read the introductory blog post](blog/frameworks-without-the-framework) if you're new to Svelte. Or [read](https://twitter.com/padolsey/status/899717303234908160) [the](https://twitter.com/sveltejs/status/901818357644701696) [testimonials](https://twitter.com/sveltejs/status/901818106309476352).</aside>
3232

3333
(For the rest of this article we'll be using Svelte, obviously. But if the idea of using a template language makes you shudder — your fears are misplaced, but that's a topic for another day — then just use Vue which lets you use JSX in your SFCs.)
3434

content/blog/2017-12-31-sapper-towards-the-ideal-web-app-framework.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ We can do better!
3939

4040
## The compiler-as-framework paradigm shift
4141

42-
[Svelte introduced a radical idea](https://svelte.technology/blog/frameworks-without-the-framework): what if your UI framework wasn't a framework at all, but a compiler that turned your components into standalone JavaScript modules? Instead of using a library like React or Vue, which knows nothing about your app and must therefore be a one-size-fits-all solution, we can ship highly-optimised vanilla JavaScript. Just the code your app needs, and without the memory and performance overhead of solutions based on a virtual DOM.
42+
[Svelte introduced a radical idea](blog/frameworks-without-the-framework): what if your UI framework wasn't a framework at all, but a compiler that turned your components into standalone JavaScript modules? Instead of using a library like React or Vue, which knows nothing about your app and must therefore be a one-size-fits-all solution, we can ship highly-optimised vanilla JavaScript. Just the code your app needs, and without the memory and performance overhead of solutions based on a virtual DOM.
4343

4444
The JavaScript world is [moving towards this model](https://tomdale.net/2017/09/compilers-are-the-new-frameworks/). [Stencil](https://stenciljs.com), a Svelte-inspired framework from the Ionic team, compiles to web components. [Glimmer](https://glimmerjs.com) *doesn't* compile to standalone JavaScript (the pros and cons of which deserve a separate blog post), but the team is doing some fascinating research around compiling templates to bytecode. (React is [getting in on the action](https://twitter.com/trueadm/status/944908776896978946), though their current research focuses on optimising your JSX app code, which is arguably more similar to the ahead-of-time optimisations that Angular, Ractive and Vue have been doing for a few years.)
4545

@@ -67,7 +67,7 @@ But size is only part of the story. Svelte apps are also extremely performant an
6767

6868
The biggest drawback for many developers evaluating Sapper would be 'but I like React, and I already know how to use it', which is fair.
6969

70-
If you're in that camp, I'd invite you to at least try alternative frameworks. You might be pleasantly surprised! The [Sapper RealWorld](https://github.com/sveltejs/realworld) implementation totals 1,201 lines of source code, compared to 2,377 for the reference implementation, because you're able to express concepts very concisely using Svelte's template syntax (which [takes all of five minutes to master](https://svelte.technology/guide#template-syntax)). You get [scoped CSS](the-zen-of-just-writing-css), with unused style removal and minification built-in, and you can use preprocessors like LESS if you want. You no longer need to use Babel. SSR is ridiculously fast, because it's just string concatenation. And we recently introduced [svelte/store](https://svelte.technology/guide#state-management), a tiny global store that synchronises state across your component hierarchy with zero boilerplate. The worst that can happen is that you'll end up feeling vindicated!
70+
If you're in that camp, I'd invite you to at least try alternative frameworks. You might be pleasantly surprised! The [Sapper RealWorld](https://github.com/sveltejs/realworld) implementation totals 1,201 lines of source code, compared to 2,377 for the reference implementation, because you're able to express concepts very concisely using Svelte's template syntax (which [takes all of five minutes to master](guide#template-syntax)). You get [scoped CSS](the-zen-of-just-writing-css), with unused style removal and minification built-in, and you can use preprocessors like LESS if you want. You no longer need to use Babel. SSR is ridiculously fast, because it's just string concatenation. And we recently introduced [svelte/store](guide#state-management), a tiny global store that synchronises state across your component hierarchy with zero boilerplate. The worst that can happen is that you'll end up feeling vindicated!
7171

7272
But there are trade-offs nonetheless. Some people have a pathological aversion to any form of 'template language', and maybe that applies to you. JSX proponents will clobber you with the 'it's just JavaScript' mantra, and therein lies React's greatest strength, which is that it is infinitely flexible. That flexibility comes with its own set of trade-offs, but we're not here to discuss those.
7373

content/guide/03-scoped-styles.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -99,7 +99,7 @@ For rules *not* to be removed, they must apply to the component's markup. As far
9999
</script>
100100
```
101101

102-
Instead of manually manipulating the DOM, you should always use the `class` attribute (or the [class directive](https://svelte.technology/guide#classes)):
102+
Instead of manually manipulating the DOM, you should always use the `class` attribute (or the [class directive](guide#classes)):
103103

104104
```html
105105
<!-- { repl: false } -->

content/guide/99-still-to-come.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,4 +2,4 @@
22
title: TODO...
33
---
44

5-
This documentation is still a work-in-progress, like Svelte itself. If there are particular things that are missing or could be improved, then [please raise an issue on GitHub](https://github.com/sveltejs/svelte.technology)!
5+
This documentation is still a work-in-progress, like Svelte itself. If there are particular things that are missing or could be improved, then [please raise an issue on GitHub](https://github.com/sveltejs/v2.svelte.dev)!

now.json

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
{
2+
"env": {
3+
"NODE_ENV": "production",
4+
"BASEURL": "https://v2.svelte.dev",
5+
"GITHUB_CLIENT_ID": "@svelte-gist-client-id",
6+
"GITHUB_CLIENT_SECRET": "@svelte-gist-client-secret"
7+
},
8+
"alias": "v2.svelte.dev",
9+
"files": [
10+
"__sapper__/build",
11+
"static",
12+
"content"
13+
]
14+
}

package.json

Lines changed: 4 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
{
2-
"name": "svelte.technology",
2+
"name": "v2.svelte.dev",
33
"version": "1.0.0",
44
"description": "Docs and examples for Svelte",
55
"scripts": {
@@ -17,17 +17,17 @@
1717
},
1818
"repository": {
1919
"type": "git",
20-
"url": "git+https://github.com/sveltejs/svelte.technology.git"
20+
"url": "git+https://github.com/sveltejs/v2.svelte.dev.git"
2121
},
2222
"keywords": [
2323
"svelte"
2424
],
2525
"author": "Rich Harris",
2626
"license": "MIT",
2727
"bugs": {
28-
"url": "https://github.com/sveltejs/svelte.technology/issues"
28+
"url": "https://github.com/sveltejs/v2.svelte.dev/issues"
2929
},
30-
"homepage": "https://github.com/sveltejs/svelte.technology#readme",
30+
"homepage": "https://github.com/sveltejs/v2.svelte.dev#readme",
3131
"devDependencies": {
3232
"chalk": "^2.0.1",
3333
"clean-css": "^4.2.1",
@@ -68,19 +68,5 @@
6868
"shelljs": "^0.8.3",
6969
"sourcemap-codec": "^1.4.1",
7070
"svelte-extras": "^2.0.0"
71-
},
72-
"now": {
73-
"env": {
74-
"NODE_ENV": "production",
75-
"BASEURL": "https://svelte.technology",
76-
"GITHUB_CLIENT_ID": "@svelte-gist-client-id",
77-
"GITHUB_CLIENT_SECRET": "@svelte-gist-client-secret"
78-
},
79-
"alias": "svelte.technology",
80-
"files": [
81-
"__sapper__/build",
82-
"static",
83-
"content"
84-
]
8571
}
8672
}

src/routes/blog/rss.xml.js

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -13,17 +13,17 @@ const rss = `
1313
1414
<channel>
1515
<title>Svelte blog</title>
16-
<link>https://svelte.technology/blog</link>
16+
<link>https://v2.svelte.dev/blog</link>
1717
<description>News and information about the magical disappearing UI framework</description>
1818
<image>
19-
<url>https://svelte.technology/favicon.png</url>
19+
<url>https://v2.svelte.dev/favicon.png</url>
2020
<title>Svelte</title>
21-
<link>https://svelte.technology/blog</link>
21+
<link>https://v2.svelte.dev/blog</link>
2222
</image>
2323
${get_posts().map( post => `
2424
<item>
2525
<title>${post.metadata.title}</title>
26-
<link>https://svelte.technology/blog/${post.slug}</link>
26+
<link>https://v2.svelte.dev/blog/${post.slug}</link>
2727
<description>${post.metadata.description}</description>
2828
<pubDate>${formatPubdate(post.metadata.pubdate)}</pubDate>
2929
</item>

src/routes/gist/create.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ export async function post(req, res) {
2222
}, null, ' ')
2323
},
2424
'README.md': {
25-
content: `Created with [svelte.technology/repl](https://svelte.technology/repl)`
25+
content: `Created with [svelte.dev/repl](https://svelte.dev/repl)`
2626
}
2727
};
2828
components.forEach(component => {

src/routes/guide/index.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
<section id='{section.slug}'>
88
<h2>
99
{section.metadata.title}
10-
<small><a href='https://github.com/sveltejs/svelte.technology/edit/master/content/guide/{section.file}'>edit this section</a></small>
10+
<small><a href='https://github.com/sveltejs/v2.svelte.dev/edit/master/content/guide/{section.file}'>edit this section</a></small>
1111
</h2>
1212
{@html section.html}
1313
</section>

src/template.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -141,7 +141,7 @@
141141
<meta name='twitter:creator' content='@sveltejs'>
142142
<meta name='twitter:title' content='Svelte'>
143143
<meta name='twitter:description' content='The magical disappearing UI framework'>
144-
<meta name='twitter:image' content='https://svelte.technology/images/twitter-card.png'>
144+
<meta name='twitter:image' content='https://v2.svelte.dev/images/twitter-card.png'>
145145
</head>
146146
<body>
147147
<div id='sapper'>%sapper.html%</div>

0 commit comments

Comments
 (0)