[Pkg-javascript-commits] [acorn] 02/02: skip building with webpack

Praveen Arimbrathodiyil praveen at moszumanska.debian.org
Mon Oct 9 07:53:00 UTC 2017


This is an automated email from the git hooks/post-receive script.

praveen pushed a commit to branch babel
in repository acorn.

commit 488085cea5c426e7b53fd5160185c0cdf144616d
Author: Pirate Praveen <praveen at debian.org>
Date:   Mon Oct 9 13:21:21 2017 +0530

    skip building with webpack
---
 debian/control           |  7 +++----
 debian/rules             |  2 ++
 debian/webpack.config.js | 18 ++++++++++++++++++
 3 files changed, 23 insertions(+), 4 deletions(-)

diff --git a/debian/control b/debian/control
index 1f4b080..b8d5cf2 100644
--- a/debian/control
+++ b/debian/control
@@ -1,15 +1,14 @@
 Source: acorn
 Maintainer: Debian Javascript Maintainers <pkg-javascript-devel at lists.alioth.debian.org>
 Uploaders: Julien Puydt <julien.puydt at laposte.net>
-Section: web
+Section: javascript
 Priority: extra
 Build-Depends: debhelper (>= 10),
-	       dpkg-dev (>= 1.17.14),
                docbook2x <!nodoc>,
-               node-ast-types,
                node-babel-cli,
                node-babel-preset-es2015,
-               node-graceful-fs,
+#               webpack,
+#               node-babel-loader,
                nodejs (>= 6)
 Standards-Version: 4.0.1
 Vcs-Browser: https://anonscm.debian.org/cgit/pkg-javascript/acorn.git
diff --git a/debian/rules b/debian/rules
index 45f8072..449d5b2 100755
--- a/debian/rules
+++ b/debian/rules
@@ -6,6 +6,8 @@
 
 override_dh_auto_build:
 	babeljs src -d lib
+# TODO: investigate segfault with acorn
+#	webpack --config debian/webpack.config.js lib/index.js dist/acorn.js --target=web --output-library=acorn --output-library-target=umd --module-bind 'js=babel-loader'
 
 override_dh_auto_clean:
 	rm -rf lib
diff --git a/debian/webpack.config.js b/debian/webpack.config.js
new file mode 100644
index 0000000..1f62b0e
--- /dev/null
+++ b/debian/webpack.config.js
@@ -0,0 +1,18 @@
+'use strict';
+
+var fs = require('fs');
+var path = require('path');
+var webpack = require('webpack');
+
+var config = {
+
+  resolve: {
+    modules: ['/usr/lib/nodejs'],
+  },
+
+  resolveLoader: {
+    modules: ['/usr/lib/nodejs'],
+  }
+}
+
+module.exports = config;

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-javascript/acorn.git



More information about the Pkg-javascript-commits mailing list