From 119899607e92112959cdafabea2f1616f86d80a7 Mon Sep 17 00:00:00 2001 From: benatespina Date: Wed, 23 May 2018 17:39:13 +0200 Subject: [PATCH] Updated the package builds to support umd, esm and common versions --- CHANGELOG.md | 3 ++- package.json | 9 +++++---- 2 files changed, 7 insertions(+), 5 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index b02f179..9192104 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -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 diff --git a/package.json b/package.json index 3a9ca09..16543dd 100644 --- a/package.json +++ b/package.json @@ -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": [ @@ -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",