-
Notifications
You must be signed in to change notification settings - Fork 0
/
rollup-config-common.js
42 lines (33 loc) · 1.05 KB
/
rollup-config-common.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
import resolve from "@rollup/plugin-node-resolve";
import cleanup from "rollup-plugin-cleanup";
// ----------------------------------------------------------------------------
const version = "0.10.0";
const moduleName = "creative-coding-core";
const umdName = "CreativeCodingCore";
const year = "2019-2020";
const description = `* Utility library that might be useful for creative coding.`;
const bannerComment = `/**
* ${moduleName}
*
${description}
* GitHub repository: {@link https://github.com/fal-works/${moduleName}}
*
* @module ${moduleName}
* @copyright ${year} FAL
* @author FAL <contact@fal-works.com>
* @license MIT
* @version ${version}
*/
`;
const distributionDirectory = "lib";
// ----------------------------------------------------------------------------
export { distributionDirectory, moduleName, umdName, bannerComment };
export const input = `out/${moduleName}.js`;
export const createPlugins = () => [
resolve(),
cleanup({
comments: /^\*\*/, // preserve jsdoc comments
sourcemap: false,
extensions: ["js"],
}),
];