File tree Expand file tree Collapse file tree 5 files changed +11
-5
lines changed Expand file tree Collapse file tree 5 files changed +11
-5
lines changed Original file line number Diff line number Diff line change 5
5
bundles = %w( stompjs rx-stomp )
6
6
7
7
parts = bundles . map do |l |
8
- version = JSON . parse ( File . read ( "#{ ENV [ 'BASE' ] } /#{ l } /package.json" ) ) [ 'version' ]
8
+ version = JSON . parse ( File . read ( "consolidated /#{ l } /package.json" ) ) [ 'version' ]
9
9
"#{ l } @#{ version } "
10
10
end
11
11
Original file line number Diff line number Diff line change 1
1
#! /usr/bin/env bash
2
2
3
+ set -ex
4
+
3
5
# usually will receive from calling script, assume develop otherwise
4
6
export BRANCH=${BRANCH:- $1 }
5
7
export BRANCH=${BRANCH:- develop}
17
19
export MESSAGE=" These docs correspond to NPM released main line versions. Please see [dev docs](../develop/) for development versions."
18
20
fi
19
21
20
- APP_TITLE=` ./app-title.rb`
21
-
22
22
# Change to the Node application with Compodoc installed
23
23
cd " $BASE " /..
24
24
25
+ APP_TITLE=` ./app-title.rb`
26
+
25
27
# It will be used by Jekyll pages to show current versions
26
- ` dirname $0 ` /pkg-versions.rb > ../_data/versions/$BRANCH .json
28
+ . /pkg-versions.rb > ../_data/versions/$BRANCH .json
27
29
28
30
# Adjust the README depending on the branch
29
31
sed -e " 3i$MESSAGE \n" README-src.md > README.md
Original file line number Diff line number Diff line change 1
1
#! /usr/bin/env bash
2
2
3
+ set -ex
4
+
3
5
# by default assume master branch
4
6
export BRANCH=${1:- master}
5
7
Original file line number Diff line number Diff line change 1
1
#! /usr/bin/env bash
2
2
3
+ set -ex
4
+
3
5
# Generating locally, by default assume develop
4
6
export BRANCH=${1:- develop}
5
7
Original file line number Diff line number Diff line change 5
5
bundles = ENV [ 'BUNDLES' ]
6
6
7
7
versions = Hash [ ( bundles . split . map do |l |
8
- version = JSON . parse ( File . read ( "#{ ENV [ 'BASE' ] } /#{ l } /package.json" ) ) [ 'version' ]
8
+ version = JSON . parse ( File . read ( "consolidated /#{ l } /package.json" ) ) [ 'version' ]
9
9
[ l , version ]
10
10
end ) ]
11
11
You can’t perform that action at this time.
0 commit comments