Skip to content

Commit

Permalink
chore: templage
Browse files Browse the repository at this point in the history
  • Loading branch information
yuhongda committed Dec 15, 2023
1 parent 19516d1 commit e011e76
Show file tree
Hide file tree
Showing 3 changed files with 13,026 additions and 34 deletions.
30 changes: 8 additions & 22 deletions templates/project-react-ts/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -15,10 +15,6 @@
"@types/d3-selection": "^3.0.1",
"@types/jest": "^27.0.1",
"@types/jsonpath": "^0.2.0",
"@types/koa": "^2.13.4",
"@types/koa-bodyparser": "^4.3.3",
"@types/koa-router": "^7.4.4",
"@types/koa2-cors": "^2.0.2",
"@types/lodash": "^4.14.172",
"@types/node": "^16.6.1",
"@types/react": "^18.0.14",
Expand All @@ -27,9 +23,7 @@
"@types/react-transition-group": "^4.4.2",
"@typescript-eslint/eslint-plugin": "^4.29.1",
"@typescript-eslint/parser": "^4.29.1",
"@vitejs/plugin-legacy": "^1.5.3",
"@vitejs/plugin-react": "^3.0.1",
"@vitejs/plugin-react-refresh": "^1.3.4",
"@vitejs/plugin-react": "^4.2.1",
"babel-core": "^6.26.3",
"babel-plugin-module-resolver": "^4.1.0",
"babel-preset-react-app": "^10.0.0",
Expand All @@ -52,10 +46,6 @@
"husky": "^7.0.1",
"identity-obj-proxy": "^3.0.0",
"jest": "^27.0.6",
"koa": "^2.13.1",
"koa-bodyparser": "^4.3.0",
"koa-router": "^10.1.1",
"koa2-cors": "^2.0.6",
"less": "^4.1.1",
"less-loader": "^10.0.1",
"nodemon": "^2.0.12",
Expand All @@ -75,23 +65,19 @@
"typescript": "^4.3.5",
"typescript-plugin-css-modules": "^3.4.0",
"unique-commit-id": "^1.0.0",
"vite": "^4.0.4",
"vite-plugin-transform-externals": "^0.1.2",
"vite-plugin-windicss": "^1.2.7",
"webpack": "^5.50.0",
"windicss": "^3.1.7"
"vite": "^4.5.1",
"webpack": "^5.50.0"
},
"dependencies": {
"@ant-design/compatible": "^5.1.1",
"@ant-design/icons": "^4.6.2",
"@ant-design/pro-layout": "^7.10.2",
"@antv/g6": "^4.6.15",
"@echarts-readymade/table": "^1.0.40",
"@micro-zoe/micro-app": "^0.8.5",
"@micro-zoe/plugin-painful-joya": "^1.0.0",
"@rmb/events": "^0.3.0",
"@rmb/path-to-regexp": "^0.1.0",
"@scf/lowcode-sdk-charts": "^2.0.4",
"@scf/lowcode-sdk-charts": "^3.2.0",
"@scf/meteor-react": "^2.1.15",
"@sentry/browser": "^6.11.0",
"@superwf/mobx-react-router": "^7.4.0",
Expand All @@ -110,7 +96,7 @@
"dayjs": "^1.11.7",
"echarts": "^5.2.0",
"echarts-for-react": "^3.0.1",
"echarts-readymade": "^1.0.44",
"echarts-readymade": "^1.1.1",
"history": "^5.0.1",
"jsonpath": "^1.1.1",
"localforage": "^1.10.0",
Expand All @@ -121,10 +107,10 @@
"moment": "^2.29.1",
"path-to-regexp": "^6.2.0",
"qs": "^6.10.2",
"react": "^17.0.2",
"react": "^18.2.0",
"react-d3-cloud": "^1.0.5",
"react-d3-graph": "^2.6.0",
"react-dom": "^17.0.2",
"react-dom": "^18.2.0",
"react-fast-compare": "^3.2.0",
"react-faux-dom": "^4.5.0",
"react-router": "^5.2.0",
Expand All @@ -133,7 +119,7 @@
"screenfull": "^6.0.2",
"styled-components": "^5.3.6",
"url": "^0.11.0",
"use-local-storage-state": "17",
"use-local-storage-state": "^19.1.0",
"vite-plugin-compression": "^0.3.5",
"wordcloud": "^1.2.2"
},
Expand Down
12 changes: 0 additions & 12 deletions templates/project-react-ts/vite.config.ts
Original file line number Diff line number Diff line change
@@ -1,19 +1,8 @@
/* eslint-disable no-nested-ternary */
/* eslint-disable @typescript-eslint/no-var-requires,global-require,import/no-dynamic-require */
import { spawn } from 'child_process'
// import { readFileSync } from 'fs'

// import reactRefresh from '@vitejs/plugin-react-refresh'
// import type { HtmlTagDescriptor } from 'vite'
import { defineConfig } from 'vite'
import WindiCSS from 'vite-plugin-windicss'
import react from '@vitejs/plugin-react'

// import viteCompression from 'vite-plugin-compression'
// import TransformExternals from 'vite-plugin-transform-externals'
// import TransformExternals from './vite-plugin'
// import { packages, unpkgHost } from './config/externals'
// import { resolveRoot } from './script/resolveRoot'
import uniqueCommitId from 'unique-commit-id'

import packageJSON from './package.json'
Expand Down Expand Up @@ -49,7 +38,6 @@ export default defineConfig({
},
},
plugins: [
WindiCSS(),
react({
include: '**/*.tsx',
}),
Expand Down

0 comments on commit e011e76

Please sign in to comment.