Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat(ui): bump deps #679

Merged
merged 10 commits into from
Dec 19, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
18 changes: 10 additions & 8 deletions ui/.eslintrc.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,9 @@
const path = require('node:path')

module.exports = {
root: true,
parser: "@typescript-eslint/parser",
env: { "browser": true },
parser: '@typescript-eslint/parser',
env: { browser: true },
parserOptions: {
project: ['./packages/*/tsconfig.json'],
tsconfigRootDir: __dirname,
Expand All @@ -12,7 +14,7 @@ module.exports = {
'prettier',
'plugin:import/recommended',
'plugin:import/typescript',
"plugin:compat/recommended",
'plugin:compat/recommended',
],
plugins: ['@typescript-eslint', 'import'],
rules: {
Expand All @@ -38,11 +40,11 @@ module.exports = {
settings: {
'import/resolver': {
typescript: {
"project": [__dirname + "/packages/*/tsconfig.json"]
project: ['packages/artalk/tsconfig.json'].map((p) =>
path.resolve(__dirname, p),
),
},
},
'polyfills': [
'AbortController'
]
}
polyfills: ['AbortController'],
},
}
40 changes: 20 additions & 20 deletions ui/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,29 +10,29 @@
"build:all": "pnpm build && pnpm build:sidebar"
},
"devDependencies": {
"@playwright/test": "^1.39.0",
"@rollup/plugin-dynamic-import-vars": "2.0.5",
"@types/node": "20.5.2",
"@typescript-eslint/eslint-plugin": "6.4.1",
"@typescript-eslint/parser": "6.4.1",
"autoprefixer": "10.4.15",
"eslint": "8.47.0",
"@playwright/test": "^1.40.1",
"@rollup/plugin-dynamic-import-vars": "2.1.2",
"@types/node": "20.10.5",
"@typescript-eslint/eslint-plugin": "6.14.0",
"@typescript-eslint/parser": "6.14.0",
"autoprefixer": "10.4.16",
"eslint": "8.56.0",
"eslint-config-airbnb-base": "15.0.0",
"eslint-config-airbnb-typescript": "17.1.0",
"eslint-config-prettier": "9.0.0",
"eslint-import-resolver-typescript": "2.7.0",
"eslint-plugin-compat": "4.1.4",
"eslint-plugin-import": "2.28.1",
"postcss": "8.4.28",
"prettier": "3.0.2",
"rollup": "3.28.1",
"sass": "1.66.1",
"terser": "5.19.2",
"typescript": "5.1.6",
"vite": "4.4.9",
"eslint-config-prettier": "9.1.0",
"eslint-import-resolver-typescript": "3.6.1",
"eslint-plugin-compat": "4.2.0",
"eslint-plugin-import": "2.29.1",
"postcss": "8.4.32",
"prettier": "3.1.1",
"rollup": "4.9.1",
"sass": "1.69.5",
"terser": "5.26.0",
"typescript": "5.3.3",
"vite": "5.0.10",
"vite-plugin-checker": "0.6.2",
"vite-plugin-dts": "3.5.2",
"vite-tsconfig-paths": "4.2.0"
"vite-plugin-dts": "3.6.4",
"vite-tsconfig-paths": "4.2.2"
},
"browserslist": [
"supports es6 and supports es6-class and supports es6-generators and supports es6-module-dynamic-import and supports es6-module and supports es6-number and supports es6-string-includes"
Expand Down
26 changes: 13 additions & 13 deletions ui/packages/artalk-sidebar/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -12,20 +12,20 @@
},
"dependencies": {
"artalk": "workspace:^",
"pinia": "^2.1.6",
"vue": "^3.3.4",
"vue-i18n": "^9.2.2",
"vue-router": "^4.2.4",
"yaml": "^2.3.1"
"pinia": "^2.1.7",
"vue": "^3.3.12",
"vue-i18n": "^9.8.0",
"vue-router": "^4.2.5",
"yaml": "^2.3.4"
},
"devDependencies": {
"@vitejs/plugin-vue": "^4.3.3",
"@vue/tsconfig": "^0.4.0",
"typescript": "^5.1.6",
"unplugin-auto-import": "^0.16.6",
"unplugin-vue-components": "^0.25.1",
"unplugin-vue-router": "^0.6.4",
"vite": "^4.4.9",
"vue-tsc": "^1.8.8"
"@vitejs/plugin-vue": "^4.5.2",
"@vue/tsconfig": "^0.5.0",
"typescript": "^5.3.3",
"unplugin-auto-import": "^0.17.2",
"unplugin-vue-components": "^0.26.0",
"unplugin-vue-router": "^0.7.0",
"vite": "^5.0.10",
"vue-tsc": "^1.8.25"
}
}
7 changes: 0 additions & 7 deletions ui/packages/artalk/.npmignore

This file was deleted.

56 changes: 41 additions & 15 deletions ui/packages/artalk/package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
{
"name": "artalk",
"version": "2.7.1",
"license": "MIT",
"description": "A self-hosted comment system",
"keywords": [
"comment-system",
Expand All @@ -10,40 +9,67 @@
"comments",
"blog"
],
"homepage": "https://artalk.js.org",
"bugs": "https://github.com/ArtalkJS/Artalk/issue",
"repository": {
"type": "git",
"url": "https://github.com/ArtalkJS/Artalk.git",
"directory": "ui/packages/artalk"
},
"homepage": "https://artalk.js.org",
"bugs": "https://github.com/ArtalkJS/Artalk/issue",
"license": "MIT",
"type": "module",
"exports": {
".": {
"types": "./dist/src/main.d.ts",
"require": "./dist/Artalk.js",
"default": "./dist/Artalk.es.js"
},
"./dist/*": "./dist/*",
"./dist/Artalk": "./dist/Artalk.js",
"./dist/Artalk.es": "./dist/Artalk.es.js",
"./dist/Artalk.iife": "./dist/Artalk.iife.js",
"./dist/ArtalkLite": "./dist/ArtalkLite.js",
"./dist/ArtalkLite.es": "./dist/ArtalkLite.es.js",
"./dist/ArtalkLite.iife": "./dist/ArtalkLite.iife.js",
"./dist/i18n/jp": "./dist/i18n/jp.js",
"./dist/i18n/zh-TW": "./dist/i18n/zh-TW.js",
Comment on lines +27 to +35
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

These should be removed in v3, ref in #690

"./i18n/*": "./dist/i18n/*",
"./lite/*": {
"types": "./dist/src/main.d.ts",
"require": "./dist/ArtalkLite.js",
"default": "./dist/ArtalkLite.es.js"
},
"./style": "./dist/Artalk.css"
},
"main": "./dist/Artalk.js",
"unpkg": "./dist/Artalk.iife.js",
"jsdelivr": "./dist/Artalk.iife.js",
"unpkg": "./dist/Artalk.iife.js",
"module": "./dist/Artalk.es.js",
"types": "./dist/src/main.d.ts",
"typings": "./dist/src/main.d.ts",
"files": [
"dist"
],
"scripts": {
"dev": "vite",
"build": "vite build && pnpm build:lite && pnpm build:i18n",
"build:lite": "vite build --config vite-lite.config.ts",
"build:i18n": "node scripts/build-i18n.mjs",
"build:demo": "vite build --config vite-demo.config.ts",
"serve": "vite preview",
"deploy": "gh-pages -d deploy",
"predeploy": "pnpm build && pnpm build:demo && pnpm copy:deploy",
"build:i18n": "node scripts/build-i18n.mjs",
"build:lite": "vite build --config vite-lite.config.ts",
"copy:deploy": "cp -r dist deploy && cp CNAME deploy",
"lint": "eslint --ext .js,.ts src",
"predeploy": "pnpm build && pnpm build:demo && pnpm copy:deploy",
"deploy": "gh-pages -d deploy",
"dev": "vite",
"lint": "eslint --ext .js,.ts src --fix",
"serve": "vite preview",
"test:e2e": "playwright test",
"test:report": "playwright show-report"
},
"devDependencies": {
"@types/marked": "5.0.1"
},
"dependencies": {
"abortcontroller-polyfill": "^1.7.5",
"hanabi": "^0.4.0",
"insane": "^2.6.2",
"marked": "^7.0.4"
},
"devDependencies": {
"@types/marked": "5.0.2"
}
}
8 changes: 4 additions & 4 deletions ui/packages/artalk/postcss.config.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
module.exports = {
plugins: [
require('autoprefixer')
]
import autoprefixer from 'autoprefixer'

export default {
plugins: [ autoprefixer ]
}
6 changes: 3 additions & 3 deletions ui/packages/plugin-katex/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -13,10 +13,10 @@
"publish": "pnpm publish --access=public"
},
"dependencies": {
"artalk": "workspace: *",
"katex": "^0.16.8"
"artalk": "workspace:^",
"katex": "^0.16.9"
},
"devDependencies": {
"@types/katex": "0.16.0"
"@types/katex": "0.16.7"
}
}
2 changes: 1 addition & 1 deletion ui/packages/plugin-lightbox/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,6 @@
"publish": "pnpm publish --access=public"
},
"dependencies": {
"artalk": "workspace: *"
"artalk": "workspace:^"
}
}
Loading