1 | # Tasks
|
2 |
|
3 | ## Task List
|
4 |
|
5 | Get a full list of tasks by running:
|
6 |
|
7 | **condensation-docker** - `condensation list-tasks`
|
8 |
|
9 | **nodejs** - `npm run gulp -T`
|
10 |
|
11 | By default all tasks are prefixed with `condensation:`. This can be
|
12 | changed with the `taskPrefix` config option.
|
13 |
|
14 |
|
15 | ## Default
|
16 |
|
17 | The `default` task is an alias for `build`. It will prepare all files
|
18 | for deployment to s3. Templates and assets are written to the configured
|
19 | `dist` directory.
|
20 |
|
21 | **condensation-docker** - `condensation run build`
|
22 |
|
23 | **nodejs** - `npm run gulp`
|
24 |
|
25 |
|
26 | ## s3:list
|
27 |
|
28 | Will list all the configured s3 buckets and module corresponding ID.
|
29 |
|
30 | The IDs can be used to deploy to a single bucket instead of all buckets.
|
31 |
|
32 | **condensation-docker** - `condensation run-task s3:list`
|
33 |
|
34 | **nodejs** - `npm run gulp condensation:s3:list`
|
35 |
|
36 | **Example**
|
37 |
|
38 | > condensation run-task s3:list
|
39 | [10:21:47] Using gulpfile ~/condensation-example/gulpfile.js
|
40 | [10:21:47] Starting 'condensation:s3:list'...
|
41 | 0: a.bucket.in.us-east-1
|
42 | 1: a.bucket.in.us-west-2
|
43 | [10:21:47] Finished 'condensation:s3:list' after 153 μs
|
44 |
|
45 |
|
46 | ## build
|
47 |
|
48 | For the `build` task to run AWS credentials must be set as environment
|
49 | variables: `AWS_SECRET_ACCESS_KEY` and `AWS_ACCESS_KEY_ID`
|
50 |
|
51 |
|
52 | This will build and verify all templates
|
53 |
|
54 | **condensation-docker** - `condensation run build`
|
55 |
|
56 | **nodejs** - `npm run gulp condensation:build`
|
57 |
|
58 | **Example**
|
59 |
|
60 | > AWS_SECRET_ACCESS_KEY=XXXX AWS_ACCESS_KEY_ID=XXXX condensation run build
|
61 |
|
62 |
|
63 | ## deploy
|
64 |
|
65 | For the `deploy` task to run AWS credentials must be set as environment
|
66 | variables: `AWS_SECRET_ACCESS_KEY` and `AWS_ACCESS_KEY_ID`
|
67 |
|
68 |
|
69 | This will upload templates to all cofigured S3 buckets.
|
70 |
|
71 | **condensation-docker** - `condensation run deploy`
|
72 |
|
73 | **nodejs** - `npm run gulp condensation:deploy`
|
74 |
|
75 | **Example**
|
76 |
|
77 | > AWS_SECRET_ACCESS_KEY=XXXX AWS_ACCESS_KEY_ID=XXXX condensation run deploy
|
78 |
|
79 |
|
80 | ## deploy:ID
|
81 |
|
82 | Deploy templates to a specific S3 bucket.
|
83 |
|
84 | **condensation-docker** - `condensation run-task deploy:0`
|
85 |
|
86 | **nodejs** - `npm run gulp condensation:deploy:0`
|
87 |
|
88 |
|
89 | ## deploy:LABEL
|
90 |
|
91 | Deploy templates to all S3 buckets that contain the label, LABEL.
|
92 |
|
93 | **condensation-docker** - `condensation run-task deploy:dev`
|
94 |
|
95 | **nodejs** - `npm run gulp condensation:deploy:dev`
|