forked from sony/cdp-lib
-
Notifications
You must be signed in to change notification settings - Fork 0
/
project.config.js
61 lines (49 loc) · 1.07 KB
/
project.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
'use strict';
const path = require('path');
const pkg = require('./package.json');
const target = {
type: 'library',
es: 'es2015',
module: 'commonjs',
env: 'node',
};
const dir = {
src: 'src',
pkg: 'dist',
built: 'built',
doc: 'docs',
task: 'tasks',
test: 'tests',
types: '@types',
temp: '.temp',
};
const main = {
namespace: 'cdp',
basename: 'cdp-lib',
bundle_d_ts: 'index.d.ts',
};
const built_cleanee = {
ts: ['**/*.js', '**/*.d.ts', '**/*.map'],
};
const d_ts_bundle = {
name: pkg.name,
main: path.join(dir.built, main.basename + '.d.ts'),
baseDir: dir.built,
out: path.join('..', dir.pkg, dir.types, pkg.name, main.bundle_d_ts),
externals: false,
verbose: false,
};
const banner = {
fileName: 'BANNER',
d_ts_desc: '\n * This file is generated by the CDP package build process.',
};
// project configuration
module.exports = {
target: target,
pkg: pkg,
dir: dir,
main: main,
built_cleanee: built_cleanee,
dts_bundle: d_ts_bundle,
banner: banner,
};