-
Notifications
You must be signed in to change notification settings - Fork 11
/
Copy pathHOWTO-RELEASE.txt
76 lines (58 loc) · 2.09 KB
/
HOWTO-RELEASE.txt
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
js packages needed (npm -i -g ... to install in ~/.local)
jshint
mocha
minify
jsdoc
Update change log in doc/GeographicLib.md.
Build with
cmake -D BUILD_DOCUMENTATION=ON -D CMAKE_INSTALL_PREFIX=/tmp/js -B BUILD -S .
cd BUILD
make all # packages up node packages
make lint
make test
make install
This creates local modules geographiclib + geographiclib-dms in
BUILD/node_modules
and packages
BUILD/geographiclib-${PROJECT_FULLVERSION}.tgz
BUILD/geographiclib-dms-${PROJECT_FULLVERSION}.tgz
installed modules in
${CMAKE_INSTALL_PREFIX}/${MODDIR}
Options for make
CMAKE_INSTALL_PREFIX head of install tree (default /usr/local)
MODDIR where to install modules (default lib/node_modules)
BUILD_DOCUMENTATION build documentation (default OFF)
Other cmake targets
sanitize (hygiene on source files)
stage-doc, deploy-doc (move documentation to staging, sourceforge)
stage-dist, deploy-dist (move distribution to staging, sourceforge)
stage-scripts, deploy-scripts (move sample scripts to staging, sourceforge)
Deployment to npmjs.org
npm login
npm publish BUILD/geographiclib-geodesic-${PROJECT_FULLVERSION}.tgz
npm publish BUILD/geographiclib-dms-${PROJECT_FULLVERSION}.tgz
N.B. node doesn't look in /usr/local/lib/node_modules by default, so
if using globally installed package, invoke node with
NODE_PATH=/usr/local/lib/node_modules node
To debug path for node
NODE_DEBUG=module node
To set path for node
To retrieve a tarball from npm use, e.g.,
wget `npm view geographiclib dist.tarball`
Delete alpha/beta tgz files from distrib-JavaScript
Reset doc link for documentation.
TODO: add version number + links to files in scripts
Download scripts from
https://cdn.jsdelivr.com/
<script
type="text/javascript"
src="https://cdn.jsdelivr.net/npm/geographiclib-geodesic@2.0.0/geographiclib-geodesic.min.js"
integrity="sha256-Bl9cW7iYkSCZMBuqP8LpqdY4evFbANIiA1TVuPoQbZ0="
crossorigin="anonymous"
></script>
Get sha256 checksums with
for f in node_modules/geographiclib-*/geographiclib-*.min.js; do
echo $f
openssl dgst -sha256 -binary $f | openssl base64 -A
echo
done