Skip to content

Commit 7de6e61

Browse files
Replace Next with Vite (#3220)
1 parent bd8954a commit 7de6e61

61 files changed

Lines changed: 532 additions & 2071 deletions

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

.github/workflows/forbid-todo.yml

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

.github/workflows/test-docs.yml

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

.github/workflows/test.yml

Lines changed: 16 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,6 @@ jobs:
2020
lint:
2121
name: Lint
2222
runs-on: ubuntu-latest
23-
2423
steps:
2524
- name: Checkout repository
2625
uses: actions/checkout@v6
@@ -31,6 +30,22 @@ jobs:
3130
- name: Lint
3231
run: pnpm --color lint
3332

33+
- name: Forbid TODO
34+
run: ./scripts/forbid-todo.sh
35+
36+
build-website:
37+
name: Build Website
38+
runs-on: ubuntu-latest
39+
steps:
40+
- name: Checkout repository
41+
uses: actions/checkout@v6
42+
43+
- name: Set up Node.js
44+
uses: ./.github/actions/setup-node
45+
46+
- name: Build website
47+
run: bash -x scripts/build-and-assemble-website.sh
48+
3449
test-main:
3550
name: Test
3651
strategy:
@@ -46,7 +61,6 @@ jobs:
4661
APP_VERSION: ${{ matrix.app_version }}
4762
VSCODE_CRASH_DIR: ${{ github.workspace }}/artifacts/dumps
4863
VSCODE_LOGS_DIR: ${{ github.workspace }}/artifacts/logs
49-
5064
steps:
5165
- name: Git config
5266
run: git config --global core.autocrlf false
@@ -139,7 +153,6 @@ jobs:
139153
test-neovim:
140154
name: Test Neovim
141155
runs-on: ubuntu-latest
142-
143156
steps:
144157
- name: Git config
145158
run: git config --global core.autocrlf false

netlify.toml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,6 @@
1+
# Netlify configuration file for building and deploying the Cursorless website.
2+
# Read by Netlify GitHub app.
3+
14
[build]
25
command = "./scripts/build-and-assemble-website.sh"
36
publish = "dist/cursorless-org"

packages/cheatsheet-local/index.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111
document.cheatsheetInfo = __FAKE_CHEATSHEET_INFO__;
1212
</script>
1313
</head>
14-
<body class="__BODY_CLASSES__">
14+
<body>
1515
<div id="root"></div>
1616
<script type="module" src="./src/index.tsx"></script>
1717
</body>

packages/cheatsheet-local/package.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,7 @@
2828
},
2929
"dependencies": {
3030
"@cursorless/cheatsheet": "workspace:*",
31+
"@cursorless/common": "workspace:*",
3132
"react": "^19.2.4",
3233
"react-dom": "^19.2.4",
3334
"tslib": "^2.8.1"

packages/cheatsheet-local/src/app/app.spec.tsx

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
import { render } from "@testing-library/react";
2-
3-
import App from "./app";
2+
import { App } from "./app";
43

54
describe("App", () => {
65
it("should render successfully", () => {

packages/cheatsheet-local/src/app/app.tsx

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
import type { CheatsheetInfo } from "@cursorless/cheatsheet";
22
import { CheatsheetPage } from "@cursorless/cheatsheet";
3-
import "../styles.css";
3+
import "./styles.css";
44

55
declare global {
66
interface Document {
@@ -18,5 +18,3 @@ declare global {
1818
export function App() {
1919
return <CheatsheetPage cheatsheetInfo={document.cheatsheetInfo} />;
2020
}
21-
22-
export default App;
Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
@import "tailwindcss";
2+
3+
@config "../../tailwind.config.mjs";

packages/cheatsheet-local/src/index.tsx

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
import { StrictMode } from "react";
22
import * as ReactDOM from "react-dom/client";
3-
4-
import App from "./app/app";
3+
import { App } from "./app/app";
54

65
const root = ReactDOM.createRoot(
76
document.getElementById("root") as HTMLElement,

0 commit comments

Comments
 (0)