-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathrollup.config.js
34 lines (34 loc) · 897 Bytes
/
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
import typescript from 'rollup-plugin-typescript2';
import copy from 'rollup-plugin-copy';
import pkg from './package.json'
import resolve from "@rollup/plugin-node-resolve";
import commonjs from "@rollup/plugin-commonjs";
export default [{
input: 'src/cordova/index.ts',
output: [{
file: 'dist/cordova-shell.js',
format: 'umd',
sourcemap: true,
name : 'shell',
intro : 'console.log("cordova-shell.js v' + pkg.version + '")'
}],
plugins: [
typescript(),
resolve({browser:true}),
commonjs()
]
}, {
input: 'src/node/index.ts',
output: [{
file: 'dist/node-shell.js',
format: 'umd',
sourcemap: true,
name : 'shell',
intro : 'console.log("node-shell.js v' + pkg.version + '")'
}],
plugins: [
typescript(),
resolve(),
commonjs()
]
}];