From 087a64c17df686840aea761c2388611fb57e6bd3 Mon Sep 17 00:00:00 2001 From: Khaled Garbaya Date: Thu, 22 Jun 2017 11:31:51 +0200 Subject: [PATCH] fix(es6-modules): Add version to dist (#165) --- .babelrc | 4 +--- .gitignore | 2 ++ package.json | 2 +- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/.babelrc b/.babelrc index 10947028d..ee68c3541 100644 --- a/.babelrc +++ b/.babelrc @@ -3,9 +3,8 @@ "webpack": { "presets": [ ["env", { - "debug": true, "targets": { - "node": 4.7, + "node": "4.7", "browsers": [ "last 3 versions", "ie >= 11" @@ -18,7 +17,6 @@ "test": { "presets": [ ["env", { - "debug": true, "targets": { "node": 4.7, "browsers": [ diff --git a/.gitignore b/.gitignore index e4bc13c89..c0103de7d 100644 --- a/.gitignore +++ b/.gitignore @@ -155,3 +155,5 @@ $RECYCLE.BIN/ *.patch # End of https://www.gitignore.io/api/node,windows,osx,linux,vim +yarn.lock +package-lock.json diff --git a/package.json b/package.json index d3bab816e..f81f0890d 100644 --- a/package.json +++ b/package.json @@ -20,7 +20,7 @@ "build:ci": "npm run vendor:version && npm run build:standalone && npm run build:modules", "build:standalone": "BABEL_ENV=webpack webpack && BABEL_ENV=webpack NODE_ENV=production webpack", "build:standalone:log": "BABEL_ENV=webpack npm run build && BABEL_ENV=webpack NODE_ENV=production webpack --json --profile > webpack-build-log.json", - "build:modules": "BABEL_ENV=webpack babel lib -d dist/es6-modules", + "build:modules": "BABEL_ENV=webpack babel lib -d dist/es6-modules && cp ./version.js ./dist/version.js", "docs:build": "jsdoc -c jsdoc.json", "docs:dev": "npm run build && npm run docs:build", "docs:watch": "nodemon --exec npm run docs:dev -w lib",