[Pkg-javascript-commits] [node-yamljs] 01/07: build with cake and webpack

Praveen Arimbrathodiyil praveen at moszumanska.debian.org
Fri Dec 29 20:00:46 UTC 2017


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

praveen pushed a commit to branch master
in repository node-yamljs.

commit 5ec5b7056d7615331dc8901aa837360d5455d5a4
Author: Pirate Praveen <praveen at debian.org>
Date:   Sat Dec 30 00:54:37 2017 +0530

    build with cake and webpack
---
 debian/rules             |  8 +++-----
 debian/webpack.config.js | 26 ++++++++++++++++++++++++++
 2 files changed, 29 insertions(+), 5 deletions(-)

diff --git a/debian/rules b/debian/rules
index 990ae5b..29f38fa 100755
--- a/debian/rules
+++ b/debian/rules
@@ -7,11 +7,9 @@
 %:
 	dh $@ --with nodejs
 
-#override_dh_auto_build:
-#	#mkdir dist
-#	dh_auto_build
-#	# Currently no need for produced binary file(s)
-#	$(RM) -r $(CURDIR)/debian/$(shell dh_listpackages)/usr/bin
+override_dh_auto_build:
+	cake.coffeescript build
+	webpack --config debian/webpack.config.js lib/Yaml.js dist/Yaml.js  --output-library=Yaml
 
 #override_dh_auto_test:
 
diff --git a/debian/webpack.config.js b/debian/webpack.config.js
new file mode 100644
index 0000000..f7b8f7f
--- /dev/null
+++ b/debian/webpack.config.js
@@ -0,0 +1,26 @@
+'use strict';
+
+var fs = require('fs');
+var path = require('path');
+var webpack = require('webpack');
+
+var config = {
+
+  target: 'web',
+  resolve: {
+    modules: ['/usr/lib/nodejs', '.'],
+  },
+  resolveLoader: {
+    modules: ['/usr/lib/nodejs'],
+  },
+  node: {
+    fs: 'empty'
+  },
+  output: {
+    libraryTarget: 'umd'
+  },
+  module: { rules: [ { use: [ 'babel-loader' ] } ] }
+}
+
+module.exports = config;
+

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



More information about the Pkg-javascript-commits mailing list