Merge pull request #3 from nickm/package_json

added package.json, for consumption via npm
diff --git a/MANIFEST.in b/MANIFEST.in
index 25d6847..b015571 100644
--- a/MANIFEST.in
+++ b/MANIFEST.in
@@ -16,5 +16,7 @@
 include travis/*.sh
 
 prune action
+exclude index.js
+exclude package.json 
 
 global-exclude *.py[cod] __pycache__
diff --git a/action/build.sh b/action/build.sh
index 7845d86..ee3c6cc 100755
--- a/action/build.sh
+++ b/action/build.sh
@@ -1,3 +1,19 @@
+#
+# Copyright 2018 IBM Corporation
+#
+# Licensed under the Apache License, Version 2.0 (the "License");
+# you may not use this file except in compliance with the License.
+# You may obtain a copy of the License at
+#
+# http://www.apache.org/licenses/LICENSE-2.0
+#
+# Unless required by applicable law or agreed to in writing, software
+# distributed under the License is distributed on an "AS IS" BASIS,
+# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+# See the License for the specific language governing permissions and
+# limitations under the License.
+#
+
 #!/usr/bin/env bash
 
 PY_VERSION=3.6
diff --git a/action/clean.sh b/action/clean.sh
new file mode 100755
index 0000000..dde52b6
--- /dev/null
+++ b/action/clean.sh
@@ -0,0 +1,3 @@
+#!/usr/bin/env bash
+
+bx wsk action delete pycompose
diff --git a/action/deploy.sh b/action/deploy.sh
index 0daa70c..5107314 100755
--- a/action/deploy.sh
+++ b/action/deploy.sh
@@ -1,3 +1,24 @@
+#
+# Copyright 2018 IBM Corporation
+#
+# Licensed under the Apache License, Version 2.0 (the "License");
+# you may not use this file except in compliance with the License.
+# You may obtain a copy of the License at
+#
+# http://www.apache.org/licenses/LICENSE-2.0
+#
+# Unless required by applicable law or agreed to in writing, software
+# distributed under the License is distributed on an "AS IS" BASIS,
+# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+# See the License for the specific language governing permissions and
+# limitations under the License.
+#
+
 #!/usr/bin/env bash
 
+# directory of script
+DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )"
+ROOTDIR="$DIR/.."
+cd "${ROOTDIR}/action"
+
 bx wsk action update pycompose --kind python:3 pycompose.zip --main compose
diff --git a/action/test.sh b/action/test.sh
index 5a9fa3d..ae7fec8 100755
--- a/action/test.sh
+++ b/action/test.sh
@@ -1,6 +1,24 @@
+#
+# Copyright 2018 IBM Corporation
+#
+# Licensed under the Apache License, Version 2.0 (the "License");
+# you may not use this file except in compliance with the License.
+# You may obtain a copy of the License at
+#
+# http://www.apache.org/licenses/LICENSE-2.0
+#
+# Unless required by applicable law or agreed to in writing, software
+# distributed under the License is distributed on an "AS IS" BASIS,
+# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+# See the License for the specific language governing permissions and
+# limitations under the License.
+#
+
 #!/usr/bin/env bash
 
-bx wsk action invoke pycompose -p source "composer.sequence('echo', 'echo')" -p lower 0.4.0 -br | jq --raw-output .type | grep -q '^sequence$'
+bx wsk action invoke pycompose -p source "composer.sequence('echo', 'echo')" -p lower 0.4.0 -br \
+    | jq --raw-output .type \
+    | grep -q '^sequence$'
 
 if [ $? == 0 ]; then
     echo "ok"
diff --git a/index.js b/index.js
new file mode 100644
index 0000000..61e0836
--- /dev/null
+++ b/index.js
@@ -0,0 +1,23 @@
+/*
+ * Copyright 2018 IBM Corporation
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+const path = require('path')
+
+/** location of the pycompose.zip file */
+exports.zipPath = path.join(__dirname, 'action/pycompose.zip')
+
+/** OpenWhisk kind that pycompose depends on */
+exports.kind = 'python:3'
diff --git a/package.json b/package.json
new file mode 100644
index 0000000..1efb838
--- /dev/null
+++ b/package.json
@@ -0,0 +1,21 @@
+{
+  "name": "composer-python",
+  "version": "1.0.0",
+  "description": "[![Build Status](https://travis.ibm.com/villard/composer-python.svg?token=bc6xtkRixk96zbXuAu7U&branch=master)](https://travis.ibm.com/villard/composer-python) [![License](https://img.shields.io/badge/license-Apache%202.0-blue.svg)](https://opensource.org/licenses/Apache-2.0) [![Join Slack](https://img.shields.io/badge/join-slack-9B69A0.svg)](http://slack.openwhisk.org/)",
+  "main": "index.js",
+  "directories": {
+    "doc": "docs",
+    "test": "tests"
+  },
+  "scripts": {
+    "postinstall": "cd action && ./build.sh",
+    "test": "echo \"Error: no test specified\" && exit 1"
+  },
+  "repository": {
+    "type": "git",
+    "url": "git@github.ibm.com:nickm/composer-python.git"
+  },
+  "keywords": [],
+  "author": "",
+  "license": "Apache-2.0"
+}