Comments (12)
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.
@rajasegar in case it's useful - my parcel based seed has this: https://github.com/antony/svelte-seed/
from component-template.
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.
@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.
@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.
@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.
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.
Closing as we now have SvelteKit for a fuller experience.
from component-template.
@Conduitry Can I PR this?
from component-template.
@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.
@antony how about a minimal linting config with only the svelte eslint rules?
from component-template.
@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)
- Repository as template
- Binding a DOM element doesn't work when imported in a different project HOT 1
- Build error: " `this` has been rewritten to `undefined` " HOT 2
- Advanced examples with multiple components? HOT 7
- warning: option.name should be capitalized
- some documentation suggestions HOT 1
- Storybook implementation HOT 3
- Document how to use a component outside of svelte HOT 2
- Add a TypeScript component template HOT 19
- What is the meaning of these lines in rollup.config.js? HOT 5
- Why does it need to be a template only project, why not a full CLI? HOT 4
- emitCss HOT 1
- Upgrade template for v3 of Svelte HOT 7
- Custom Element build target is missing HOT 2
- ES5 transpiling ? HOT 3
- Preprocessor support HOT 13
- how to use it? what is .mjs file? HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from component-template.