Skip to content

Commit 230e3db

Browse files
committedSep 24, 2018
Publish an additionnal olcs npm package
Some build tools assume the name of the package is equal to the namespace and the source is directly at the root. The olcs package has these properties making it necessary.
1 parent 147bc5b commit 230e3db

File tree

2 files changed

+30
-6
lines changed

2 files changed

+30
-6
lines changed
 

‎RELEASE.md

+1-6
Original file line numberDiff line numberDiff line change
@@ -10,9 +10,4 @@ Each month, a new release is published in accordance to https://github.com/openl
1010
- Compile from scratch and run all tests:
1111
- `make dist serve`
1212
- check examples both in development and hosted modes
13-
- Add the release to github
14-
- mentioning in the description the OpenLayers and Cesium version we compiled with
15-
- adding the zip generated by `VERSION=ol-cesium-v`buildtools/get-version.sh version | cut -d. -f1-2` && cp -R dist/ $VERSION && zip -r $VERSION.zip $VERSION; rm -rf $VERSION`
16-
- Update npm by calling `npm publish`.
17-
- Update github.io examples by calling `buildtools/publish-website.sh`
18-
- Announce the release
13+
- Run buildtools/release.sh and follow instructions

‎buildtools/release.sh

+29
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
1+
#!/bin/sh -e
2+
3+
BUILD=.build/olcs_build
4+
5+
make dist
6+
7+
VERSION=ol-cesium-v`buildtools/get-version.sh version | cut -d. -f1-2`
8+
cp -R dist/ $VERSION && zip -r $VERSION.zip $VERSION; rm -rf $VERSION`
9+
10+
mkdir -p $BUILD
11+
cp -R src/olcs/* $BUILD
12+
cp ./css/olcs.css $BUILD
13+
cp package.json $BUILD
14+
sed -i 's/ol-cesium/olcs/g' $BUILD/package.json
15+
sed -i '/"main"/d' $BUILD/package.json
16+
17+
echo
18+
ls $BUILD
19+
head $BUILD/package.json
20+
21+
echo
22+
echo "Check everything is correct and publish to npm"
23+
echo "cd $BUILD"
24+
echo npm publish
25+
echo "cd ..; rm -rf $BUILD"
26+
echo "npm publish"
27+
echo buildtools/publish-website.sh
28+
echo
29+
echo "In addition, create the release on github and announce it"

0 commit comments

Comments
 (0)
Please sign in to comment.