Skip to content

Commit

Permalink
Migrate to vite (#6)
Browse files Browse the repository at this point in the history
* feat: migrate to vite from CRA

* fix: add back npm-watch for development
  • Loading branch information
mewajda authored Nov 21, 2023
1 parent 60efec7 commit 49c2ef0
Show file tree
Hide file tree
Showing 15 changed files with 5,848 additions and 28,783 deletions.
2 changes: 1 addition & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
/coverage

# production
/build
/dist

# misc
.DS_Store
Expand Down
1 change: 1 addition & 0 deletions .npmrc
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
save-exact=true
6 changes: 3 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -23,14 +23,14 @@ Currently, this extension isn't published to the chrome web store, so you must b
5. In your chrome or brave browser navigate to `{chrome/brave}://extensions`
6. Ensure you have `Developer Mode` enabled
7. Click `Load unpacked`
8. Select the `build` folder that was produced in step `4`
8. Select the `dist` folder that was produced in step `4`
9. Now, if you click the extensions button, you should see the `Cyclops` extension displayed

## Development

- Install deps `npm install`
- Start watch mode `npm run watch`
- Start watch mode `npm run dev`
- Go into chrome/brave `brave://extensions`
- Click `Load Unpacked`
- Select the `build` directory that was produced from the watch command
- Select the `dist` directory that was produced from the watch command
- The extension will now be accessible in the menu bar
23 changes: 0 additions & 23 deletions craco.config.js

This file was deleted.

7 changes: 4 additions & 3 deletions public/index.html → index.html
Original file line number Diff line number Diff line change
Expand Up @@ -2,16 +2,17 @@
<html lang="en">
<head>
<meta charset="utf-8" />
<link rel="icon" href="%PUBLIC_URL%/favicon.ico" />
<link rel="icon" href="/favicon.ico" />
<meta name="viewport" content="width=device-width, initial-scale=1" />
<meta name="theme-color" content="#000000" />
<meta name="description" content="Web site created using create-react-app" />
<link rel="apple-touch-icon" href="%PUBLIC_URL%/logo192.png" />
<link rel="manifest" href="%PUBLIC_URL%/manifest.json" />
<link rel="apple-touch-icon" href="/logo192.png" />
<link rel="manifest" href="/manifest.json" />
<title>Cyclops</title>
</head>
<body>
<noscript>You need to enable JavaScript to run this app.</noscript>
<div id="root"></div>
<script type="module" src="/src/index.tsx"></script>
</body>
</html>
Loading

0 comments on commit 49c2ef0

Please sign in to comment.