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: diff --git a/main.js b/main.js new file mode 100644 index 00000000..e8ffef6e --- /dev/null +++ b/main.js @@ -0,0 +1,15 @@ +'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'), + nightwatch: require('./tasks/nightwatch'), + provision: require('./tasks/provision'), + purge: require('./tasks/purge'), + verify: require('./tasks/verify') +}; 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",