Skip to content

Commit

Permalink
add banner to test client
Browse files Browse the repository at this point in the history
  • Loading branch information
paul90 committed Sep 11, 2024
1 parent 6cded6a commit f9caad5
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 1 deletion.
2 changes: 1 addition & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -13,4 +13,4 @@ npm-debug.log
client/client.js
client/client.js.map
client/test/testclient.js
client/test/testclient.map
client/test/testclient.js.map
9 changes: 9 additions & 0 deletions scripts/build-testclient.mjs
Original file line number Diff line number Diff line change
@@ -1,8 +1,17 @@
import * as esbuild from 'esbuild'
import fs from 'node:fs/promises'
import packJSON from "../package.json" with { type: "json"};

const version = packJSON.version
const now = new Date()

let results = await esbuild.build({
entryPoints: ['testclient.js'],
bundle: true,
banner: {
js: `/* wiki-client (test) - ${version} - ${now.toUTCString()} */`},
minify: true,
sourcemap: true,
logLevel: 'info',
outfile: 'client/test/testclient.js'
})

0 comments on commit f9caad5

Please sign in to comment.