[Pkg-javascript-commits] [vue.js] 02/02: also create esm
Paolo Greppi
paolog-guest at moszumanska.debian.org
Tue Jan 16 16:39:31 UTC 2018
This is an automated email from the git hooks/post-receive script.
paolog-guest pushed a commit to branch master
in repository vue.js.
commit 1bc1705e0155810daf69f5ff096887dc33eb3d3d
Author: Paolo Greppi <paolo.greppi at libpf.com>
Date: Tue Jan 16 16:51:03 2018 +0100
also create esm
---
debian/changelog | 2 +-
debian/libjs-vue.install | 2 +-
debian/node-vue.install | 3 +--
debian/rules | 3 ++-
debian/{webpack.config.js => webpack.esm.config.js} | 8 +++-----
debian/{webpack.config.js => webpack.umd.config.js} | 0
6 files changed, 8 insertions(+), 10 deletions(-)
diff --git a/debian/changelog b/debian/changelog
index 1218013..e1ee124 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -2,4 +2,4 @@ vue.js (2.5.13+dfsg-1) unstable; urgency=low
* Initial release (Closes: #871459)
- -- Paolo Greppi <paolo.greppi at libpf.com> Mon, 08 Jan 2018 08:21:34 +0100
+ -- Paolo Greppi <paolo.greppi at libpf.com> Tue, 16 Jan 2018 16:50:08 +0100
diff --git a/debian/libjs-vue.install b/debian/libjs-vue.install
index 4d20d5a..a2eebdd 100644
--- a/debian/libjs-vue.install
+++ b/debian/libjs-vue.install
@@ -1 +1 @@
-dist/* /usr/share/javascript/vue
+dist/vue.js /usr/share/javascript/vue/.
diff --git a/debian/node-vue.install b/debian/node-vue.install
index eaddfc9..0247115 100644
--- a/debian/node-vue.install
+++ b/debian/node-vue.install
@@ -1,3 +1,2 @@
-src usr/lib/nodejs/vue/
+dist/vue.esm.js usr/lib/nodejs/vue/index.js
package.json usr/lib/nodejs/vue/
-types usr/lib/nodejs/vue/
diff --git a/debian/rules b/debian/rules
index 17a6498..c9b0ee0 100755
--- a/debian/rules
+++ b/debian/rules
@@ -9,7 +9,8 @@
override_dh_auto_build:
dh_auto_build
- webpack --config debian/webpack.config.js
+ webpack --config debian/webpack.umd.config.js
+ webpack --config debian/webpack.esm.config.js
#override_dh_auto_test:
diff --git a/debian/webpack.config.js b/debian/webpack.esm.config.js
similarity index 80%
copy from debian/webpack.config.js
copy to debian/webpack.esm.config.js
index 9322509..c88f0b1 100644
--- a/debian/webpack.config.js
+++ b/debian/webpack.esm.config.js
@@ -3,7 +3,7 @@ var fs = require('fs');
var path = require('path');
var webpack = require('webpack');
var config = {
- target: 'web',
+ target: 'node',
entry: './src/platforms/web/entry-runtime-with-compiler.js',
resolve: {
modules: ['/usr/lib/nodejs', './src', './src/platforms'],
@@ -13,10 +13,8 @@ var config = {
},
output: {
path: path.resolve(__dirname, '../dist'),
- filename: 'vue.js',
- library: "Vue",
- libraryTarget: 'umd',
- umdNamedDefine: true
+ filename: 'vue.esm.js',
+ library: "Vue"
},
module: { rules: [ { use: [ 'babel-loader' ] } ] }
}
diff --git a/debian/webpack.config.js b/debian/webpack.umd.config.js
similarity index 100%
rename from debian/webpack.config.js
rename to debian/webpack.umd.config.js
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-javascript/vue.js.git
More information about the Pkg-javascript-commits
mailing list