Skip to content
This repository was archived by the owner on Jul 8, 2025. It is now read-only.

Commit 9f89143

Browse files
committed
chore: using vite
1 parent 62f8fa5 commit 9f89143

File tree

33 files changed

+21755
-58
lines changed

33 files changed

+21755
-58
lines changed

β€Žpackage.jsonβ€Ž

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,7 @@
2828
"@sentry/react": "^6.5.0",
2929
"@sentry/tracing": "^6.5.0",
3030
"@udecode/slate-plugins": "^1.0.0-alpha.25",
31+
"@vitejs/plugin-react-refresh": "^1.3.6",
3132
"@vize/richtext-editor": "^0.1.5",
3233
"@vize/runtime-web": "^0.1.2",
3334
"@vize/types": "^0.1.15",
@@ -72,6 +73,8 @@
7273
"styled-components": "^5.1.1",
7374
"throttle-debounce": "^2.1.0",
7475
"tinycolor2": "^1.4.1",
76+
"vite": "^2.9.9",
77+
"vite-tsconfig-paths": "^3.5.0",
7578
"wouter": "^2.5.3"
7679
},
7780
"devDependencies": {
@@ -124,7 +127,7 @@
124127
"sass": "^1.32.12",
125128
"sass-loader": "^8.0.2",
126129
"typedoc": "^0.20.35",
127-
"typescript": "^4.2.4",
130+
"typescript": "4.3.5",
128131
"vuepress": "^1.8.0",
129132
"vuepress-plugin-code-copy": "^1.0.6",
130133
"vuepress-plugin-code-switcher": "^1.1.0",

β€Žpackages/editor/index.htmlβ€Ž

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
<!DOCTYPE html>
2+
<html>
3+
<head>
4+
<meta http-equiv="X-UA-Compatible" content="IE=edge" />
5+
<meta charset="utf-8" />
6+
<meta name="format-detection" content="telephone=no" />
7+
<meta name="viewport" content="width=device-width,initial-scale=1.0,maximum-scale=1.0,user-scalable=no" />
8+
<link rel="icon" type="image/x-icon" sizes="16x16 32x32" href="/favicon.ico" />
9+
<link rel="icon" sizes="192x192" href="/favicon-192.png" />
10+
<link rel="apple-touch-icon" sizes="180x180" href="/favicon-180-precomposed.png" />
11+
<title>Vize</title>
12+
</head>
13+
14+
<body>
15+
<div id="main-entry"><!-- HTML_PLACEHOLDER --></div>
16+
<script type="module" src="/src/main.tsx"></script>
17+
</body>
18+
</html>

β€Žpackages/editor/package.jsβ€Ž

Lines changed: 0 additions & 2 deletions
This file was deleted.

β€Žpackages/editor/package.jsonβ€Ž

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,9 @@
33
"version": "0.1.9",
44
"main": "package.js",
55
"scripts": {
6-
"start": "SKIP_PREFLIGHT_CHECK=true PORT=3000 ../../node_modules/.bin/react-app-rewired start --max-old-space-size=12288",
7-
"build": "rm -r ./build; SKIP_PREFLIGHT_CHECK=true NODE_ENV=production ../../node_modules/.bin/react-app-rewired build --max-old-space-size=12288",
6+
"dev": "vite",
7+
"build": "tsc && vite build",
8+
"serve": "vite preview",
89
"publish": "npm publish --access public"
910
},
1011
"browserslist": {

β€Žpackages/editor/public/index.htmlβ€Ž

Lines changed: 0 additions & 28 deletions
This file was deleted.

β€Žpackages/editor/src/components/AttributesEditor/ChildrenComponentsEdit/index.scssβ€Ž

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
@import 'styles/helper';
1+
@import 'src/styles/helper';
22

33
.editor-prop-edit-children {
44
& > p {

β€Žpackages/editor/src/components/AttributesEditor/DataAttrsEdit/index.scssβ€Ž

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
@import 'styles/helper';
1+
@import 'src/styles/helper';
22

33
.editor-prop-edit-data {
44
&.global {

β€Žpackages/editor/src/components/AttributesEditor/EventAttrForm/EventInstances/index.scssβ€Ž

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
@import 'styles/helper';
1+
@import 'src/styles/helper';
22

33
.event_instances {
44
margin-top: 32px;

β€Žpackages/editor/src/components/AttributesEditor/StyleAttrsEdit/CommonStyleForm/DistanceForm/index.scssβ€Ž

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
@import 'styles/helper';
1+
@import 'src/styles/helper';
22

33
$border-color: #666;
44
$border-active-color: black;

β€Žpackages/editor/src/components/AttributesEditor/StyleAttrsEdit/CommonStyleForm/index.scssβ€Ž

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
@import 'styles/helper';
1+
@import 'src/styles/helper';
22

33
.ant-collapse-content-box .ant-collapse-item {
44
&:last-child {

0 commit comments

Comments
Β (0)