buildinfo-brunch

0.1.0 • Public • Published

buildinfo-brunch

npm version

npm downloads

Appends build information to your brunch project.

Installation

npm install --save buildinfo-brunch

Configuration

Configuration is handled using brunch config plugin options.

target (string, optional)

Where do you want to put the info Object? Either 'commonjs' or 'window'. 'commonjs' will add as a commonjs module called nameSpace property. 'window' will add a property called nameSpace to the window.

Default: commonjs.

nameSpace (string, optional)

The namespace to add the info Object to.

Default: {bower.name}/info.

info (function, optional)

Function to use to customize the information that is appended to your files. The default info Object is passed into this method, so add properties to it, or replace it completely.

Default: function(info){ return info }.

Example brunch-config.coffee

	plugins:
		buildinfo:
			target: 'commonjs'
			nameSpace: 'my_module_name'
			info: (info) ->
				info.version = '1.0.0'
				return info

Readme

Keywords

none

Package Sidebar

Install

npm i buildinfo-brunch

Weekly Downloads

1

Version

0.1.0

License

MIT

Last publish

Collaborators

  • ianllewellyn