Remove build step
continuous-integration/drone/push Build is passing
Details
continuous-integration/drone/push Build is passing
Details
parent
dc1a1c8633
commit
b5ec58b936
@ -1,20 +1,22 @@
|
|||||||
# naive-keypad
|
# naive-keypad
|
||||||
|
|
||||||
## Build the browser application
|
An interactive demonstration of a keypad with a quickly discoverable code.
|
||||||
|
|
||||||
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:
|
## Deploying
|
||||||
|
|
||||||
```sh
|
To deploy it on your web server, you need to copy those files/directories:
|
||||||
npm install
|
|
||||||
npm run build
|
|
||||||
```
|
|
||||||
|
|
||||||
Copy the contents of the `dist` directory to your web server, and there you go!
|
- `index.html`
|
||||||
|
- `src/`
|
||||||
|
|
||||||
## Changing the code
|
## Developing
|
||||||
|
|
||||||
You may during the build process override the code of the keypad:
|
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
|
```sh
|
||||||
VITE_KEYPAD_CODE=7894 npm run build
|
npm install
|
||||||
|
npm run dev # Run the Vite development server
|
||||||
|
npm run build # Build the application in the dist/ directory
|
||||||
```
|
```
|
||||||
|
Loading…
Reference in new issue