diff --git a/Dockerfile b/Dockerfile index 1cc8d15..014c71a 100644 --- a/Dockerfile +++ b/Dockerfile @@ -5,19 +5,18 @@ FROM arm64v8/node:23.6.1-alpine3.21 AS builder WORKDIR /usr/voka COPY package.json . +COPY develop.sh . RUN <Title +

Hello world3

diff --git a/develop.sh b/develop.sh new file mode 100644 index 0000000..319198b --- /dev/null +++ b/develop.sh @@ -0,0 +1,7 @@ +#!/bin/bash + +# Start nodemon +nodemon --watch src -e ts --exec npm run build & + +# Start lite-server +lite-server -c configs/lite-server-config.json \ No newline at end of file diff --git a/src/main.ts b/src/main.ts index a881bf5..1984904 100644 --- a/src/main.ts +++ b/src/main.ts @@ -1,6 +1,5 @@ import videojs from 'video.js'; -// Initialize the Video.js player const player = videojs('my-video', { controls: true, autoplay: false, @@ -8,5 +7,5 @@ const player = videojs('my-video', { }); player.ready(() => { - console.log('Your Video.js player is ready!'); + console.log('Your Video.js player is ready?!!'); }); \ No newline at end of file diff --git a/tsconfig.json b/tsconfig.json index 74350fe..8e36ffb 100644 --- a/tsconfig.json +++ b/tsconfig.json @@ -17,7 +17,7 @@ // "declarationMap": true, /* Generates a sourcemap for each corresponding '.d.ts' file. */ "sourceMap": true, /* Generates corresponding '.map' file. */ // "outFile": "./", /* Concatenate and emit output to single file. */ - "outDir": "./distribution/", /* Redirect output structure to the directory. */ + "outDir": "./demo/distribution/", /* Redirect output structure to the directory. */ "rootDir": "./src/", /* Specify the root directory of input files. Use to control the output directory structure with --outDir. */ "resolveJsonModule": true, // "composite": true, /* Enable project compilation */ @@ -84,7 +84,6 @@ "exclude": [ "./node_modules/", "./vendors/", - "./distribution/", "./demo/" ] } \ No newline at end of file diff --git a/tsup.config.ts b/tsup.config.ts index 8091a52..af9afc2 100644 --- a/tsup.config.ts +++ b/tsup.config.ts @@ -23,7 +23,7 @@ export default defineConfig((options) => { vokaPlayer: 'src/main.ts' }, format: ['iife'], - outDir: 'distribution', + outDir: 'demo/distribution', dts: false, splitting: false, sourcemap: isDev,