grunt-hull-components

2019-09-12

A grunt task to build hull components.

grunt-hull-components (v0.1.0)

A grunt task to build hull components.

Getting Started

This plugin requires Grunt ~0.4.0

If you haven't used Gruntbefore, be sure to check out the Getting Startedguide, as it explains how to create a Gruntfileas 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-hull-components --save-dev

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

grunt.loadNpmTasks('grunt-hull-components');

The "hull_components" task

Overview

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

grunt.initConfig({
  hull_components: {
    options: {
      optimize: true
    },
    your_target: {
      src: 'src',
      dest: 'dist'
    },
  },
});

Options

options.optimize

Type: BooleanDefault value: true

Minify built components.

Usage Examples

grunt.initConfig({
  hull_components: {
    options: {},
    components: {
      src: 'src',
      dest: 'dist'
    },
  },
});

then to run the build task :

grunt hull_components

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

0.1.0 First release (2014-05-18)

HomePage

https://github.com/hull/grunt-hull-components

Repository

https://github.com/hull/grunt-hull-components


上一篇:react-jade
下一篇:framerjs
相关教程
关注微信

扫码加入 JavaScript 社区

相关文章

首次访问,需要验证
微信扫码,关注即可
(仅需验证一次)

欢迎加入 JavaScript 社区

号内回复关键字:

回到顶部