Skip to content

bosadnik/grunt-other-dependencies

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

grunt-other-dependencies

Additional denepdencies for project downloaded direcly as zip and unpacked to defiened folder

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-other-dependencies --save-dev

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

grunt.loadNpmTasks('grunt-other-dependencies');

The "other_dependencies" task

Overview

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

grunt.initConfig({
   other_dependencies: {
          target: {}       
        },
});

Usage Examples

Default Options

Put dummy configuration into initConfig section

grunt.initConfig({
   other_dependencies: {
          target: {}       
        },
});

package.json config

In your package.json file, put `other_dependencies' section

  
  "otherDependecies": [
    {
      "name": "test-module-one",
      "url": "http://www.osadnik.com/download-zip/test-module-one.zip",
      "destFolder": "other-modules"
    },
    
    {
      "name": "test-module-two",
      "url": "http://www.osadnik.com/download-zip/test-module-two.zip",
      "destFolder": "other-modules"
    }
    
  ],

Grunt configuration

as a separeated task

    grunt.registerTask('otherDeps', [
         'other_dependencies',
        ])

... or directly binded to build task:

 grunt.registerTask('build', [
        // 'test',
        'other_dependencies',
        'clean:dist',
        'useminPrepare',
        ...
        ...
        ]
      );

then you can just run:

grunt otherDeps

or

then you can just run:

grunt build

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)

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published