Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Rollup #5

Draft
wants to merge 5 commits into
base: master
Choose a base branch
from
Draft
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
feat: rollup config
  • Loading branch information
aminya committed Aug 5, 2020
commit 0fe48470f06b579e1974c7d2e14d43d7a4b891b5
4 changes: 4 additions & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,10 @@
"repository": "https://github.com/atom-ide-community/babel",
"license": "MIT",
"scripts": {
"clean": "shx rm -rf dist",
"dev": "npm run clean && cross-env NODE_ENV=development cross-env BABEL_ENV=production rollup -c -w",
"build": "npm run clean && cross-env NODE_ENV=production cross-env BABEL_ENV=production rollup -c ",
"prepare": "npm run build",
"bump": "ncu -u"
},
"dependencies": {
Expand Down
18 changes: 18 additions & 0 deletions rollup.config.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
import { createPlugins } from "rollup-plugin-atomic"

const plugins = createPlugins(["js", "json"])

export default [
{
input: "index.js",
output: [
{
dir: "dist",
format: "cjs",
sourcemap: true,
},
],
external: [],
plugins: plugins,
},
]