mirror of
https://github.com/joelwmale/webhook-action.git
synced 2024-11-25 17:06:52 +01:00
1ada95e04a
- Convert project to Javascript/Typescript - Allow custom headers to be passed in (optional) - Allow body to be optional
32 lines
692 B
JavaScript
32 lines
692 B
JavaScript
import resolve from 'rollup-plugin-node-resolve';
|
|
import babel from 'rollup-plugin-babel';
|
|
const packageJson = require('./package.json');
|
|
|
|
export default {
|
|
entry : "dist/esnext/index.js",
|
|
format : "umd",
|
|
moduleName : "URI",
|
|
plugins: [
|
|
resolve({
|
|
module: true,
|
|
jsnext: true,
|
|
preferBuiltins: false
|
|
}),
|
|
|
|
babel({
|
|
"presets": [
|
|
["latest", {
|
|
"es2015": {
|
|
"modules": false
|
|
}
|
|
}]
|
|
],
|
|
"plugins": ["external-helpers"],
|
|
"externalHelpers": false
|
|
}
|
|
)
|
|
],
|
|
dest : "dist/es5/uri.all.js",
|
|
sourceMap: true,
|
|
banner: "/** @license URI.js v" + packageJson.version + " (c) 2011 Gary Court. License: http://github.com/garycourt/uri-js */"
|
|
}
|