Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .devcontainer/devcontainer.json
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@
"forwardPorts": [8080],

// Use 'postCreateCommand' to run commands after the container is created.
"postCreateCommand": "yarn install",
"postCreateCommand": "npm install",

// Uncomment to connect as a non-root user. See https://aka.ms/vscode-remote/containers/non-root.
// "remoteUser": "node"
Expand Down
6 changes: 3 additions & 3 deletions .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,12 +16,12 @@ jobs:
uses: actions/setup-node@v4
with:
node-version: '20'
cache: 'yarn'
cache: 'npm'

- name: Install and Build 🔧
run: |
yarn install --frozen-lockfile
yarn build
npm ci
npm run build
touch build/.nojekyll

- name: Deploy 🚀
Expand Down
16 changes: 14 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,8 @@ A browser based hex viewer ✨

## Development

This project uses [Vite](https://vite.dev/) as its build system.

### Running Tests

This project includes tests to help catch regressions when updating dependencies:
Expand All @@ -21,15 +23,25 @@ npm run test:watch
npm run test:ui
```

### Development Server

```bash
npm start
# or
npm run dev
```

### Building

```bash
npm run build
```

### Development Server
The build output will be in the `build/` directory.

### Preview Production Build

```bash
npm start
npm run preview
```

6 changes: 3 additions & 3 deletions public/index.html → index.html
Original file line number Diff line number Diff line change
Expand Up @@ -6,19 +6,19 @@
<title>Hex</title>
<meta name="viewport" content="width=device-width, initial-scale=1">
<meta name="description" content="Another online hex viewer">
<link rel="manifest" href="manifest.webmanifest">
<link rel="manifest" href="/manifest.webmanifest">

<link rel="preconnect" href="https://fonts.gstatic.com">
<link href="https://fonts.googleapis.com/css2?family=IBM+Plex+Mono:ital,wght@0,100;0,700;1,100&display=swap"
rel="stylesheet">

<link rel="stylesheet" href="style.css">
<link rel="stylesheet" href="/style.css">
</head>

<body>

<div id="root"></div>
<script src="_dist_/index.js" type="module"></script>
<script src="/src/index.jsx" type="module"></script>

</body>

Expand Down
Loading