Skip to content

Commit

Permalink
chore: upgrade all dependencies, migrate to latest svelte-kit
Browse files Browse the repository at this point in the history
  • Loading branch information
mattjennings committed Aug 4, 2023
1 parent eae8ffb commit 2208993
Show file tree
Hide file tree
Showing 34 changed files with 5,749 additions and 2,781 deletions.
30 changes: 14 additions & 16 deletions .eslintrc.cjs
Original file line number Diff line number Diff line change
@@ -1,18 +1,16 @@
module.exports = {
root: true,
extends: ['eslint:recommended', 'prettier'],
plugins: ['svelte3'],
overrides: [{ files: ['*.svelte'], processor: 'svelte3/svelte3' }],
parserOptions: {
sourceType: 'module',
ecmaVersion: 2020
},
env: {
browser: true,
es2017: true,
node: true
},
rules: {
'no-restricted-imports': ['error', { name: 'path', message: 'use upath instead' }]
}
root: true,
extends: ['eslint:recommended', 'plugin:svelte/recommended', 'prettier'],
parserOptions: {
sourceType: 'module',
ecmaVersion: 2020
},
env: {
browser: true,
es2017: true,
node: true
},
rules: {
'no-restricted-imports': ['error', { name: 'path', message: 'use upath instead' }]
}
}
10 changes: 5 additions & 5 deletions .prettierrc
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"tabWidth": 2,
"singleQuote": true,
"trailingComma": "none",
"printWidth": 100,
"semi": false
"tabWidth": 2,
"singleQuote": true,
"trailingComma": "none",
"printWidth": 100,
"semi": false
}
42 changes: 21 additions & 21 deletions .release-it.json
Original file line number Diff line number Diff line change
@@ -1,23 +1,23 @@
{
"hooks": {
"after:bump": "npm run build"
},
"git": {
"requireCleanWorkingDir": true,
"commitMessage": "chore: release v${version}"
},
"github": {
"release": true
},
"npm": {
"publish": true,
"publishPath": "./package",
"tag": "latest"
},
"plugins": {
"@release-it/conventional-changelog": {
"preset": "conventionalcommits",
"infile": "CHANGELOG.md"
}
}
"hooks": {
"after:bump": "npm run build"
},
"git": {
"requireCleanWorkingDir": true,
"commitMessage": "chore: release v${version}"
},
"github": {
"release": true
},
"npm": {
"publish": true,
"publishPath": "./package",
"tag": "latest"
},
"plugins": {
"@release-it/conventional-changelog": {
"preset": "conventionalcommits",
"infile": "CHANGELOG.md"
}
}
}
4 changes: 1 addition & 3 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@


### [0.3.3](https://github.com/mattjennings/mdsvex-code-preview/compare/0.3.2...0.3.3) (2022-12-10)

### [0.3.2](https://github.com/mattjennings/mdsvex-code-preview/compare/0.3.1...0.3.2) (2022-09-14)
Expand Down Expand Up @@ -53,4 +51,4 @@

### [0.0.8](https://github.com/mattjennings/mdsvex-code-preview/compare/0.0.9...0.1.0-beta.0) (2022-03-27)

### [0.0.7](https://github.com/mattjennings/mdsvex-code-preview/compare/0.0.9...0.1.0-beta.0) (2022-03-25)
### [0.0.7](https://github.com/mattjennings/mdsvex-code-preview/compare/0.0.9...0.1.0-beta.0) (2022-03-25)
2 changes: 1 addition & 1 deletion commitlint.config.cjs
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
module.exports = {
extends: ['@commitlint/config-conventional']
extends: ['@commitlint/config-conventional']
}
5 changes: 4 additions & 1 deletion jsconfig.json
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
{
"extends": "./.svelte-kit/tsconfig.json"
"extends": "./.svelte-kit/tsconfig.json",
"compilerOptions": {
"moduleResolution": "bundler"
}
}
12 changes: 6 additions & 6 deletions mdsvex.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,14 +2,14 @@ import { defineMDSveXConfig as defineConfig } from 'mdsvex'
import examples from './src/lib/remark.js'

const config = defineConfig({
extensions: ['.svelte.md', '.md', '.svx'],
extensions: ['.svelte.md', '.md', '.svx'],

smartypants: {
dashes: 'oldschool'
},
smartypants: {
dashes: 'oldschool'
},

remarkPlugins: [examples],
rehypePlugins: []
remarkPlugins: [examples],
rehypePlugins: []
})

export default config
68 changes: 41 additions & 27 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,50 +1,64 @@
{
"name": "mdsvexamples",
"version": "0.3.3",
"files": [
"dist"
],
"exports": {
"./Example.svelte": {
"types": "./dist/Example.svelte.d.ts",
"svelte": "./dist/Example.svelte"
},
".": {
"types": "./dist/index.d.ts",
"svelte": "./dist/index.js"
}
},
"scripts": {
"dev": "vite dev",
"build:site": "vite build",
"build": "svelte-kit package",
"build": "svelte-package",
"test": "playwright test",
"preview": "vite preview",
"prepare": "svelte-kit sync && husky install",
"prepare": "husky install",
"release": "release-it --npm.tag=latest",
"prerelease": "release-it --preRelease=beta --npm.tag=next",
"lint": "prettier --ignore-path .gitignore --check --plugin-search-dir=. . && eslint --ignore-path .gitignore .",
"format": "prettier --ignore-path .gitignore --write --plugin-search-dir=. ."
},
"dependencies": {
"abstract-syntax-tree": "^2.20.5",
"abstract-syntax-tree": "^2.21.0",
"prism-svelte": "^0.5.0",
"prismjs": "^1.27.0",
"unist-util-visit": "^4.1.0",
"unplugin": "^1.0.0",
"prismjs": "^1.29.0",
"unist-util-visit": "^4.1.2",
"unplugin": "^1.4.0",
"upath": "^2.0.1"
},
"devDependencies": {
"@commitlint/cli": "^16.2.3",
"@commitlint/config-conventional": "^16.2.1",
"@playwright/test": "^1.28.0",
"@release-it/conventional-changelog": "^5.0.0",
"@sveltejs/adapter-auto": "next",
"@sveltejs/kit": "1.0.0-next.377",
"autoprefixer": "^10.4.2",
"eslint": "^7.32.0",
"eslint-config-prettier": "^8.3.0",
"eslint-plugin-svelte3": "^3.2.1",
"@commitlint/config-conventional": "^16.2.4",
"@playwright/test": "^1.36.2",
"@release-it/conventional-changelog": "^5.1.1",
"@sveltejs/adapter-auto": "^2.1.0",
"@sveltejs/kit": "^1.22.4",
"@sveltejs/package": "^2.2.0",
"autoprefixer": "^10.4.14",
"eslint": "^8.0.0",
"eslint-config-prettier": "^8.10.0",
"eslint-plugin-svelte": "^2.32.0",
"husky": "^7.0.4",
"mdsvex": "^0.10.5",
"postcss": "^8.4.5",
"postcss-load-config": "^3.1.1",
"prettier": "^2.5.1",
"prettier-plugin-svelte": "^2.5.0",
"release-it": "^15.1.2",
"svelte": "^3.44.0",
"svelte-preprocess": "^4.10.1",
"svelte2tsx": "^0.5.6",
"tailwindcss": "^3.0.12",
"typescript": "^4.6.2",
"vite": "^3.0.0"
"mdsvex": "^0.10.6",
"postcss": "^8.4.27",
"postcss-load-config": "^3.1.4",
"prettier": "^2.8.8",
"prettier-plugin-svelte": "^2.10.1",
"release-it": "^15.11.0",
"svelte": "^4.0.0",
"svelte-preprocess": "^5.0.0",
"svelte2tsx": "^0.5.23",
"tailwindcss": "^3.3.3",
"typescript": "^5.0.0",
"vite": "^4.4.8"
},
"type": "module"
}
Loading

0 comments on commit 2208993

Please sign in to comment.