Skip to content

Commit

Permalink
chore: remove unused
Browse files Browse the repository at this point in the history
  • Loading branch information
yujinpan committed May 29, 2024
1 parent bdb97c0 commit 0dd53c2
Show file tree
Hide file tree
Showing 6 changed files with 7 additions and 66 deletions.
Empty file removed .env
Empty file.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ stat
lib
package-lock.json
types
docs/.vitepress/cache

# local env files
.env.local
Expand Down
4 changes: 0 additions & 4 deletions babel.config.js

This file was deleted.

11 changes: 5 additions & 6 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -32,23 +32,22 @@
"devDependencies": {
"@rushstack/eslint-patch": "^1.1.0",
"@types/jsdom": "^16.2.14",
"@types/node": "^18",
"@types/node": "*",
"@vitejs/plugin-vue2": "^2.3.0",
"@vitejs/plugin-vue2-jsx": "^1.0.3",
"@vue/eslint-config-prettier": "^9.0.0",
"@vue/eslint-config-typescript": "^13.0.0",
"@vue/eslint-config-prettier": "^7.0.0",
"@vue/eslint-config-typescript": "^11.0.0",
"@vue/tsconfig": "^0.1.3",
"eslint": "^8",
"eslint-import-resolver-typescript": "^3.5.0",
"eslint-plugin-import": "^2.26.0",
"eslint-plugin-vue": "^9.0.0",
"path-ops": "^1.0.0",
"prettier": "^3",
"prettier": "^2",
"release-ops": "^1.0.1",
"rollup": "^4.18.0",
"rollup-plugin-vue": "^5.1.9",
"rollupx": "^3",
"sass": "^1.77.2",
"sass": "^1.x",
"typescript": "^5",
"vite": "^5",
"vitest": "^1.6.0"
Expand Down
10 changes: 0 additions & 10 deletions prettier.config.js

This file was deleted.

47 changes: 1 addition & 46 deletions vite.config.ts
Original file line number Diff line number Diff line change
@@ -1,64 +1,19 @@
import vue2 from '@vitejs/plugin-vue2';
import vue2Jsx from '@vitejs/plugin-vue2-jsx';
import { resolve } from 'path';
import { resolveWithAlias } from 'path-ops';
import { defineConfig } from 'vitest/config';

import pkg from './package.json';

const alias = {
'@': resolve('src'),
};

// https://vitejs.dev/config/
export default defineConfig({
base: './',
plugins: [
vue2(),
vue2Jsx({
// fork from @vue/babel-preset-app
babelPlugins: [
['@babel/plugin-proposal-decorators', { legacy: true }],
'@babel/plugin-proposal-class-properties',
],
}),
],
server: {
proxy: {
'/api': {
target: 'http://wh.greatmap.com.cn:16440/',
},
},
},
plugins: [vue2()],
resolve: {
alias,
extensions: ['.vue', '.js', '.ts', '.jsx', '.tsx', '.json'],
},
css: {
preprocessorOptions: {
scss: {
// ignore external sass warnings for "10px / 2px"
quietDeps: true,
// resolve start path for "~", like: "~external/style/var.scss"
importer: (url: string) => {
return {
file: resolveWithAlias(
url.startsWith('~') ? url.slice(1) : url,
alias,
),
};
},
},
},
},
define: {
// define package build info, print them in console
__BUILD__: JSON.stringify({
name: pkg.name,
version: pkg.version,
dateTime: new Date().toLocaleString(),
}),
},
test: {
globals: true,
environment: 'jsdom',
Expand Down

0 comments on commit 0dd53c2

Please sign in to comment.