Giter Club home page Giter Club logo

svelte-component-template's People

Contributors

dependabot-preview[bot] avatar nolze avatar remjx avatar renovate-bot avatar renovate[bot] avatar yoglib 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

svelte-component-template's Issues

Dependabot can't resolve your JavaScript dependency files

Dependabot can't resolve your JavaScript dependency files.

As a result, Dependabot couldn't update your dependencies.

The error Dependabot encountered was:

Error whilst updating @babel/core in /package-lock.json:
No matching version found for @babel/helper-module-transforms@^7.11.0.

If you think the above is an error on Dependabot's side please don't hesitate to get in touch - we'll do whatever we can to fix it.

View the update logs.

question: improve the doc

Hello! Thanks for your template, looks great! I think the default svelte template should look something like this.

Could you please think about adding some explanation about the branches ( minimal and monorepo). When should I choose it? Now I am testing the "Regular" one.

Dependency Dashboard

This issue lists Renovate updates and detected dependencies. Read the Dependency Dashboard docs to learn more.

Rate-Limited

These updates are currently rate-limited. Click on a checkbox below to force their creation now.

  • chore(deps): update dependency husky to v8.0.3
  • chore(deps): update dependency svelte-loader to v3.1.9
  • chore(deps): update pnpm/action-setup action to v2.2.4
  • chore(deps): update dependency babel-loader to v8.3.0
  • chore(deps): update dependency eslint-config-prettier to v8.8.0
  • chore(deps): update dependency eslint-plugin-cypress to v2.13.3
  • chore(deps): update dependency lint-staged to v13.2.3
  • chore(deps): update dependency prettier to v2.8.8
  • chore(deps): update dependency prettier-plugin-svelte to v2.10.1
  • chore(deps): update dependency start-server-and-test to v1.15.4
  • chore(deps): update dependency svelte to v3.59.2
  • chore(deps): update dependency tslib to v2.6.0
  • chore(deps): update dependency @storybook/addon-svelte-csf to v3
  • chore(deps): update dependency @testing-library/cypress to v9
  • chore(deps): update dependency babel-loader to v9
  • chore(deps): update dependency cypress to v12
  • chore(deps): update dependency prettier to v3
  • chore(deps): update dependency start-server-and-test to v2
  • chore(deps): update dependency svelte to v4
  • chore(deps): update dependency svelte-check to v3
  • chore(deps): update dependency svelte-preprocess to v5
  • chore(deps): update dependency typescript to v5
  • chore(deps): update storybook monorepo to v7 (major) (@storybook/addon-actions, @storybook/addon-essentials, @storybook/addon-links, @storybook/addon-storyshots, @storybook/svelte)
  • ๐Ÿ” Create all rate-limited PRs at once ๐Ÿ”

Open

These updates have all been created already. Click a checkbox below to force a retry/rebase of any.

Detected dependencies

github-actions
.github/workflows/check-lint-package.yml
  • actions/checkout v3
  • actions/cache v3
  • pnpm/action-setup v2.2.2
  • actions/setup-node v3
.github/workflows/chromatic.yml
  • actions/checkout v3
  • actions/cache v3
  • pnpm/action-setup v2.2.2
  • chromaui/action v1
.github/workflows/interactions.yml
  • actions/checkout v3
  • actions/cache v3
  • pnpm/action-setup v2.2.2
  • actions/setup-node v3
npm
package.json
  • @babel/core 7.18.9
  • @babel/preset-env 7.18.9
  • @storybook/addon-actions 6.5.9
  • @storybook/addon-essentials 6.5.9
  • @storybook/addon-links 6.5.9
  • @storybook/addon-storyshots 6.5.9
  • @storybook/addon-svelte-csf 2.0.6
  • @storybook/svelte 6.5.9
  • @testing-library/cypress 8.0.3
  • @typescript-eslint/eslint-plugin 5.31.0
  • @typescript-eslint/parser 5.31.0
  • babel-loader 8.2.5
  • chromatic 6.7.1
  • cypress 9.7.0
  • eslint 8.20.0
  • eslint-config-prettier 8.5.0
  • eslint-plugin-cypress 2.12.1
  • eslint-plugin-svelte3 4.0.0
  • husky 8.0.1
  • lint-staged 13.0.3
  • prettier 2.7.1
  • prettier-plugin-svelte 2.7.0
  • start-server-and-test 1.14.0
  • svelte 3.49.0
  • svelte-check 2.8.0
  • svelte-loader 3.1.3
  • svelte-preprocess 4.10.7
  • svelte2tsx 0.5.12
  • tslib 2.4.0
  • typescript 4.7.4

  • Check this box to trigger a request for Renovate to run again on this repository

How do I bundle a .css file from a dependency?

I've created a wrapper component for plyr.js using your template, very handy thank you.

Run into a tricky problem, I want to bundle node_modules/plyr/dist/plyr.css into the component but can't find a way to get this working. Wondering if you have any ideas?

I've tried using svelte-preprocess, and doing the following:

<style lang="css" src="../../node_modules/plyr/dist/plyr.css" global>
</style>

and also tried doing it the way @jumanja has in svelte-bulma:.

Nothing seems to work.

If I run the app inside the template it works fine, but if I load the component into another app as a local dependency then it doesn't.

"svelte-plyr": "file:/Users/ben/dev/javascript/svelte/svelte-plyr"

EDIT: Got this working by following your https://github.com/YogliB/svelte-fullcalendar/ README. I didn't understand that the app installing the package would need to be configured with postcss. Seems that Svelte imports the .svelte files from the package, not the compiled index.min.mjs, so it doesn't make any difference whether the compiled index.min.mjs module file contains the css.

Enhancement: Move tests to cypress

The current testing setup is complex and unclear, plus makes it a bit difficult to test user behaviour.

Using Cypress should be more straightforward and enable integrate-testing more easily.

Monorepo leads to dev/build errors

I have install the monorepo version but after npm install and npm init running npm run dev leads to following error

$ pnpm dev

> [email protected] dev /home/projects/svelte-components
> rollup -c -w

rollup v2.35.1
bundles src/main.js โ†’ public/bundle.js...
[!] Error: Could not resolve './components' from src/App.svelte
Error: Could not resolve './components' from src/App.svelte
    at error (/home/projects/svelte-components/node_modules/.pnpm/[email protected]/node_modules/rollup/dist/shared/rollup.js:5265:30)
    at ModuleLoader.handleResolveId (/home/projects/svelte-components/node_modules/.pnpm/[email protected]/node_modules/rollup/dist/shared/rollup.js:18433:24)
    at /home/projects/svelte-components/node_modules/.pnpm/[email protected]/node_modules/rollup/dist/shared/rollup.js:18402:22
    at async Promise.all (index 1)
    at ModuleLoader.fetchStaticDependencies (/home/projects/svelte-components/node_modules/.pnpm/[email protected]/node_modules/rollup/dist/shared/rollup.js:18400:34)
    at async Promise.all (index 0)
    at ModuleLoader.fetchModule (/home/projects/svelte-components/node_modules/.pnpm/[email protected]/node_modules/rollup/dist/shared/rollup.js:18377:9)
    at async Promise.all (index 0)
    at ModuleLoader.fetchStaticDependencies (/home/projects/svelte-components/node_modules/.pnpm/[email protected]/node_modules/rollup/dist/shared/rollup.js:18400:34)
    at async Promise.all (index 0)


[2021-01-27 18:15:55] waiting for changes...

example output is using pnpm but I have tried same process with npm and yarn but get same output

The regular version seems to work fine though

File name switch ups

As one can see, the files array in package.json and the main and module fields do not match the file names specified in rollup.config.js.

This leads to an error similar to the following after the package is installed and imported by another project:

 Error:  Cannot find module <package>

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.