Skip to content

Commit 4fc7220

Browse files
committed
Migrate docs/gremlint from Create React App to Vite
- Replace react-scripts, react-app-rewired, customize-cra with Vite 6 - Upgrade React 17 → 18 (createRoot API) - Upgrade TypeScript 4 → 5 with bundler module resolution - Replace Jest with Vitest; add jsdom test environment - Upgrade web-vitals 3 → 5 (getFID removed, onINP added) - Remove deprecated tslint/tslint-config-prettier - Add npm overrides to deduplicate React across sharp-router - Fix engines field: ">22" → ">=22" - Move HTML template to project root (Vite convention) Result: 49 vulnerabilities → 0 tinkerpop-xcq
1 parent 6861dfa commit 4fc7220

11 files changed

Lines changed: 3105 additions & 17459 deletions

File tree

docs/gremlint/.gitignore

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,4 +16,5 @@
1616
# under the License.
1717

1818
node_modules
19-
build
19+
build
20+
dist

docs/gremlint/index.html

Lines changed: 38 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,38 @@
1+
<!--
2+
Licensed to the Apache Software Foundation (ASF) under one
3+
or more contributor license agreements. See the NOTICE file
4+
distributed with this work for additional information
5+
regarding copyright ownership. The ASF licenses this file
6+
to you under the Apache License, Version 2.0 (the
7+
"License"); you may not use this file except in compliance
8+
with the License. You may obtain a copy of the License at
9+
10+
http://www.apache.org/licenses/LICENSE-2.0
11+
12+
Unless required by applicable law or agreed to in writing,
13+
software distributed under the License is distributed on an
14+
"AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
15+
KIND, either express or implied. See the License for the
16+
specific language governing permissions and limitations
17+
under the License.
18+
-->
19+
20+
<!DOCTYPE html>
21+
<html lang="en">
22+
<head>
23+
<meta charset="utf-8" />
24+
<link rel="icon" href="/favicon.ico" />
25+
<meta name="viewport" content="width=device-width, initial-scale=1" />
26+
<meta name="theme-color" content="#000000" />
27+
<meta name="description" content="Gremlint - Gremlin query formatter" />
28+
<meta name="google-site-verification" content="8rkkiQkZaBwVUAUBxSY6Nj_EBHqCGPEYnEJmlyXuLnw" />
29+
<link rel="apple-touch-icon" href="/logo192.png" />
30+
<link rel="manifest" href="/manifest.json" />
31+
<title>Gremlint</title>
32+
</head>
33+
<body>
34+
<noscript>You need to enable JavaScript to run this app.</noscript>
35+
<div id="root"></div>
36+
<script type="module" src="/src/index.tsx"></script>
37+
</body>
38+
</html>

0 commit comments

Comments
 (0)