generated from Blackprint/template-js
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathblackprint.config.js
54 lines (43 loc) · 1.8 KB
/
blackprint.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
module.exports = {
// Your unique package name, will be the prefix on the Blackprint editor
name: "Discord",
description: "Blackprint nodes for Discord.js",
// If this set to true, the compiler will skip this config/module
disabled: false,
// Uncomment this if you want to copy /dist/... files to current folder
// Especially if you want to publish it to NPM Registry
hardlinkTo: "./dist",
// Unique prefix for .html or .sf template
// Please use format 'BPIC/LibraryName'
templatePrefix: "BPIC/Discord",
// Optional: Add header to every combined file
header: "/* MIT Licensed */",
// Optional: Extract registerNode's JSDocs
bpDocs: '@cwd/dist/nodes-discord.docs.json',
// (Required)
// The .js file probably can be imported for non-browser too
// Maybe you want to write Node.js compatible node on ".js"
// and browser compatible node on ".sf" file extension
js:{
file:'@cwd/dist/nodes-discord.mjs', // @cwd = directory where you start the Node.js
// We're not using `await imports.task()` so let's just use `mjs`
wrapped: 'mjs', // Wrap the entire .js to .mjs
combine:[ // Relative to this config's directory
'src/_init.js', // Rule order/index may have different priority
'src/SlashCommand/Autocomplete/*.js', // Rule order/index may have different priority
'src/**/*.js',
],
},
// (Optional)
// This extension can contain html, scss, and js
// But only use this if you only develop for browser API
sf:{
file:'@cwd/dist/nodes-discord.sf', // will have sf.css and sf.mjs
// Use `async-mjs` if we want to use `await imports.task()` to avoid waiting this module
wrapped: 'async-mjs', // Wrap the entire .js in async IIFE to .mjs file
combine:[ // Relative to this config's directory
'src/_init.sf', // Rule order/index may have different priority
'src/**/*.sf',
],
}
}