├── cypress.json ├── src ├── routes │ ├── rss.js │ ├── index.html │ ├── _error.html │ ├── _layout.html │ ├── user │ │ └── [name].html │ ├── item │ │ ├── _Comment.html │ │ └── [id].html │ ├── about.html │ ├── [list] │ │ ├── [page].html │ │ ├── _ItemSummary.html │ │ └── rss.js │ └── _components │ │ └── Nav.html ├── client.js ├── server.js ├── template.html └── service-worker.js ├── static ├── favicon.png ├── svelte-192.png ├── svelte-logo-192.png ├── svelte-logo-512.png └── manifest.json ├── .gitignore ├── cypress ├── fixtures │ └── example.json ├── integration │ └── spec.js ├── plugins │ └── index.js └── support │ ├── index.js │ └── commands.js ├── .travis.yml ├── appveyor.yml ├── README.md ├── package.json ├── rollup.config.js └── yarn.lock /cypress.json: -------------------------------------------------------------------------------- 1 | { 2 | "baseUrl": "http://localhost:3000", 3 | "video": false 4 | } -------------------------------------------------------------------------------- /src/routes/rss.js: -------------------------------------------------------------------------------- 1 | export function get(req, res) { 2 | res.redirect('/top/rss'); 3 | } -------------------------------------------------------------------------------- /static/favicon.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sveltejs/hn.svelte.technology/master/static/favicon.png -------------------------------------------------------------------------------- /.gitignore: -------------------------------------------------------------------------------- 1 | .DS_Store 2 | /node_modules 3 | /cypress/screenshots 4 | /yarn.lock 5 | /yarn-error.log 6 | /__sapper__ -------------------------------------------------------------------------------- /static/svelte-192.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sveltejs/hn.svelte.technology/master/static/svelte-192.png -------------------------------------------------------------------------------- /static/svelte-logo-192.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sveltejs/hn.svelte.technology/master/static/svelte-logo-192.png -------------------------------------------------------------------------------- /static/svelte-logo-512.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sveltejs/hn.svelte.technology/master/static/svelte-logo-512.png -------------------------------------------------------------------------------- /src/routes/index.html: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /src/client.js: -------------------------------------------------------------------------------- 1 | import * as sapper from '../__sapper__/client.js'; 2 | 3 | sapper.start({ 4 | target: document.querySelector('#sapper') 5 | }); -------------------------------------------------------------------------------- /src/routes/_error.html: -------------------------------------------------------------------------------- 1 | 2 | {status} | Svelte Hacker News 3 | 4 | 5 |

{status}

6 |

{error.message}

-------------------------------------------------------------------------------- /cypress/fixtures/example.json: -------------------------------------------------------------------------------- 1 | { 2 | "name": "Using fixtures to represent data", 3 | "email": "hello@cypress.io", 4 | "body": "Fixtures are a great way to mock data for responses to routes" 5 | } -------------------------------------------------------------------------------- /.travis.yml: -------------------------------------------------------------------------------- 1 | sudo: false 2 | language: node_js 3 | node_js: 4 | - "stable" 5 | env: 6 | global: 7 | - BUILD_TIMEOUT=10000 8 | install: 9 | - npm install 10 | - npm install cypress 11 | 12 | -------------------------------------------------------------------------------- /src/routes/_layout.html: -------------------------------------------------------------------------------- 1 |