Skip to content

Instantly share code, notes, and snippets.

@mnicole
Created July 28, 2017 04:33
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save mnicole/882f1a99cbfeabced8c1f985ab32d758 to your computer and use it in GitHub Desktop.
Save mnicole/882f1a99cbfeabced8c1f985ab32d758 to your computer and use it in GitHub Desktop.
component lib package.json
“module”: “dist-es6/index”,
“prebuild”: “rimraf dist dist-es6”, // removes the /dist-es6 folder before building
“build”: “babel components — out-dir dist-es6 — source-maps inline”, // builds everything in /components/index.js to /dist-es6
“postinstall”: “postinstall-build — only-as-dependency dist”
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment