0.0.12 • Published 10 years ago

grunt-prototyper v0.0.12

Weekly downloads
1
License
-
Repository
github
Last release
10 years ago

grunt-prototyper

Create elements from components

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-prototyper --save-dev

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

grunt.loadNpmTasks('grunt-prototyper');

The "prototyper" task

Overview

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

grunt.initConfig({
  prototyper: {
            default_options: {
                options: {
                    openResult: false
                },
                cwd: "myfiles/",
                componentsFolder: "components/",
                templatesFolder: "templates/",
                includesFolder: "includes/",
                config: "config.json"
            }
        }
});

To see how it works run grunt in package folder and/or look into folder test/.

Release History

0.0.8 - Fix adding custom classes

0.0.7 - Add ability to add custom class to main template element (using {{{aditional-classes}}}).

0.0.6 - Add ability to add wrapper with custom class for element.

0.0.5 - Add embeded template for demo output.

0.0.4 - Add components to the demo page.

0.0.12

10 years ago

0.0.11

10 years ago

0.0.10

10 years ago

0.0.9

10 years ago

0.0.8

10 years ago

0.0.7

10 years ago

0.0.6

10 years ago

0.0.5

10 years ago

0.0.4

10 years ago

0.0.3

10 years ago

0.0.2

10 years ago

0.0.1

10 years ago