[Pkg-javascript-commits] [node-htmlescape] 11/12: Improve rules
Bastien Roucariès
rouca at moszumanska.debian.org
Sun Aug 20 13:48:43 UTC 2017
This is an automated email from the git hooks/post-receive script.
rouca pushed a commit to branch master
in repository node-htmlescape.
commit 14b128b61672dfef7c6739068a2539b53fa4d5c1
Author: Bastien ROUCARIÈS <roucaries.bastien at gmail.com>
Date: Thu Aug 17 23:27:29 2017 +0200
Improve rules
---
debian/control | 14 ++++++++++++--
debian/rules | 10 ++++++++--
2 files changed, 20 insertions(+), 4 deletions(-)
diff --git a/debian/control b/debian/control
index c11e4b4..a07206f 100644
--- a/debian/control
+++ b/debian/control
@@ -6,7 +6,9 @@ Uploaders: Bastien Roucariès <rouca at debian.org>
Build-Depends:
debhelper (>= 10)
, dh-buildinfo
+ , dpkg-dev (>= 1.17.14)
, nodejs
+ , node-tape (>= 4.6) <!nocheck>
Standards-Version: 4.0.1
Homepage: https://github.com/zertosh/htmlescape
Vcs-Git: https://anonscm.debian.org/git/pkg-javascript/node-htmlescape.git
@@ -17,7 +19,15 @@ Architecture: all
Depends:
${misc:Depends}
, nodejs
-Description: Properly escape JSON for usage as an object literal inside of a `<script>` tag
- FIX_ME long description
+Description: escape string for safe use in html
+ This module escape a string to be safe for use in html particularly
+ inside a script tag.
+ .
+ In programming languages escape sequences are used in character
+ literals and string literals, to express characters which are not
+ printable or clash with the syntax of characters or strings.
+ .
+ This module is a dependency of browserify, a tool that allows one
+ to write Node.js-style modules that compile for use in the browser.
.
Node.js is an event-based server-side JavaScript engine.
diff --git a/debian/rules b/debian/rules
index de57af0..a0b787b 100755
--- a/debian/rules
+++ b/debian/rules
@@ -9,7 +9,13 @@
#override_dh_auto_build:
-#override_dh_auto_test:
-
+override_dh_auto_test:
+ifeq (,$(filter nocheck,$(DEB_BUILD_OPTIONS) $(DEB_BUILD_PROFILES)))
+ tape test/*.js
+else
+ @echo '**********************************************************'
+ @echo 'Skip test suite '
+ @echo '**********************************************************'
+endif
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-javascript/node-htmlescape.git
More information about the Pkg-javascript-commits
mailing list