mirror of https://github.com/halo-dev/halo
chore: remove unused dependencies and configuration files (#6917)
#### What type of PR is this? /area core /kind cleanup #### What this PR does / why we need it: Remove unused dependencies and configuration files #### Does this PR introduce a user-facing change? ```release-note None ```pull/6920/head
parent
9ecc8f1d95
commit
ddaf7b0dce
|
@ -1,4 +0,0 @@
|
||||||
*.js linguist-language=Java
|
|
||||||
*.css linguist-language=Java
|
|
||||||
*.ftl linguist-language=FreeMarker
|
|
||||||
*.html linguist-language=Vue
|
|
|
@ -1,8 +0,0 @@
|
||||||
# Changesets
|
|
||||||
|
|
||||||
Hello and welcome! This folder has been automatically generated by `@changesets/cli`, a build tool that works
|
|
||||||
with multi-package repos, or single-package repos to help you version and publish your code. You can
|
|
||||||
find the full documentation for it [in our repository](https://github.com/changesets/changesets)
|
|
||||||
|
|
||||||
We have a quick list of common questions to get you started engaging with this project in
|
|
||||||
[our documentation](https://github.com/changesets/changesets/blob/main/docs/common-questions.md)
|
|
|
@ -1,11 +0,0 @@
|
||||||
{
|
|
||||||
"$schema": "https://unpkg.com/@changesets/config@2.0.1/schema.json",
|
|
||||||
"changelog": "@changesets/cli/changelog",
|
|
||||||
"commit": false,
|
|
||||||
"fixed": [],
|
|
||||||
"linked": [["@halo-dev/*"]],
|
|
||||||
"access": "public",
|
|
||||||
"baseBranch": "next",
|
|
||||||
"updateInternalDependencies": "patch",
|
|
||||||
"ignore": []
|
|
||||||
}
|
|
|
@ -1,9 +0,0 @@
|
||||||
{
|
|
||||||
"mode": "pre",
|
|
||||||
"tag": "alpha",
|
|
||||||
"initialVersions": {
|
|
||||||
"@halo-dev/components": "0.0.0-alpha.0",
|
|
||||||
"@halo-dev/console-shared": "0.0.0-alpha.0"
|
|
||||||
},
|
|
||||||
"changesets": []
|
|
||||||
}
|
|
|
@ -18,12 +18,6 @@ module.exports = {
|
||||||
"@typescript-eslint/ban-ts-comment": 0,
|
"@typescript-eslint/ban-ts-comment": 0,
|
||||||
"vue/no-v-html": 0,
|
"vue/no-v-html": 0,
|
||||||
},
|
},
|
||||||
overrides: [
|
|
||||||
{
|
|
||||||
files: ["cypress/integration/**.spec.{js,ts,jsx,tsx}"],
|
|
||||||
extends: ["plugin:cypress/recommended"],
|
|
||||||
},
|
|
||||||
],
|
|
||||||
ignorePatterns: ["!.storybook", "packages/api-client"],
|
ignorePatterns: ["!.storybook", "packages/api-client"],
|
||||||
parserOptions: {
|
parserOptions: {
|
||||||
ecmaVersion: "latest",
|
ecmaVersion: "latest",
|
||||||
|
|
15
ui/OWNERS
15
ui/OWNERS
|
@ -1,15 +0,0 @@
|
||||||
reviewers:
|
|
||||||
- ruibaby
|
|
||||||
- guqing
|
|
||||||
- JohnNiang
|
|
||||||
- lan-yonghui
|
|
||||||
- wan92hen
|
|
||||||
- QuentinHsu
|
|
||||||
- Aanko
|
|
||||||
- wzrove
|
|
||||||
- LIlGG
|
|
||||||
|
|
||||||
approvers:
|
|
||||||
- ruibaby
|
|
||||||
- guqing
|
|
||||||
- JohnNiang
|
|
|
@ -1,3 +0,0 @@
|
||||||
{
|
|
||||||
"baseUrl": "http://localhost:5050"
|
|
||||||
}
|
|
|
@ -1,5 +0,0 @@
|
||||||
{
|
|
||||||
"name": "Using fixtures to represent data",
|
|
||||||
"email": "hello@cypress.io",
|
|
||||||
"body": "Fixtures are a great way to mock data for responses to routes"
|
|
||||||
}
|
|
|
@ -1,8 +0,0 @@
|
||||||
// https://docs.cypress.io/api/introduction/api.html
|
|
||||||
|
|
||||||
describe("My First Test", () => {
|
|
||||||
it("visits the app root url", () => {
|
|
||||||
cy.visit("/");
|
|
||||||
cy.contains("h1", "You did it!");
|
|
||||||
});
|
|
||||||
});
|
|
|
@ -1,19 +0,0 @@
|
||||||
/* eslint-env node */
|
|
||||||
// ***********************************************************
|
|
||||||
// This example plugins/index.ts can be used to load plugins
|
|
||||||
//
|
|
||||||
// You can change the location of this file or turn off loading
|
|
||||||
// the plugins file with the 'pluginsFile' configuration option.
|
|
||||||
//
|
|
||||||
// You can read more here:
|
|
||||||
// https://on.cypress.io/plugins-guide
|
|
||||||
// ***********************************************************
|
|
||||||
|
|
||||||
// This function is called when a project is opened or re-opened (e.g. due to
|
|
||||||
// the project's config changing)
|
|
||||||
|
|
||||||
export default ((on, config) => {
|
|
||||||
// `on` is used to hook into various events Cypress emits
|
|
||||||
// `config` is the resolved Cypress config
|
|
||||||
return config;
|
|
||||||
}) as Cypress.PluginConfig;
|
|
|
@ -1,14 +0,0 @@
|
||||||
{
|
|
||||||
"extends": "@vue/tsconfig/tsconfig.node.json",
|
|
||||||
"include": [
|
|
||||||
"./**/*"
|
|
||||||
],
|
|
||||||
"compilerOptions": {
|
|
||||||
"module": "CommonJS",
|
|
||||||
"preserveValueImports": false,
|
|
||||||
"types": [
|
|
||||||
"node",
|
|
||||||
"cypress/types/cypress"
|
|
||||||
]
|
|
||||||
}
|
|
||||||
}
|
|
|
@ -1,25 +0,0 @@
|
||||||
// ***********************************************
|
|
||||||
// This example commands.js shows you how to
|
|
||||||
// create various custom commands and overwrite
|
|
||||||
// existing commands.
|
|
||||||
//
|
|
||||||
// For more comprehensive examples of custom
|
|
||||||
// commands please read more here:
|
|
||||||
// https://on.cypress.io/custom-commands
|
|
||||||
// ***********************************************
|
|
||||||
//
|
|
||||||
//
|
|
||||||
// -- This is a parent command --
|
|
||||||
// Cypress.Commands.add('login', (email, password) => { ... })
|
|
||||||
//
|
|
||||||
//
|
|
||||||
// -- This is a child command --
|
|
||||||
// Cypress.Commands.add('drag', { prevSubject: 'element'}, (subject, options) => { ... })
|
|
||||||
//
|
|
||||||
//
|
|
||||||
// -- This is a dual command --
|
|
||||||
// Cypress.Commands.add('dismiss', { prevSubject: 'optional'}, (subject, options) => { ... })
|
|
||||||
//
|
|
||||||
//
|
|
||||||
// -- This will overwrite an existing command --
|
|
||||||
// Cypress.Commands.overwrite('visit', (originalFn, url, options) => { ... })
|
|
|
@ -1,20 +0,0 @@
|
||||||
// ***********************************************************
|
|
||||||
// This example support/index.js is processed and
|
|
||||||
// loaded automatically before your test files.
|
|
||||||
//
|
|
||||||
// This is a great place to put global configuration and
|
|
||||||
// behavior that modifies Cypress.
|
|
||||||
//
|
|
||||||
// You can change the location of this file or turn off
|
|
||||||
// automatically serving support files with the
|
|
||||||
// 'supportFile' configuration option.
|
|
||||||
//
|
|
||||||
// You can read more here:
|
|
||||||
// https://on.cypress.io/configuration
|
|
||||||
// ***********************************************************
|
|
||||||
|
|
||||||
// Import commands.js using ES2015 syntax:
|
|
||||||
import "./commands";
|
|
||||||
|
|
||||||
// Alternatively you can use CommonJS syntax:
|
|
||||||
// require('./commands')
|
|
|
@ -1,18 +0,0 @@
|
||||||
{
|
|
||||||
"extends": "@vue/tsconfig/tsconfig.web.json",
|
|
||||||
"include": [
|
|
||||||
"./integration/**/*",
|
|
||||||
"./support/**/*"
|
|
||||||
],
|
|
||||||
"compilerOptions": {
|
|
||||||
"isolatedModules": false,
|
|
||||||
"target": "es5",
|
|
||||||
"lib": [
|
|
||||||
"es5",
|
|
||||||
"dom"
|
|
||||||
],
|
|
||||||
"types": [
|
|
||||||
"cypress"
|
|
||||||
]
|
|
||||||
}
|
|
||||||
}
|
|
|
@ -12,22 +12,18 @@
|
||||||
"build:uc": "vue-tsc --noEmit -p tsconfig.app.json --composite false && vite build --config ./vite.uc.config.ts",
|
"build:uc": "vue-tsc --noEmit -p tsconfig.app.json --composite false && vite build --config ./vite.uc.config.ts",
|
||||||
"build:console": "vue-tsc --noEmit -p tsconfig.app.json --composite false && vite build --config ./vite.config.ts",
|
"build:console": "vue-tsc --noEmit -p tsconfig.app.json --composite false && vite build --config ./vite.config.ts",
|
||||||
"build:packages": "pnpm --filter \"./packages/**\" build",
|
"build:packages": "pnpm --filter \"./packages/**\" build",
|
||||||
"preview": "vite preview --port 5050",
|
|
||||||
"api-client:gen": "pnpm --filter \"./packages/api-client\" gen",
|
"api-client:gen": "pnpm --filter \"./packages/api-client\" gen",
|
||||||
"test:unit": "vitest --environment jsdom --run && pnpm run test:unit:packages",
|
"test:unit": "vitest --environment jsdom --run && pnpm run test:unit:packages",
|
||||||
"test:unit:watch": "vitest --environment jsdom --watch",
|
"test:unit:watch": "vitest --environment jsdom --watch",
|
||||||
"test:unit:ui": "vitest --environment jsdom --watch --ui",
|
"test:unit:ui": "vitest --environment jsdom --watch --ui",
|
||||||
"test:unit:coverage": "vitest run --environment jsdom --coverage",
|
"test:unit:coverage": "vitest run --environment jsdom --coverage",
|
||||||
"test:e2e": "start-server-and-test preview http://127.0.0.1:5050/ \"cypress open\"",
|
|
||||||
"test:e2e:ci": "start-server-and-test preview http://127.0.0.1:5050/ \"cypress run\"",
|
|
||||||
"typecheck": "vue-tsc --noEmit -p tsconfig.app.json --composite false && pnpm run typecheck:packages",
|
"typecheck": "vue-tsc --noEmit -p tsconfig.app.json --composite false && pnpm run typecheck:packages",
|
||||||
"lint": "eslint \"./src\" \"./console-src\" \"./uc-src\" --ext .vue,.js,.jsx,.cjs,.mjs,.ts,.tsx,.cts,.mts --ignore-path .gitignore --max-warnings=0 -f html -o build/lint-result/index.html && pnpm run lint:packages",
|
"lint": "eslint \"./src\" \"./console-src\" \"./uc-src\" --ext .vue,.js,.jsx,.cjs,.mjs,.ts,.tsx,.cts,.mts --ignore-path .gitignore --max-warnings=0 -f html -o build/lint-result/index.html && pnpm run lint:packages",
|
||||||
"prettier": "prettier --write \"./{src,uc-src,console-src}/**/*.{vue,js,jsx,ts,tsx,css,scss,json,yml,yaml,html}\" && pnpm run prettier:packages",
|
"prettier": "prettier --write \"./{src,uc-src,console-src}/**/*.{vue,js,jsx,ts,tsx,css,scss,json,yml,yaml,html}\" && pnpm run prettier:packages",
|
||||||
"typecheck:packages": "pnpm --parallel --filter \"./packages/**\" run typecheck",
|
"typecheck:packages": "pnpm --parallel --filter \"./packages/**\" run typecheck",
|
||||||
"lint:packages": "pnpm --parallel --filter \"./packages/**\" lint",
|
"lint:packages": "pnpm --parallel --filter \"./packages/**\" lint",
|
||||||
"prettier:packages": "pnpm --parallel --filter \"./packages/**\" prettier",
|
"prettier:packages": "pnpm --parallel --filter \"./packages/**\" prettier",
|
||||||
"test:unit:packages": "pnpm --parallel --filter \"./packages/**\" run test:unit",
|
"test:unit:packages": "pnpm --parallel --filter \"./packages/**\" run test:unit"
|
||||||
"link:editor": "pnpm link --global @halo-dev/richtext-editor"
|
|
||||||
},
|
},
|
||||||
"lint-staged": {
|
"lint-staged": {
|
||||||
"*.{vue,js,jsx,ts,tsx,css,scss,json,yml,yaml,html}": [
|
"*.{vue,js,jsx,ts,tsx,css,scss,json,yml,yaml,html}": [
|
||||||
|
@ -108,7 +104,6 @@
|
||||||
"vue-router": "^4.3.2"
|
"vue-router": "^4.3.2"
|
||||||
},
|
},
|
||||||
"devDependencies": {
|
"devDependencies": {
|
||||||
"@changesets/cli": "^2.25.2",
|
|
||||||
"@iconify/json": "^2.2.235",
|
"@iconify/json": "^2.2.235",
|
||||||
"@intlify/unplugin-vue-i18n": "^4.0.0",
|
"@intlify/unplugin-vue-i18n": "^4.0.0",
|
||||||
"@rushstack/eslint-patch": "^1.3.2",
|
"@rushstack/eslint-patch": "^1.3.2",
|
||||||
|
@ -132,9 +127,7 @@
|
||||||
"@vue/tsconfig": "^0.5.1",
|
"@vue/tsconfig": "^0.5.1",
|
||||||
"autoprefixer": "^10.4.14",
|
"autoprefixer": "^10.4.14",
|
||||||
"c8": "^7.12.0",
|
"c8": "^7.12.0",
|
||||||
"cypress": "^10.11.0",
|
|
||||||
"eslint": "^8.43.0",
|
"eslint": "^8.43.0",
|
||||||
"eslint-plugin-cypress": "^2.13.3",
|
|
||||||
"eslint-plugin-vue": "^9.17.0",
|
"eslint-plugin-vue": "^9.17.0",
|
||||||
"husky": "^8.0.3",
|
"husky": "^8.0.3",
|
||||||
"jsdom": "^20.0.3",
|
"jsdom": "^20.0.3",
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
{
|
{
|
||||||
"extends": "@tsconfig/node18/tsconfig.json",
|
"extends": "@tsconfig/node18/tsconfig.json",
|
||||||
"include": ["vite.config.*", "vitest.config.*", "cypress.config.*"],
|
"include": ["vite.config.*", "vitest.config.*"],
|
||||||
"compilerOptions": {
|
"compilerOptions": {
|
||||||
"composite": true,
|
"composite": true,
|
||||||
"module": "ESNext",
|
"module": "ESNext",
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
{
|
{
|
||||||
"extends": "@tsconfig/node18/tsconfig.json",
|
"extends": "@tsconfig/node18/tsconfig.json",
|
||||||
"include": ["vite.config.*", "vitest.config.*", "cypress.config.*"],
|
"include": ["vite.config.*", "vitest.config.*"],
|
||||||
"compilerOptions": {
|
"compilerOptions": {
|
||||||
"composite": true,
|
"composite": true,
|
||||||
"module": "ESNext",
|
"module": "ESNext",
|
||||||
|
|
1185
ui/pnpm-lock.yaml
1185
ui/pnpm-lock.yaml
File diff suppressed because it is too large
Load Diff
|
@ -37,21 +37,6 @@ module.exports = {
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
themes: [
|
|
||||||
{
|
|
||||||
name: "theme-dark",
|
|
||||||
extend: {
|
|
||||||
colors: {
|
|
||||||
primary: "black",
|
|
||||||
secondary: "#0E1731",
|
|
||||||
},
|
|
||||||
borderRadius: {
|
|
||||||
base: "2px",
|
|
||||||
},
|
|
||||||
},
|
|
||||||
},
|
|
||||||
],
|
|
||||||
}),
|
}),
|
||||||
],
|
],
|
||||||
safelist: ["theme-dark"],
|
|
||||||
};
|
};
|
||||||
|
|
|
@ -4,7 +4,6 @@
|
||||||
"vite.config.ts",
|
"vite.config.ts",
|
||||||
"vite.uc.config.ts",
|
"vite.uc.config.ts",
|
||||||
"vitest.config.*",
|
"vitest.config.*",
|
||||||
"cypress.config.*",
|
|
||||||
"src/vite/library-external.ts",
|
"src/vite/library-external.ts",
|
||||||
"src/vite/config-builder.ts"
|
"src/vite/config-builder.ts"
|
||||||
],
|
],
|
||||||
|
|
Loading…
Reference in New Issue