Skip to content

Instantly share code, notes, and snippets.

@gorbatova
gorbatova / widget.md
Created April 10, 2021 11:42 — forked from AlexxNB/widget.md
Howto make no-depends widget on Svelte and load it on the page

We should have at least three files: 'Widget.svelte', 'rollup.config.js' and 'package.json':

  1. Our widget Widget.svelte:
<script>
	export let name;
</script>

<h1>Hello {name}!</h1>
@gorbatova
gorbatova / gist:7f052b79a598a350c842c068517a203a
Created October 5, 2018 09:33 — forked from smartygo/gist:66cc07e6420e876546dc
Applying .gitignore to committed files
[command]
git ls-files -ci --exclude-standard
git ls-files -ci --exclude-standard -z | xargs -0 git rm --cached
[summary]
After editing .gitignore to match the ignored files, you can do
git ls-files -ci --exclude-standard
to see the files that are included in the exclude lists
You can then do
git ls-files -ci --exclude-standard -z | xargs -0 git rm --cached