Skip to content

Commit 999da5d

Browse files
author
Adam Fanello
committed
Fix-up for publish
- Added check command to make.sh - Added documentation about make.sh into README. - Updated version in lambda-utils/package-lock.json
1 parent 47a0bcc commit 999da5d

File tree

3 files changed

+16
-3
lines changed

3 files changed

+16
-3
lines changed

Diff for: README.md

+10
Original file line numberDiff line numberDiff line change
@@ -7,3 +7,13 @@ as a set of tools for developing AWS serverless applications in Javascript and T
77
Each directory contains another NPM project and is independently published.
88
See the docs directory for details of each project, or find it published [online](https://docs.onica.com/projects/sailplane).
99

10+
# make.sh
11+
12+
Use the make.sh script to build all of the projects in an order that resolves the dependencies between them.
13+
```
14+
$ ./make.sh clean # delete all node_modules directories
15+
$ ./make.sh build # npm install, test, and build all packages
16+
$ ./make.sh check # check what packages need to be published
17+
$ ./make.sh publish # npm publish packages with new version numbers (must have bump versions first and have permission)
18+
$ ./make.sh all # do clean, build, & publish
19+
```

Diff for: lambda-utils/package-lock.json

+1-1
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Diff for: make.sh

+5-2
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22
# Requires one command:
33
# - "clean" - delete all node_modules
44
# - "build" - npm install, test, and build all packages
5+
# - "check" - check what packages need to be published
56
# - "publish" - npm publish packages with new version numbers
67
# - "all" - do clean, build, & publish
78
COMMAND=$1
@@ -44,7 +45,7 @@ if [[ $COMMAND == build || $COMMAND == all ]]; then
4445
fi
4546
fi
4647

47-
if [[ $COMMAND == publish || $COMMAND == all ]]; then
48+
if [[ $COMMAND == check || $COMMAND == publish || $COMMAND == all ]]; then
4849
for DIR in $PROJECTS
4950
do
5051
pushd $DIR || exit $?
@@ -54,7 +55,9 @@ if [[ $COMMAND == publish || $COMMAND == all ]]; then
5455
echo
5556
echo "***** Publish: ${NAME}@${VER}"
5657
echo
57-
npm publish || exit $?
58+
if [[ $COMMAND != check ]]; then
59+
npm publish || exit $?
60+
fi
5861
else
5962
echo
6063
echo "***** Already Exists: ${NAME}@${VER}"

0 commit comments

Comments
 (0)