[READ-ONLY] Mirror of https://github.com/mrgnw/mrgnw.dev_2019. mrgnw.dev
0

Configure Feed

Select the types of activity you want to include in your feed.

JavaScript 45.8%
Svelte 34.8%
mdsvex 14.1%
HTML 3.3%
CSS 2.1%
96 1 0

Clone this repository

https://git.vm.fail/xcc.es/mrgnw.dev_2019 https://git.vm.fail/did:plc:au3u25clzoqcyunr5dpjwibe
ssh://git@knot1.tangled.sh:2222/xcc.es/mrgnw.dev_2019 ssh://git@knot1.tangled.sh:2222/did:plc:au3u25clzoqcyunr5dpjwibe

For self-hosted knots, clone URLs may differ based on your setup.


README.md

Built with Svelte + Sapper + MDSvex + svelte-mui#

Githubs: Sapper templatemdsvexsvelte-mui

Install#

npx degit "sveltejs/sapper-template#rollup" svexiest
cd svexiest
npm i -D mdsvex svelte-mui
npm install
npm run dev

update these package.json scripts

"dev": "sapper dev  --ext '.svx .svexy .svelte'",
"export": "sapper export --ext '.svx .svexy .svelte'",
"start": "sapper dev --ext '.svx .svexy .svelte'",

rollup.config.js

+ import { mdsvex } from 'mdsvex';
// add these anywhere you see svelte({ … })
svelte({
+  extensions: ['.svelte', '.svexy', '.svx'],
+  preprocess: mdsvex({ }),
 })

Customize#

Customize mdsvex({ ... })as needed (mdsvex readme)

You can do preprocess: mdsvex({ ... }) separately inside each client & server or definea preprocess once up-front that you can re-use.

const preprocess = [
  // you can use multiple preprocessors
	mdsvex({
		extension: '.svx',
	}),
]

export default {
  client: { //...
    plugins: [ //...
      svelte({ //...
				preprocess,
			}),
    	]
  },
  
  server: { //...
    plugins: [ //...
      svelte({ //...
				preprocess,
			}),
    	]
  },
    

Deploy#

Netlify#

netlify.toml uses npm run export to export a static Sapper site.

My project on Netlify automatically deploys from the github master branch when it changes.

Vscode customizations#

(Or vscodium)

Svelte for VS Code • Svelte 3 Snippets

Settings

"files.associations": {"*.svx": "markdown",},
"emmet.excludeLanguages": [],
"emmet.includeLanguages": {"markdown": "html"},