-
Notifications
You must be signed in to change notification settings - Fork 0
/
tt.config.js
51 lines (46 loc) · 986 Bytes
/
tt.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
const pkg = require("./package.json");
/** @type {import("token-transformer-cli").Config} */
const config = [
{
/**
* Output file information
*/
outputFile: {
/**
* Output file name
*/
name: "cli",
/**
* Output file path
*/
dir: "./build/cli",
/**
* Output file extension
*/
ext: "js",
},
/**
* Preset modules
* (=`preset` is a set of configurations that includes pre-processors and post-processors.)
*/
presets: [],
/**
* Token string
* (=Use when you want to input the token directly rather than entering a path in the tokenFile field)
*/
token: " ",
/**
* Template file path
*/
templateFile: "./build/cli/cli.js",
/**
* Post-processor modules
*/
postProcessors: [
(template) => {
return template.replace("<version>", pkg.version);
},
],
},
];
module.exports = config;