[Pkg-javascript-commits] [node-prelude-ls] 04/15: use system libs and npm modules

Praveen Arimbrathodiyil praveen at moszumanska.debian.org
Wed Oct 12 10:29:18 UTC 2016


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

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

commit 76e3013e8f165978c9b6ee3390e85b365e7b5a5a
Author: Praveen Arimbrathodiyil <praveen at debian.org>
Date:   Wed Oct 12 12:34:02 2016 +0530

    use system libs and npm modules
---
 debian/patches/install_node_modules.patch | 24 ++++++++++++++++++++++++
 debian/patches/relax-browserify.patch     | 11 +++++++++++
 debian/patches/series                     |  3 +++
 debian/patches/use-system-libs.patch      | 17 +++++++++++++++++
 4 files changed, 55 insertions(+)

diff --git a/debian/patches/install_node_modules.patch b/debian/patches/install_node_modules.patch
new file mode 100644
index 0000000..75b745d
--- /dev/null
+++ b/debian/patches/install_node_modules.patch
@@ -0,0 +1,24 @@
+--- a/Makefile
++++ b/Makefile
+@@ -14,6 +14,7 @@
+ 	mkdir -p lib/
+ 
+ lib/%.js: src/%.ls lib
++	npm install
+ 	$(LSC) --output lib --bare --compile "$<"
+ 
+ browser:
+@@ -49,8 +50,8 @@
+ 	wc --lines src/*
+ 
+ clean:
+-	rm -f ./*.js
+-	rm -rf lib
+-	rm -rf browser
+-	rm -rf coverage
+-	rm -f package.json
++#	rm -f ./*.js
++#	rm -rf lib
++#	rm -rf browser
++#	rm -rf coverage
++#	rm -f package.json
diff --git a/debian/patches/relax-browserify.patch b/debian/patches/relax-browserify.patch
new file mode 100644
index 0000000..793bc9e
--- /dev/null
+++ b/debian/patches/relax-browserify.patch
@@ -0,0 +1,11 @@
+--- a/package.json
++++ b/package.json
+@@ -46,7 +46,7 @@
+     "uglify-js": "~2.4.12",
+     "mocha": "~2.2.4",
+     "istanbul": "~0.2.4",
+-    "browserify": "~3.24.13",
++    "browserify": "^3.24.13",
+     "sinon": "~1.10.2"
+   }
+ }
diff --git a/debian/patches/series b/debian/patches/series
new file mode 100644
index 0000000..a020f7b
--- /dev/null
+++ b/debian/patches/series
@@ -0,0 +1,3 @@
+install_node_modules.patch
+relax-browserify.patch
+use-system-libs.patch
diff --git a/debian/patches/use-system-libs.patch b/debian/patches/use-system-libs.patch
new file mode 100644
index 0000000..523a678
--- /dev/null
+++ b/debian/patches/use-system-libs.patch
@@ -0,0 +1,17 @@
+--- a/Makefile
++++ b/Makefile
+@@ -2,11 +2,11 @@
+ 
+ SRC = $(shell find src -name "*.ls" -type f | sort)
+ LIB = $(SRC:src/%.ls=lib/%.js)
+-LS = node_modules/livescript
+-LSC = node_modules/.bin/lsc
++LS = /usr/lib/nodejs/livescript
++LSC = /usr/bin/lsc
+ BROWSERIFY = node_modules/.bin/browserify
+ UGLIFYJS = node_modules/.bin/uglifyjs
+-MOCHA = node_modules/.bin/mocha
++MOCHA = /usr/bin/mocha
+ MOCHA2 = node_modules/.bin/_mocha
+ ISTANBUL = node_modules/.bin/istanbul
+ 

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



More information about the Pkg-javascript-commits mailing list