Developing¶
Subgenerators¶
The generator is split into several subgenerators which are called in sequence (and may be called by other generators). Read up on generator composability. These can be called individually:
$ yo politico-interactives:<subgenerator>
app¶
The main subgenerator called by defauly when you run the generator.
archie¶
Sets up an ArchieML integration for the project, if requested.
bundler-browserify¶
Sets up a browserify-based bundler system.
bundler-webpack¶
Sets up a webpack-based bundler system (depricated).
github¶
Generates a GitHub repository for the project, if requested.
gulp¶
Sets up major gulp tasks.
keys¶
Will write a set of keys encrypted with a passphrase to a path in the user’s directory, ~/.politico/interactives.json
. Writes the following keys:
- AWS access key
- AWS secret key
- Google client ID
- Google client secret key
- GitHub personal access token
- Slack token
- Ngrok token
linters¶
Sets up ESLint linter config.
meta¶
Writes meta file.
passphrase¶
Uses your passphrase to try to decrypt keys file.
styles¶
Writes scss directory.
templates¶
Writes HTML directories.