grunt-trifle 0.1.0

A task runner for creating screenshots using TrifleJs.

Homepage: https://github.com/mrClapham/grunt-triflejs

Platform: npm

Language: JavaScript

License: MIT

View on registry: https://www.npmjs.com/package/grunt-trifle/

Install: npm install grunt-trifle


grunt-trifle

A task runner for creating screenshots using TrifleJs.

Getting Started

This plugin requires Grunt ~0.4.5

If you haven't used Grunt before, be sure to check out the Getting Started guide, as it explains how to create a Gruntfile as well as install and use Grunt plugins. Once you're familiar with that process, you may install this plugin with this command:

npm install grunt-trifle --save-dev

Once the plugin has been installed, it may be enabled inside your Gruntfile with this line of JavaScript:

grunt.loadNpmTasks('grunt-trifle');

The "trifle" task

Overview

In your project's Gruntfile, add a section named trifle to the data object passed into grunt.initConfig().

grunt.initConfig({
 trifle: {
 options: {
 // Task-specific options go here.
 },
 your_target: {
 // Target-specific file lists and/or options go here.
 },
 },
});

Options

options.separator

Type: String Default value: ', '

A string value that is used to do something with whatever.

options.punctuation

Type: String Default value: '.'

A string value that is used to do something else with whatever else.

Usage Examples

Default Options

In this example, the default options are used to do something with whatever. So if the testing file has the content Testing and the 123 file had the content 1 2 3, the generated result would be Testing, 1 2 3.

grunt.initConfig({
 trifle: {
 options: {},
 files: {
 'dest/default_options': ['src/testing', 'src/123'],
 },
 },
});

Custom Options

In this example, custom options are used to do something else with whatever else. So if the testing file has the content Testing and the 123 file had the content 1 2 3, the generated result in this case would be Testing: 1 2 3 !!!

grunt.initConfig({
 trifle: {
 options: {
 separator: ': ',
 punctuation: ' !!!',
 },
 files: {
 'dest/default_options': ['src/testing', 'src/123'],
 },
 },
});

Contributing

In lieu of a formal styleguide, take care to maintain the existing coding style. Add unit tests for any new or changed functionality. Lint and test your code using Grunt.

Release History

(Nothing yet)

веселые картинки развлекательные гифки интресные факты смешные видео смешные истории из соцсетей

Development Dependencies

Dependencies


GitHub Repository

mrClapham/grunt-triflejs mrClapham/grunt-triflejs

A task runner for creating screenshots using TrifleJs

Language: JavaScript

Created: March 30, 2015 09:03

Last updated: April 01, 2015 12:39

Last pushed: April 01, 2015 12:15

Size: 0 Bytes

Stars: 0

Forks: 0

Watchers: 1

Open issues: 0

Top Contributors

Graham Clapham

Releases

  • 0.1.0 - April 01, 2015 12:35

Related Projects

grunt-capturelocal 0.1.6
Batch screenshot local files using phantomjs and resize
npm - JavaScript - MIT - Updated about 1 year ago - 3 stars
grunt-screenshotlocal 0.1.0
Create a quick screenshot for your site which could help for document or testing.
npm - BSD-3-Clause - Published about 1 year ago
grunt-angular-template-inline-js 0.1.1
A grunt task runner for angular-template-inline-js
npm - JavaScript - MIT - Updated 7 months ago - 2 stars
grunt-artoo 0.0.4
A grunt task to create artoo bookmarklets.
npm - JavaScript - MIT - Updated 8 months ago - 3 stars
grunt-breakshots 0.2.0
Create screenshots of html files per breakpoint
npm - JavaScript - MIT - Updated over 1 year ago - 34 stars
веселые картинки развлекательные гифки интресные факты смешные видео смешные истории из соцсетей