Code Monkey home page Code Monkey logo

Comments (12)

YogliB avatar YogliB commented on August 11, 2024 2

I've made a template based on the app and component template.

It's Svelte 3 based, but other than that it works exactly the same and you can preview your app running npm run dev, just as you would do in the full-blown app.

from component-template.

antony avatar antony commented on August 11, 2024 1

@rajasegar in case it's useful - my parcel based seed has this: https://github.com/antony/svelte-seed/

from component-template.

thojanssens avatar thojanssens commented on August 11, 2024 1

Why doesn't this repository include something to view the component I'm building? (like a small server and hot reloading)
I do not really see the point of this repository without that basic need? Or how do you view your components that you are building?

from component-template.

antony avatar antony commented on August 11, 2024 1

@YogliB you are welcome to PR this, but bear in mind it is more likely to be accepted if the PR is bare minimum, as the goal of the template is to provide a clean base.

from component-template.

YogliB avatar YogliB commented on August 11, 2024 1

@antony
My thought is to make this template more like the app template with the neccessary modifications to make an independant component.

Something like the template I published minus the extra dev tools (eslint, actions, testing etc.).

from component-template.

thojanssens avatar thojanssens commented on August 11, 2024 1

@YogliB aren't testing and formatting basic needs for development?

  • You want to view your component in the browser while developing (local server)
  • You want to test your component
  • You want to enforce proper formatting

This seems the bare minimum to me for developing a component. And these are just dev dependencies, so no impact on the production build of the app depending on the component.

from component-template.

antony avatar antony commented on August 11, 2024 1

I don't think it's our job to educate people on software quality. It's out of scope for this project.

If somebody believes that linting, testing, and such is important, then they will already have a set of tools that they like, and use those.

Conversely, if they don't believe these things are important, sticking a bunch of tools which might not even be suitable into a template is not going to make them suddenly a better engineer with a focus on quality and testing.

from component-template.

antony avatar antony commented on August 11, 2024 1

Closing as we now have SvelteKit for a fuller experience.

from component-template.

YogliB avatar YogliB commented on August 11, 2024

@Conduitry Can I PR this?

from component-template.

antony avatar antony commented on August 11, 2024

@thojanssens testing and linting are essential for development but we don't want to endorse or coerce people into using a testing tool or formatting style that might not be right for them.

from component-template.

YogliB avatar YogliB commented on August 11, 2024

@antony how about a minimal linting config with only the svelte eslint rules?

from component-template.

sonicoder86 avatar sonicoder86 commented on August 11, 2024

@antony by not choosing one, for newcomers it feels like viewing, testing and linting a component before publishing is not so important.

from component-template.

Related Issues (18)

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.