Skip to content

Commit

Permalink
Switch dev server + prod build to vite! (#1535)
Browse files Browse the repository at this point in the history
* Get vite to mostly work

Co-authored-by: Elijah Vennebush <[email protected]>
Co-authored-by: Alex <[email protected]>

* Fix postcss config and delete more unused

* Fix tests

* Remove unused babel plugins

* Adjust rollup config

* Fix Service Worker and PWA stuff

* Update to type:module in package.json

* Undo needless change src -> @

* Undo more needless changes?

* For now, undo linaria changes in all files

* Remove unrelated change

* Undo more changes

* Remove more deps (will have to add back some of these)

* Dep updates since last time I worked on this

* Set up new version of linaria

* Fix a silly CSS bug

* Use port 2733 for preview as well

* Fix TS imports

* Increase min chunk size for chunk merging

* Remove unmaintained postcss-font-magician

* Update node LTS minimum

* Replace Jest with Vitest for less config

* Downgrade TS to avoid needing to update eslint-plugin-caleb in this PR

* Remove unused old rollup config

* Undo upgrading preact to avoid needing to fix type stuff in this PR

* Re-update preact to fix integration with vite and prefresh

* Fix chart where polished lib was included at runtime

* Fix type errors

* Use node 18 in CI

* Delete commented code

* Run prettier on html files too

---------

Co-authored-by: Elijah Vennebush <[email protected]>
Co-authored-by: Alex <[email protected]>
  • Loading branch information
3 people committed Mar 8, 2024
1 parent bc50d1f commit f41261e
Show file tree
Hide file tree
Showing 86 changed files with 14,427 additions and 42,408 deletions.
43 changes: 0 additions & 43 deletions .babelrc.js

This file was deleted.

18 changes: 0 additions & 18 deletions .babelrc.output.js

This file was deleted.

16 changes: 8 additions & 8 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,10 +7,10 @@ jobs:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Use Node.js 12
- name: Use Node.js 18
uses: actions/setup-node@v1
with:
node-version: 12
node-version: 18
- name: Install Dependencies
run: npm ci
- name: Run Build
Expand All @@ -20,10 +20,10 @@ jobs:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Use Node.js 12
- name: Use Node.js 18
uses: actions/setup-node@v1
with:
node-version: 12
node-version: 18
- name: Install Dependencies
run: npm ci
- name: Run Lint
Expand All @@ -33,10 +33,10 @@ jobs:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Use Node.js 12
- name: Use Node.js 18
uses: actions/setup-node@v1
with:
node-version: 12
node-version: 18
- name: Install Dependencies
run: npm ci
- name: Run Tests
Expand All @@ -48,10 +48,10 @@ jobs:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Use Node.js 12
- name: Use Node.js 18
uses: actions/setup-node@v1
with:
node-version: 12
node-version: 18
- name: Install Dependencies
run: npm ci
- name: Type Check
Expand Down
2 changes: 1 addition & 1 deletion .nvmrc
Original file line number Diff line number Diff line change
@@ -1 +1 @@
14
18
13 changes: 0 additions & 13 deletions babel-plugin-remove-preact-debug.js

This file was deleted.

100 changes: 0 additions & 100 deletions babel-plugin-rename-toplevel-import-export.js

This file was deleted.

4 changes: 2 additions & 2 deletions rollup-index.html → index.html
Original file line number Diff line number Diff line change
Expand Up @@ -15,8 +15,8 @@
<link rel="manifest" href="/manifest.json" />
<title>Peregrine</title>
<link rel="preconnect" href="{{ apiUrl }}" />
<script type="module" src="/index.js"></script>
<link href="/style.css" rel="stylesheet" />
<script type="module" src="/src/index.tsx"></script>
</head>

<body></body>
</html>
3 changes: 0 additions & 3 deletions jest-transform.js

This file was deleted.

4 changes: 0 additions & 4 deletions linaria.config.js

This file was deleted.

Loading

0 comments on commit f41261e

Please sign in to comment.