Skip to content

Commit

Permalink
chore: 🔨 stop dependbot, use renovate
Browse files Browse the repository at this point in the history
  • Loading branch information
i7eo committed Dec 30, 2022
1 parent 1116526 commit ac9e2f8
Show file tree
Hide file tree
Showing 9 changed files with 139 additions and 103 deletions.
13 changes: 0 additions & 13 deletions .github/dependabot.yml

This file was deleted.

14 changes: 14 additions & 0 deletions .github/renovate.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
{
"extends": ["config:base", "schedule:weekly", "group:allNonMajor"],
"labels": ["dependencies"],
"pin": false,
"rangeStrategy": "bump",
"node": false,
"packageRules": [
{
"depTypeList": ["peerDependencies"],
"enabled": false
}
],
"ignoreDeps": ["node"]
}
54 changes: 54 additions & 0 deletions apps/docs/.vitepress/config.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,54 @@
import consola from 'consola'
import { docsDirName, REPO_BRANCH, REPO_PATH } from './paths'
import { languages } from './utils/lang'
import { head } from './config/head'
import { sidebars } from './config/sidebars'
import { nav } from './config/nav'
import { mdPlugin } from './config/plugins'
import { features } from './config/features'
import {PKG_CAMELCASE_SPACE_NAME as title} from '@google-translate-select/constants'
import type { UserConfig } from 'vitepress'

export const config: UserConfig = {
title,
description: '🚀 A modern, high-performance monorepo project designed with Google Translate JS SDK. Vue and react are supported!',
lastUpdated: true,
head,
themeConfig: {
repo: REPO_PATH,
docsBranch: REPO_BRANCH,
docsDir: docsDirName,

editLinks: true,
editLinkText: 'Edit this page on GitHub',
lastUpdated: 'Last Updated',

logo: '/images/element-plus-logo.svg',
logoSmall: '/images/element-plus-logo-small.svg',
sidebars,
nav,
agolia: {
apiKey: '377f2b647a96d9b1d62e4780f2344da2',
appId: 'BH4D9OD16A',
},
features,
langs: languages,
},

locales,

markdown: {
config: (md) => mdPlugin(md),
},

vue: {
template: {
ssr: true,
compilerOptions: {
directiveTransforms: buildTransformers(),
},
},
},
}

export default config
5 changes: 5 additions & 0 deletions apps/docs/.vitepress/path.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
import path from 'path'

export const docRoot = path.resolve(__dirname, '..')
export const vpRoot = path.resolve(docRoot, '.vitepress')
export const docDirName = 'docs'
24 changes: 14 additions & 10 deletions apps/docs/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -44,22 +44,26 @@
"vue": "^3.2.41"
},
"dependencies": {
"@docsearch/js": "3.3.0",
"@docsearch/css": "^3.3.1",
"@docsearch/js": "^3.3.1",
"@google-translate-select/constants": "workspace:*",
"@google-translate-select/theme-chalk": "workspace:*",
"@google-translate-select/utils": "workspace:*",
"clipboard-copy": "4.0.1",
"markdown-it": "13.0.1",
"normalize.css": "8.0.1",
"nprogress": "0.2.0",
"prism-theme-vars": "0.2.4",
"clipboard-copy": "^4.0.1",
"markdown-it": "^13.0.1",
"normalize.css": "^8.0.1",
"nprogress": "^0.2.0",
"prism-theme-vars": "^0.2.4",
"vue": "^3.2.41"
},
"devDependencies": {
"@docsearch/react": "3.3.0",
"@types/markdown-it": "12.2.3",
"markdown-it-container": "3.0.0",
"vitepress": "1.0.0-alpha.29"
"@docsearch/react": "^3.3.0",
"@types/markdown-it": "^12.2.3",
"@types/nprogress": "^0.2.0",
"chalk": "^4.1.2",
"consola": "^2.15.3",
"markdown-it-container": "^3.0.0",
"vitepress": "^1.0.0-alpha.33"
},
"engines": {
"node": ">=16"
Expand Down
1 change: 1 addition & 0 deletions packages/constants/src/node/pkg.ts
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
export const PKG_PREFIX = '@google-translate-select'
export const PKG_NAME = 'google-translate-select'
export const PKG_CAMELCASE_NAME = 'GoogleTranslateSelect'
export const PKG_CAMELCASE_SPACE_NAME = 'Google Translate Select'
120 changes: 42 additions & 78 deletions pnpm-lock.yaml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

9 changes: 8 additions & 1 deletion tsconfig.docs.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,5 +3,12 @@
"compilerOptions": {
"composite": true
},
"include": ["apps/docs", "apps/docs/.vitepress"]
"include": [
"apps/docs",
"apps/docs/.vitepress",
"packages/*/src/**/*",
"packages/*/package.json",
"packages/*/typings/**/*",
"typings/env.d.ts"
]
}
2 changes: 1 addition & 1 deletion tsconfig.playground.json
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,6 @@
"apps/playground-vue2/*/env.d.ts",
"apps/playground-vue3/*/main.ts",
"apps/playground-vue3/*/main.ts",
"apps/playground-vue3/*/env.d.ts",
"apps/playground-vue3/*/env.d.ts"
]
}

0 comments on commit ac9e2f8

Please sign in to comment.