Skip to content

Commit

Permalink
Updated the package builds to support umd, esm and common versions
Browse files Browse the repository at this point in the history
  • Loading branch information
benatespina committed May 23, 2018
1 parent e64d629 commit 1198996
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 5 deletions.
3 changes: 2 additions & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,9 @@
This changelog references the relevant changes done between versions.

To get the diff for a specific change, go to https://github.com/FriendsOfECMAScript/BenGorCookies/commit/XXX where XXX is the change hash
To get the diff between two versions, go to https://github.com/FriendsOfECMAScript/BenGorCookies/compare/v0.9.0...v0.10.0
To get the diff between two versions, go to https://github.com/FriendsOfECMAScript/BenGorCookies/compare/v0.9.0...v0.11.0

* 0.11.0
* 0.10.0
* Updated the package builds to support `umd`, `esm` and `common` versions.
* 0.9.0
Expand Down
9 changes: 5 additions & 4 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "bengor-cookies",
"version": "0.10.0",
"version": "0.11.0",
"license": "MIT",
"description": "Cookie warning banner that request user consent, European law compilant. Zero dependencies, fully customizable",
"keywords": [
Expand Down Expand Up @@ -32,9 +32,10 @@
"scripts": {
"test": "node_modules/.bin/jest",
"prebuild": "node_modules/.bin/rimraf dist && node_modules/.bin/mkdirp dist",
"build": "yarn prebuild && yarn cs && yarn common-bundle && yarn esm-bundle && yarn umd-bundle",
"common-bundle": "node_modules/.bin/babel --copy-files --out-dir dist/common src",
"esm-bundle": "cp -R src/ dist/esm",
"build": "yarn prebuild && yarn cs && yarn common-bundle && yarn esm-bundle && yarn umd-bundle && yarn sass-bundle",
"common-bundle": "node_modules/.bin/babel --copy-files --out-dir dist/common src/js",
"sass-bundle": "cp -R src/scss dist/scss",
"esm-bundle": "cp -R src/js/ dist/esm",
"umd-bundle": "node_modules/.bin/webpack -p && node_modules/.bin/rimraf dist/*ie9.j* && node_modules/.bin/rimraf dist/*modern.j*",
"cs": "npm run prettier && npm run eslint && npm run stylelint",
"prettier": "node_modules/.bin/prettier 'src/js/**/*.js' 'test/**/*.js' --write --single-quote --no-bracket-spacing --trailing-comma es5 --print-width 120",
Expand Down

0 comments on commit 1198996

Please sign in to comment.