Update dependenciesw

This commit is contained in:
Michal Vanko 2020-12-01 12:05:15 +01:00
parent cd6f0d5e2e
commit c96f7efff1
5 changed files with 603 additions and 917 deletions

1447
package-lock.json generated

File diff suppressed because it is too large Load Diff

View File

@ -12,44 +12,45 @@
"test": "run-p --race dev cy:run"
},
"dependencies": {
"@rollup/plugin-typescript": "^6.0.0",
"@types/node": "^14.11.2",
"@rollup/plugin-typescript": "^8.0.0",
"@types/node": "^14.14.10",
"classnames": "^2.2.6",
"compression": "^1.7.4",
"date-fns": "^2.16.1",
"feed": "^4.2.1",
"front-matter": "^4.0.2",
"marked": "^1.1.1",
"marked": "^1.2.5",
"polka": "^0.5.2",
"ramda": "^0.27.1",
"sirv": "^1.0.6",
"sirv": "^1.0.7",
"svelte-image": "^0.2.7"
},
"devDependencies": {
"@babel/core": "^7.11.6",
"@babel/core": "^7.12.9",
"@babel/plugin-syntax-dynamic-import": "^7.8.3",
"@babel/plugin-transform-runtime": "^7.11.5",
"@babel/preset-env": "^7.11.5",
"@babel/runtime": "^7.11.2",
"@rollup/plugin-typescript": "^6.0.0",
"@babel/plugin-transform-runtime": "^7.12.1",
"@babel/preset-env": "^7.12.7",
"@babel/runtime": "^7.12.5",
"@rollup/plugin-typescript": "^8.0.0",
"@tsconfig/svelte": "^1.0.10",
"@types/classnames": "^2.2.10",
"@types/ramda": "^0.27.19",
"autoprefixer": "^10.0.0",
"@types/classnames": "^2.2.11",
"@types/ramda": "^0.27.32",
"autoprefixer": "^10.0.4",
"npm-run-all": "^4.1.5",
"postcss": "^8.0.9",
"rollup": "^2.28.2",
"postcss": "^8.1.10",
"rollup": "^2.34.0",
"rollup-plugin-babel": "^4.4.0",
"rollup-plugin-commonjs": "^10.1.0",
"rollup-plugin-node-resolve": "^5.2.0",
"rollup-plugin-replace": "^2.2.0",
"rollup-plugin-svelte": "^6.0.1",
"rollup-plugin-svelte": "^7.0.0",
"rollup-plugin-svg": "^2.0.0",
"rollup-plugin-terser": "^7.0.2",
"sapper": "^0.28.9",
"svelte": "^3.28.0",
"svelte-check": "^1.0.51",
"svelte-preprocess": "^4.3.2",
"typescript": "^4.0.3"
"sapper": "^0.28.10",
"svelte": "^3.30.1",
"svelte-check": "^1.1.17",
"svelte-preprocess": "^4.6.1",
"tslib": "^2.0.3",
"typescript": "^4.1.2"
}
}

View File

@ -17,14 +17,15 @@ const legacy = !!process.env.SAPPER_LEGACY_BUILD
const onwarn = (warning, onwarn) =>
(warning.code === 'MISSING_EXPORT' && /'preload'/.test(warning.message)) ||
(warning.code === 'CIRCULAR_DEPENDENCY' && /[/\\]@sapper[/\\]/.test(warning.message)) ||
(warning.code === 'CIRCULAR_DEPENDENCY' &&
/[/\\]@sapper[/\\]/.test(warning.message)) ||
onwarn(warning)
const dedupe = (importee) =>
importee === 'svelte' || importee.startsWith('svelte/')
export default {
client: {
input: config.client.input().replace(/\.js$/, ".ts"),
input: config.client.input().replace(/\.js$/, '.ts'),
output: config.client.output(),
plugins: [
replace({
@ -32,8 +33,10 @@ export default {
'process.env.NODE_ENV': JSON.stringify(mode),
}),
svelte({
compilerOptions: {
dev,
hydratable: true,
},
emitCss: true,
// Disabled automatic image compression
// preprocess: {
@ -87,7 +90,7 @@ export default {
},
server: {
input: config.server.input().server.replace(/\.js$/, ".ts"),
input: config.server.input().server.replace(/\.js$/, '.ts'),
output: config.server.output(),
plugins: [
replace({
@ -95,14 +98,16 @@ export default {
'process.env.NODE_ENV': JSON.stringify(mode),
}),
svelte({
compilerOptions: {
generate: 'ssr',
dev,
hydratable: true,
},
preprocess: sveltePreprocess({
sourceMap: dev,
defaults: {
script: 'typescript',
}
},
}),
// preprocess: {
// ...image(),

View File

@ -39,7 +39,7 @@
<figure class="profile-pic">
<picture>
<source srcset="images/profile-picture.webp" type="image/webp" />
<img alt="My profile picture" src="image/profil-picture.jpg" />
<img alt="My profile picture" src="images/profile-picture.jpg" />
</picture>
</figure>
@ -53,9 +53,7 @@
Hey, welcome to my personal website. My name is
<strong>Michal&nbsp;Vanko</strong>
and I'm a
<em>
<a href="https://en.wikipedia.org/wiki/Programmer">programmer</a>
</em>
<em> <a href="https://en.wikipedia.org/wiki/Programmer">programmer</a> </em>
. I'll try to share some stories and opinions about things that I'm interested
in.
</p>

View File

@ -4,6 +4,7 @@ backend:
branch: master # Branch to update (optional; defaults to master)
site_domain: michalvanko.dev
publish_mode: editorial_workflow
media_folder: 'static/images/uploads' # Media files will be stored in the repo under images/uploads
public_folder: '/images/uploads' # The src attribute for uploaded media will begin with /images/uploads