forked from SolarBear/Numenera-FoundryVTT
-
Notifications
You must be signed in to change notification settings - Fork 0
/
rollup.config.js
63 lines (60 loc) · 1.73 KB
/
rollup.config.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
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
import scss from 'rollup-plugin-scss';
import { terser } from 'rollup-plugin-terser';
import copy from 'rollup-plugin-copy2';
import zip from 'rollup-plugin-zip';
const releaseBuild = true;
const destinationDir = 'dist';
const toBundle = [
'template.json',
'system.json',
'numenera.css',
"fonts/ogirema.ttf",
"fonts/source.txt",
"lang/en.json",
"lang/fr.json",
"lang/pt-BR.json",
"lib/dragula/dragula.min.css",
"lib/dragula/dragula.min.js",
"templates/actor/characterSheet.html",
"templates/actor/characterSheetStrange.html",
"templates/actor/communitySheet.html",
"templates/actor/npcSheet.html",
"templates/actor/partials/artifacts.html",
"templates/actor/partials/cyphers.html",
"templates/actor/partials/oddities.html",
"templates/dialog/recovery.html",
"templates/hud/tokenHUD.html",
"templates/item/abilitySheet.html",
"templates/item/armorSheet.html",
"templates/item/artifactSheet.html",
"templates/item/cypherSheet.html",
"templates/item/equipmentSheet.html",
"templates/item/odditySheet.html",
"templates/item/skillSheet.html",
"templates/item/weaponSheet.html",
"templates/item/recursionSheet.html",
"templates/scene/tokenConfig.html",
"LICENSE"
];
export default [{
input: 'numenera.js',
output: {
dir: destinationDir,
format: 'umd',
},
plugins: [
terser({
compress: releaseBuild ? {} : false,
}),
scss({
failOnError: true,
output: true,
}),
copy({
assets: toBundle,
}),
zip({
dir: destinationDir,
}),
],
}, ];