Remove build step

This commit is contained in:
2023-11-19 12:27:35 +01:00
parent dc1a1c8633
commit b5ec58b936
5 changed files with 33 additions and 23 deletions

View File

@@ -1,20 +1,22 @@
# naive-keypad
## Build the browser application
An interactive demonstration of a keypad with a quickly discoverable code.
## Deploying
To deploy it on your web server, you need to copy those files/directories:
- `index.html`
- `src/`
## Developing
You may optionally use a build step to minify the code and have a development server.
Ensure you have [Node.js](https://nodejs.org) installed. Then run your favorite package manager (npm, yarn, pnpm, bun, etc.) to install the dependencies and build the application:
```sh
npm install
npm run build
```
Copy the contents of the `dist` directory to your web server, and there you go!
## Changing the code
You may during the build process override the code of the keypad:
```sh
VITE_KEYPAD_CODE=7894 npm run build
npm run dev # Run the Vite development server
npm run build # Build the application in the dist/ directory
```