duckduckgo/p5-dist-zilla-plugin-buildshareassets

Name: p5-dist-zilla-plugin-buildshareassets

Owner: DuckDuckGo

Description: Prepares files in instant answer share directories for production

Created: 2015-03-19 00:37:59.0

Updated: 2017-04-04 14:43:33.0

Pushed: 2017-04-04 14:44:58.0

Homepage:

Size: 18

Language: Perl

GitHub Committers

UserMost Recent Commit# Commits

Other Committers

UserEmailMost Recent Commit# Commits

README

Dist::Zilla::Plugin::BuildShareAssets

Synopsis

Creates a single javascript file for each instant answer by performing the following steps from the root of a zeroclickinfo-* repository:

  1. Locates directories in share/ containing .js or .handlebars files.
  2. Builds metadata json for instant answer.
  3. Compiles handlebars files, if any.
  4. Concatenates above files and [ia_name].js, if it exists, into [ia_name].[ia_type].js.
  5. Adds new js files to distribution.

Files concatenated together should probably be excluded from the distribution via Dist::Zilla::Plugin::PruneFile in dist.ini.

The plugin can be activated by adding the following to dist.ini:

[BuildShareAssets]
Attributes

There are few attributes that can be set in dist.ini.

Non-Perl Dependencies

Uses command-line utilites, i.e. handlebars and uglifyjs, from the following packages and expects them to be in its path:


This work is supported by the National Institutes of Health's National Center for Advancing Translational Sciences, Grant Number U24TR002306. This work is solely the responsibility of the creators and does not necessarily represent the official views of the National Institutes of Health.