Giter Site home page Giter Site logo

sveltejs / hn.svelte.dev Goto Github PK

View Code? Open in Web Editor NEW
165.0 165.0 30.0 655 KB

Hacker News clone built with Svelte and Sapper

Home Page: https://hn.svelte.dev

License: MIT License

Dockerfile 2.45% Makefile 2.37% JavaScript 29.44% HTML 5.75% CSS 3.42% Svelte 56.57%

hn.svelte.dev's People

Contributors

adamduncan avatar antony avatar bekliev avatar benmccann avatar conduitry avatar dependabot[bot] avatar metaprem avatar pngwn avatar rich-harris avatar sibbng avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

hn.svelte.dev's Issues

Disallow Search Engines From Indexing hn.svelte.technology

I'm still new to Svelte, so every time I want to search up something related to Svelte, almost the entire first page is from hn.svelte.technology.

Screen Shot 2019-07-13 at 6 02 04 PM

None of these results really have anything to do with Svelte. I know I can do -site:hn.svelte.technology to exclude results from there (and it works well), but it's still really annoying to have to type it out every time. Besides, it's probably not the best idea to be rehosting someone else's content and having it be indexed by search engines.

This can be fixed by changing the robots.txt of that site to disallow everything.

fix CI errors

npm run sapper works locally but not in CI... and it's something to do with this:

> Building...
> Failed to build — error in /Users/runner/runners/2.262.1/work/hn.css.dev/hn.svelte.dev/src/routes/_layout.svelte: Expected }
1: main.svelte-12dt5ya{position:relative;max-width:56em;padding:2em;margin:0 auto;box-sizing:border-box}

It's putting the project in hn.svelte.dev and somehow that is getting rewritten to hn.css.dev and somehow that is breaking stuff. beyond that i am at a loss

Build fails with error compiling CSS

@pngwn helped me investigate yesterday

npm run sapper fails with errors like:

Building...
Failed to build — error in src/routes/_layout.svelte: Expected }
1: main.svelte-1uhnsl8{position:relative;max-width:56em;background-color:white;padding:2em;margin:0 auto;box-sizing:border-box}

Things we found out:

  • It builds on his two Mac machines including in Docker images he setup, but does not build on my two Ubuntu machines, codeanywhere, or GitHub actions
    • GitHub actions was setup to run on Node 10, 12, 14 on Windows, Linux, and Mac. It failed on all 9 combinations
  • It builds if you remove all CSS, but fails if you have any CSS
  • The RealWorld example builds, but it's not clear what's different between the two examples
  • It's been failing since the initial commit

Doesn't work

It is dissapointing that your flagship demo has zero documentation/instructions and it does not work.

I assumed the way to run this was yarn/yurn run dev/yarn start based on the previously deprecated project that had a Readme.

Even with that Error: Cannot find module 'svelte/store.mjs' is thrown.

Do you have a demo anywhere?

Does this just pull the HN feed or is it a complete custom database?

I'm looking for a HN type clone where I can host and build a communjity around a specific niche.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.