-
Notifications
You must be signed in to change notification settings - Fork 20
/
Copy pathrollup.config.js
95 lines (92 loc) · 2.84 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
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
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",
"images/jpg/testbg.jpg",
"images/svg/dblarrow1.svg",
"images/svg/dblarrow2.svg",
"images/svg/edit.svg",
"images/svg/int.svg",
"images/svg/mgt.svg",
"images/svg/spd.svg",
"images/svg/uparrow1.svg",
"images/svg/uparrow2.svg",
"lang/de.json",
"lang/en.json",
"lang/es.json",
"lang/fr.json",
"lang/pt-BR.json",
"packs/system-macros.db",
"templates/actor/characterSheet.html",
"templates/actor/characterSheetLimited.html",
"templates/actor/communitySheet.html",
"templates/actor/communitySheetLimited.html",
"templates/actor/npcSheet.html",
"templates/actor/npcSheetLimited.html",
"templates/actor/partials/artifacts.html",
"templates/actor/partials/cyphers.html",
"templates/actor/partials/features.html",
"templates/actor/partials/oddities.html",
"templates/actor/partials/pcHeader.html",
"templates/actor/partials/powerShifts.html",
"templates/actor/partials/recursions.html",
"templates/actor/partials/weapons.html",
"templates/chat/automaticResult.html",
"templates/chat/items/ability.html",
"templates/chat/items/armor.html",
"templates/chat/items/artifact.html",
"templates/chat/items/cypher.html",
"templates/chat/items/equipment.html",
"templates/chat/items/oddity.html",
"templates/chat/items/powerShift.html",
"templates/chat/items/recursion.html",
"templates/chat/items/skill.html",
"templates/chat/items/weapon.html",
"templates/dialog/effort.html",
"templates/dialog/recovery.html",
"templates/dialog/spellUse.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/powerShiftSheet.html",
"templates/item/skillSheet.html",
"templates/item/weaponSheet.html",
"templates/item/recursionSheet.html",
"templates/scene/tokenConfig.html",
"templates/settings/features.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,
}),
],
}, ];