From 8e7b92e9dbd45c0fbfd44a98bc40b8580a4fbaa1 Mon Sep 17 00:00:00 2001 From: Matthew Andrews Date: Wed, 29 Apr 2015 11:47:57 +0100 Subject: [PATCH 1/4] Add a main --- package.json | 1 + 1 file changed, 1 insertion(+) diff --git a/package.json b/package.json index cb41745c..0b12936f 100644 --- a/package.json +++ b/package.json @@ -5,6 +5,7 @@ "next-build-tools": "./bin/next-build-tools.js", "nbt": "./bin/next-build-tools.js" }, + "main": "main.js", "dependencies": { "aws-sdk": "^2.1.19", "commander": "^2.6.0", From d05bea8882df70e5b004a10d1c7056532319b4f6 Mon Sep 17 00:00:00 2001 From: Matthew Andrews Date: Wed, 29 Apr 2015 11:48:21 +0100 Subject: [PATCH 2/4] Add a main.js --- main.js | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) create mode 100644 main.js diff --git a/main.js b/main.js new file mode 100644 index 00000000..ed3a3e4b --- /dev/null +++ b/main.js @@ -0,0 +1,16 @@ +'use strict'; + +module.exports = { + build: require('./tasks/build'), + configure: require('./tasks/configure'), + deployHashedAssets: require('./tasks/deploy-hashed-assets'), + deployStatic: require('./tasks/deploy-static'), + deployVcl: require('./tasks/deploy-vcl'), + deploy: require('./tasks/deploy'), + destroy: require('./tasks/destroy'), + install: require('./tasks/install'), + nightwatch: require('./tasks/nightwatch'), + provision: require('./tasks/provision'), + purge: require('./tasks/purge'), + verify: require('./tasks/verify') +}; From d2e81990a0459e1cc15457b33020a7cb00652030 Mon Sep 17 00:00:00 2001 From: Matthew Andrews Date: Wed, 29 Apr 2015 11:49:52 +0100 Subject: [PATCH 3/4] Remove install --- main.js | 1 - 1 file changed, 1 deletion(-) diff --git a/main.js b/main.js index ed3a3e4b..e8ffef6e 100644 --- a/main.js +++ b/main.js @@ -8,7 +8,6 @@ module.exports = { deployVcl: require('./tasks/deploy-vcl'), deploy: require('./tasks/deploy'), destroy: require('./tasks/destroy'), - install: require('./tasks/install'), nightwatch: require('./tasks/nightwatch'), provision: require('./tasks/provision'), purge: require('./tasks/purge'), From b851becc630c5817099ee3c3e755cf97ad0e21f7 Mon Sep 17 00:00:00 2001 From: Matthew Andrews Date: Wed, 29 Apr 2015 11:51:24 +0100 Subject: [PATCH 4/4] Update docs --- README.md | 24 ++++++++++++------------ 1 file changed, 12 insertions(+), 12 deletions(-) diff --git a/README.md b/README.md index dcd0c3d4..9cea640c 100644 --- a/README.md +++ b/README.md @@ -5,18 +5,18 @@ Commands: - deploy [app] runs haikro deployment scripts with sensible defaults for Next projects - configure [options] [source] [target] downloads environment variables from next-config-vars and uploads them to the current app - provision [app] provisions a new instance of an application server - verify [options] internally calls origami-build-tools verify with some Next specific configuration (use only for APPLICATIONS. Front End components should continue to use origami-build-tools verify) - nightwatch [options] [test] runs nightwatch with some sensible defaults - deploy-hashed-assets deploys hashed asset files to S3 (if AWS keys set correctly) - build [options] build javascript and css - destroy [app] deletes the app from heroku - purge [options] [url] purges the given url from the Fastly cache. Requires a FASTLY_KEY environment variable set to your fastly api key - deploy-vcl [options] [folder] Deploys VCL in [folder] to the specified fastly service. Requires FASTLY_KEY env var - deploy-static [options] [destination] Deploys static to [destination] on S3 (where [destination] is a full S3 URL). Requires AWS_ACCESS and AWS_SECRET env vars - * + deploy [app] runs haikro deployment scripts with sensible defaults for Next projects + configure [options] [source] [target] downloads environment variables from next-config-vars and uploads them to the current app + provision [app] provisions a new instance of an application server + verify [options] internally calls origami-build-tools verify with some Next specific configuration (use only for APPLICATIONS. Front End components should continue to use origami-build-tools verify) + nightwatch [options] [test] runs nightwatch with some sensible defaults + deploy-hashed-assets deploys hashed asset files to S3 (if AWS keys set correctly) + build [options] build javascript and css + destroy [app] deletes the app from heroku + purge [options] [url] purges the given url from the Fastly cache. Requires a FASTLY_KEY environment variable set to your fastly api key + deploy-vcl [options] [folder] Deploys VCL in [folder] to the specified fastly service. Requires FASTLY_KEY env var + deploy-static [options] [otherSources...] Deploys static to [destination] on S3 (where [destination] is a full S3 URL). Requires AWS_ACCESS and AWS_SECRET env vars + * Options: