mirror of
https://github.com/kevin-DL/sapper.git
synced 2026-01-19 05:45:27 +00:00
update tests, move test app to v2
This commit is contained in:
16
package.json
16
package.json
@@ -34,13 +34,13 @@
|
|||||||
"rimraf": "^2.6.2",
|
"rimraf": "^2.6.2",
|
||||||
"sade": "^1.4.0",
|
"sade": "^1.4.0",
|
||||||
"sander": "^0.6.0",
|
"sander": "^0.6.0",
|
||||||
"source-map-support": "^0.5.4",
|
"source-map-support": "^0.5.5",
|
||||||
"tslib": "^1.9.0",
|
"tslib": "^1.9.0",
|
||||||
"url-parse": "^1.2.0",
|
"url-parse": "^1.2.0",
|
||||||
"webpack-format-messages": "^1.0.2"
|
"webpack-format-messages": "^1.0.2"
|
||||||
},
|
},
|
||||||
"devDependencies": {
|
"devDependencies": {
|
||||||
"@std/esm": "^0.25.3",
|
"@std/esm": "^0.26.0",
|
||||||
"@types/glob": "^5.0.34",
|
"@types/glob": "^5.0.34",
|
||||||
"@types/mkdirp": "^0.5.2",
|
"@types/mkdirp": "^0.5.2",
|
||||||
"@types/rimraf": "^2.0.2",
|
"@types/rimraf": "^2.0.2",
|
||||||
@@ -53,16 +53,16 @@
|
|||||||
"nightmare": "^3.0.0",
|
"nightmare": "^3.0.0",
|
||||||
"npm-run-all": "^4.1.2",
|
"npm-run-all": "^4.1.2",
|
||||||
"polka": "^0.3.4",
|
"polka": "^0.3.4",
|
||||||
"rollup": "^0.57.0",
|
"rollup": "^0.58.2",
|
||||||
"rollup-plugin-commonjs": "^9.1.0",
|
"rollup-plugin-commonjs": "^9.1.3",
|
||||||
"rollup-plugin-json": "^2.3.0",
|
"rollup-plugin-json": "^2.3.0",
|
||||||
"rollup-plugin-string": "^2.0.2",
|
"rollup-plugin-string": "^2.0.2",
|
||||||
"rollup-plugin-typescript": "^0.8.1",
|
"rollup-plugin-typescript": "^0.8.1",
|
||||||
"serve-static": "^1.13.2",
|
"serve-static": "^1.13.2",
|
||||||
"svelte": "^1.57.4",
|
"svelte": "^2.4.4",
|
||||||
"svelte-loader": "^2.5.1",
|
"svelte-loader": "^2.9.0",
|
||||||
"ts-node": "^5.0.1",
|
"ts-node": "^6.0.2",
|
||||||
"typescript": "^2.6.2",
|
"typescript": "^2.8.3",
|
||||||
"walk-sync": "^0.3.2",
|
"walk-sync": "^0.3.2",
|
||||||
"webpack": "^4.1.0"
|
"webpack": "^4.1.0"
|
||||||
},
|
},
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
<:Head>
|
<svelte:head>
|
||||||
<title>{{status}}</title>
|
<title>{status}</title>
|
||||||
</:Head>
|
</svelte:head>
|
||||||
|
|
||||||
<h1>Not found</h1>
|
<h1>Not found</h1>
|
||||||
<p>{{error.message}}</p>
|
<p>{error.message}</p>
|
||||||
@@ -1,6 +1,6 @@
|
|||||||
<:Head>
|
<svelte:head>
|
||||||
<title>Internal server error</title>
|
<title>Internal server error</title>
|
||||||
</:Head>
|
</svelte:head>
|
||||||
|
|
||||||
<h1>Internal server error</h1>
|
<h1>Internal server error</h1>
|
||||||
<p>{{error.message}}</p>
|
<p>{error.message}</p>
|
||||||
@@ -1,6 +1,6 @@
|
|||||||
<:Head>
|
<svelte:head>
|
||||||
<title>About</title>
|
<title>About</title>
|
||||||
</:Head>
|
</svelte:head>
|
||||||
|
|
||||||
<h1>About this site</h1>
|
<h1>About this site</h1>
|
||||||
|
|
||||||
|
|||||||
@@ -1,11 +1,11 @@
|
|||||||
<:Head>
|
<svelte:head>
|
||||||
<title>{{post.title}}</title>
|
<title>{post.title}</title>
|
||||||
</:Head>
|
</svelte:head>
|
||||||
|
|
||||||
<h1>{{post.title}}</h1>
|
<h1>{post.title}</h1>
|
||||||
|
|
||||||
<div class='content'>
|
<div class='content'>
|
||||||
{{{post.html}}}
|
{@html post.html}
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<script>
|
<script>
|
||||||
|
|||||||
@@ -1,17 +1,17 @@
|
|||||||
<:Head>
|
<svelte:head>
|
||||||
<title>Blog</title>
|
<title>Blog</title>
|
||||||
</:Head>
|
</svelte:head>
|
||||||
|
|
||||||
<h1>Recent posts</h1>
|
<h1>Recent posts</h1>
|
||||||
|
|
||||||
<ul>
|
<ul>
|
||||||
{{#each posts as post}}
|
{#each posts as post}
|
||||||
<!-- we're using the non-standard `rel=prefetch` attribute to
|
<!-- we're using the non-standard `rel=prefetch` attribute to
|
||||||
tell Sapper to load the data for the page as soon as
|
tell Sapper to load the data for the page as soon as
|
||||||
the user hovers over the link or taps it, instead of
|
the user hovers over the link or taps it, instead of
|
||||||
waiting for the 'click' event -->
|
waiting for the 'click' event -->
|
||||||
<li><a rel='prefetch' href='blog/{{post.slug}}'>{{post.title}}</a></li>
|
<li><a rel='prefetch' href='blog/{post.slug}'>{post.title}</a></li>
|
||||||
{{/each}}
|
{/each}
|
||||||
</ul>
|
</ul>
|
||||||
|
|
||||||
<script>
|
<script>
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
<h1>{{message}}</h1>
|
<h1>{message}</h1>
|
||||||
|
|
||||||
<script>
|
<script>
|
||||||
export default {
|
export default {
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
<:Head>
|
<svelte:head>
|
||||||
<title>Sapper project template</title>
|
<title>Sapper project template</title>
|
||||||
</:Head>
|
</svelte:head>
|
||||||
|
|
||||||
<h1>Great success!</h1>
|
<h1>Great success!</h1>
|
||||||
|
|
||||||
@@ -11,7 +11,7 @@
|
|||||||
<a href='blog/nope'>broken link</a>
|
<a href='blog/nope'>broken link</a>
|
||||||
<a href='blog/throw-an-error'>error link</a>
|
<a href='blog/throw-an-error'>error link</a>
|
||||||
<a href='credentials?creds=include'>credentials</a>
|
<a href='credentials?creds=include'>credentials</a>
|
||||||
<a rel=prefetch class='{{page === "blog" ? "selected" : ""}}' href='blog'>blog</a>
|
<a rel=prefetch class='{page === "blog" ? "selected" : ""}' href='blog'>blog</a>
|
||||||
|
|
||||||
<div class='hydrate-test'></div>
|
<div class='hydrate-test'></div>
|
||||||
|
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
<h1>{{foo.bar()}}</h1>
|
<h1>{foo.bar()}</h1>
|
||||||
|
|
||||||
<script>
|
<script>
|
||||||
export default {
|
export default {
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
<h1>{{set.has('x')}}</h1>
|
<h1>{set.has('x')}</h1>
|
||||||
|
|
||||||
<script>
|
<script>
|
||||||
export default {
|
export default {
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
<p>URL is {{url}}</p>
|
<p>URL is {url}</p>
|
||||||
|
|
||||||
<script>
|
<script>
|
||||||
export default {
|
export default {
|
||||||
|
|||||||
@@ -1 +1 @@
|
|||||||
<h1>{{$title}}</h1>
|
<h1>{$title}</h1>
|
||||||
Reference in New Issue
Block a user