2019-03-03 16:04:24 +01:00
|
|
|
import babel from "rollup-plugin-babel";
|
|
|
|
import resolve from "rollup-plugin-node-resolve";
|
|
|
|
import json from "rollup-plugin-json";
|
|
|
|
import minify from "rollup-plugin-babel-minify";
|
|
|
|
import { name, version, description, author, license } from "./package.json";
|
|
|
|
|
|
|
|
export default {
|
|
|
|
input: "src/index.js",
|
|
|
|
plugins: [
|
|
|
|
resolve({ browser: true }),
|
|
|
|
json(),
|
|
|
|
babel({ exclude: "node_modules/**" }),
|
|
|
|
minify({
|
|
|
|
comments: false,
|
|
|
|
sourceMap: true,
|
|
|
|
banner: `/**\n * ${name} | v${version}\n * ${description}\n * (c) ${new Date().getFullYear()} ${author}\n * @license ${license}\n */`
|
|
|
|
})
|
|
|
|
],
|
2019-03-24 14:38:43 +01:00
|
|
|
external: ["freesewing", "@freesewing/brian", "@freesewing/plugin-bundle"],
|
2019-03-03 16:04:24 +01:00
|
|
|
output: {
|
|
|
|
globals: {
|
|
|
|
freesewing: "freesewing",
|
2019-03-24 14:38:43 +01:00
|
|
|
"@freesewing/brian": "freesewing.patterns.brian",
|
2019-03-03 16:04:24 +01:00
|
|
|
"@freesewing/plugin-bundle": "freesewing.plugins.bundle"
|
|
|
|
}
|
|
|
|
}
|
|
|
|
};
|