forked from wikimedia-gadgets/EasyWikiDev
-
Notifications
You must be signed in to change notification settings - Fork 0
/
build.js
24 lines (24 loc) · 902 Bytes
/
build.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
require('esbuild').build({
entryPoints: ['Discographies.ts'],
bundle: true,
outfile: 'script.js',
minify: true,
banner: {
js: `/**
* THIS IS A COMPILED TYPESCRIPT FILE
* SEE THE ACTUAL SOURCE CODE AT https://github.com/lectrician1/Discographies
*
* Name: discographies.js
* Description: Shows useful discography data and functions on
* discography items
* Note: Only meant to work on page refresh. This is because the
* lag time between creating a statement like "publication date"
* and it showing up in BlazeGraph and then by this script is high.
* Author: Lectrician1
* License: CC0
* Functions taken from:
* https://www.wikidata.org/wiki/User:Nikki/ExMusica.js
* https://www.wikidata.org/wiki/User:Magnus_Manske/duplicate_item.js
*/`
}
}).catch(() => process.exit(1))