annotate src/nodejs/unit-http/package.json @ 1831:da356521859a

Node.js: used distinct placeholder for version in "package.json". This makes the "sed" instruction simpler and more portable, as the previous variant didn't work well on BSD systems due to the "\s" metacharacter. Thanks to Sergey A. Osokin <osa@FreeBSD.org.ru> for spotting this issue. Also, this should prevent accidentally creating a version 1.0.0 package.
author Valentin Bartenev <vbart@nginx.com>
date Thu, 25 Mar 2021 16:15:03 +0300
parents 9ac5b5f33ed9
children 7dccbd380eb1
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
802
fb9a6392d04a Added Node.js support.
Alexander Borisov <alexander.borisov@nginx.com>
parents:
diff changeset
1 {
fb9a6392d04a Added Node.js support.
Alexander Borisov <alexander.borisov@nginx.com>
parents:
diff changeset
2 "name": "unit-http",
1831
da356521859a Node.js: used distinct placeholder for version in "package.json".
Valentin Bartenev <vbart@nginx.com>
parents: 1132
diff changeset
3 "version": "%%VERSION%%",
802
fb9a6392d04a Added Node.js support.
Alexander Borisov <alexander.borisov@nginx.com>
parents:
diff changeset
4 "description": "HTTP module for NGINX Unit",
fb9a6392d04a Added Node.js support.
Alexander Borisov <alexander.borisov@nginx.com>
parents:
diff changeset
5 "main": "http.js",
fb9a6392d04a Added Node.js support.
Alexander Borisov <alexander.borisov@nginx.com>
parents:
diff changeset
6 "files": [
878
8867c1c7c2bf Node.js: added check for libunit version at compile time.
Alexander Borisov <alexander.borisov@nginx.com>
parents: 868
diff changeset
7 "unit.h",
8867c1c7c2bf Node.js: added check for libunit version at compile time.
Alexander Borisov <alexander.borisov@nginx.com>
parents: 868
diff changeset
8 "version.h",
802
fb9a6392d04a Added Node.js support.
Alexander Borisov <alexander.borisov@nginx.com>
parents:
diff changeset
9 "addon.cpp",
878
8867c1c7c2bf Node.js: added check for libunit version at compile time.
Alexander Borisov <alexander.borisov@nginx.com>
parents: 868
diff changeset
10 "unit.cpp",
8867c1c7c2bf Node.js: added check for libunit version at compile time.
Alexander Borisov <alexander.borisov@nginx.com>
parents: 868
diff changeset
11 "http.js",
802
fb9a6392d04a Added Node.js support.
Alexander Borisov <alexander.borisov@nginx.com>
parents:
diff changeset
12 "http_server.js",
1080
e38b21f9e940 Node.js: packaging new nxt_napi.h.
Max Romanov <max.romanov@nginx.com>
parents: 878
diff changeset
13 "nxt_napi.h",
802
fb9a6392d04a Added Node.js support.
Alexander Borisov <alexander.borisov@nginx.com>
parents:
diff changeset
14 "package.json",
fb9a6392d04a Added Node.js support.
Alexander Borisov <alexander.borisov@nginx.com>
parents:
diff changeset
15 "socket.js",
878
8867c1c7c2bf Node.js: added check for libunit version at compile time.
Alexander Borisov <alexander.borisov@nginx.com>
parents: 868
diff changeset
16 "binding.gyp",
1132
9ac5b5f33ed9 Node.js: introducing websocket support.
Max Romanov <max.romanov@nginx.com>
parents: 1080
diff changeset
17 "README.md",
9ac5b5f33ed9 Node.js: introducing websocket support.
Max Romanov <max.romanov@nginx.com>
parents: 1080
diff changeset
18 "websocket.js",
9ac5b5f33ed9 Node.js: introducing websocket support.
Max Romanov <max.romanov@nginx.com>
parents: 1080
diff changeset
19 "websocket_connection.js",
9ac5b5f33ed9 Node.js: introducing websocket support.
Max Romanov <max.romanov@nginx.com>
parents: 1080
diff changeset
20 "websocket_frame.js",
9ac5b5f33ed9 Node.js: introducing websocket support.
Max Romanov <max.romanov@nginx.com>
parents: 1080
diff changeset
21 "websocket_request.js",
9ac5b5f33ed9 Node.js: introducing websocket support.
Max Romanov <max.romanov@nginx.com>
parents: 1080
diff changeset
22 "websocket_router.js",
9ac5b5f33ed9 Node.js: introducing websocket support.
Max Romanov <max.romanov@nginx.com>
parents: 1080
diff changeset
23 "websocket_router_request.js",
9ac5b5f33ed9 Node.js: introducing websocket support.
Max Romanov <max.romanov@nginx.com>
parents: 1080
diff changeset
24 "websocket_server.js"
802
fb9a6392d04a Added Node.js support.
Alexander Borisov <alexander.borisov@nginx.com>
parents:
diff changeset
25 ],
fb9a6392d04a Added Node.js support.
Alexander Borisov <alexander.borisov@nginx.com>
parents:
diff changeset
26 "scripts": {
fb9a6392d04a Added Node.js support.
Alexander Borisov <alexander.borisov@nginx.com>
parents:
diff changeset
27 "clean": "node-gyp clean",
fb9a6392d04a Added Node.js support.
Alexander Borisov <alexander.borisov@nginx.com>
parents:
diff changeset
28 "configure": "node-gyp configure",
fb9a6392d04a Added Node.js support.
Alexander Borisov <alexander.borisov@nginx.com>
parents:
diff changeset
29 "build": "node-gyp build",
fb9a6392d04a Added Node.js support.
Alexander Borisov <alexander.borisov@nginx.com>
parents:
diff changeset
30 "install": "node-gyp configure build"
fb9a6392d04a Added Node.js support.
Alexander Borisov <alexander.borisov@nginx.com>
parents:
diff changeset
31 },
fb9a6392d04a Added Node.js support.
Alexander Borisov <alexander.borisov@nginx.com>
parents:
diff changeset
32 "author": "Alexander Borisov",
816
e92e58984512 Added ability to publish Node.js module.
Alexander Borisov <alexander.borisov@nginx.com>
parents: 802
diff changeset
33 "license": "Apache-2.0",
868
fd323ad9e24f Node.js: removed unused dependency.
Valentin Bartenev <vbart@nginx.com>
parents: 816
diff changeset
34 "gypfile": true
802
fb9a6392d04a Added Node.js support.
Alexander Borisov <alexander.borisov@nginx.com>
parents:
diff changeset
35 }