From c270ef8c4abe219ffb12251eff1879b1f71669a2 Mon Sep 17 00:00:00 2001 From: Rich Harris Date: Sun, 22 Jul 2018 20:49:57 -0400 Subject: [PATCH] realign with 0.15 --- app/client.js | 4 +-- app/server.js | 4 +-- routes/_default.html | 46 -------------------------------- routes/_error.html | 2 +- routes/_layout.html | 24 +++++++++++++++++ routes/blog/_default.html | 32 ---------------------- routes/blog/index.html | 33 ++++++++++++++++++++++- routes/index.html | 56 +++++++++++++++++++++++++++------------ 8 files changed, 100 insertions(+), 101 deletions(-) delete mode 100644 routes/_default.html create mode 100644 routes/_layout.html delete mode 100644 routes/blog/_default.html diff --git a/app/client.js b/app/client.js index 051a7e0..b83ce1a 100644 --- a/app/client.js +++ b/app/client.js @@ -1,7 +1,7 @@ import { init } from 'sapper/runtime.js'; -import { routes } from './manifest/client.js'; +import { manifest } from './manifest/client.js'; init({ target: document.querySelector('#sapper'), - routes + manifest }); \ No newline at end of file diff --git a/app/server.js b/app/server.js index 58a6695..8ab6e2a 100644 --- a/app/server.js +++ b/app/server.js @@ -2,13 +2,13 @@ import sirv from 'sirv'; import polka from 'polka'; import sapper from 'sapper'; import compression from 'compression'; -import { routes } from './manifest/server.js'; +import { manifest } from './manifest/server.js'; polka() // You can also use Express .use( compression({ threshold: 0 }), sirv('assets'), - sapper({ routes }) + sapper({ manifest }) ) .listen(process.env.PORT) .catch(err => { diff --git a/routes/_default.html b/routes/_default.html deleted file mode 100644 index 95b2980..0000000 --- a/routes/_default.html +++ /dev/null @@ -1,46 +0,0 @@ - - Sapper project template - - -

Great success!

- -
- Borat -
HIGH FIVE!
-
- -

Try editing this file (routes/index.html) to test hot module reloading.

- - \ No newline at end of file diff --git a/routes/_error.html b/routes/_error.html index 72b3395..89fd168 100644 --- a/routes/_error.html +++ b/routes/_error.html @@ -4,7 +4,7 @@

{status}

-

{error.message}

+
{error.stack}
+ + \ No newline at end of file diff --git a/routes/blog/_default.html b/routes/blog/_default.html deleted file mode 100644 index f1c80ac..0000000 --- a/routes/blog/_default.html +++ /dev/null @@ -1,32 +0,0 @@ - - Blog - - -

Recent posts

- - - - - - \ No newline at end of file diff --git a/routes/blog/index.html b/routes/blog/index.html index 8c0dcbb..f1c80ac 100644 --- a/routes/blog/index.html +++ b/routes/blog/index.html @@ -1 +1,32 @@ - \ No newline at end of file + + Blog + + +

Recent posts

+ + + + + + \ No newline at end of file diff --git a/routes/index.html b/routes/index.html index efa6c15..95b2980 100644 --- a/routes/index.html +++ b/routes/index.html @@ -1,24 +1,46 @@ -