catlogjs
Version:
Static site generator, translate human readable text format(such as markdown) into html, with a lot of other functions
51 lines (50 loc) • 3.02 kB
JSON
{
"name": "load-grunt-tasks",
"version": "0.1.3",
"description": "Load multiple grunt tasks using globbing patterns",
"keywords": [
"grunt",
"load",
"require",
"tasks",
"glob",
"pattern",
"match"
],
"homepage": "https://github.com/sindresorhus/load-grunt-tasks",
"bugs": {
"url": "https://github.com/sindresorhus/load-grunt-tasks/issues"
},
"license": "MIT",
"author": {
"name": "Sindre Sorhus",
"email": "sindresorhus@gmail.com",
"url": "http://sindresorhus.com"
},
"files": [
"load-grunt-tasks.js"
],
"main": "load-grunt-tasks",
"repository": {
"type": "git",
"url": "git://github.com/sindresorhus/load-grunt-tasks.git"
},
"scripts": {
"test": "grunt"
},
"dependencies": {
"minimatch": "~0.2.12",
"lodash": "~2.2.1"
},
"devDependencies": {
"grunt": "~0.4.1",
"grunt-svgmin": "~0.2.0"
},
"engines": {
"node": ">=0.8.0"
},
"readme": "# load-grunt-tasks [](http://travis-ci.org/sindresorhus/load-grunt-tasks)\n\n> Load multiple grunt tasks using globbing patterns\n\nUsually you would have to load each task one by one, which is unnecessarily cumbersome.\n\nThis module will read the `devDependencies` in your package.json and load the tasks that matches your patterns.\n\n\n#### Before\n\n```js\ngrunt.loadNpmTasks('grunt-shell');\ngrunt.loadNpmTasks('grunt-sass');\ngrunt.loadNpmTasks('grunt-recess');\ngrunt.loadNpmTasks('grunt-sizediff');\ngrunt.loadNpmTasks('grunt-svgmin');\ngrunt.loadNpmTasks('grunt-styl');\ngrunt.loadNpmTasks('grunt-php');\ngrunt.loadNpmTasks('grunt-eslint');\ngrunt.loadNpmTasks('grunt-concurrent');\ngrunt.loadNpmTasks('grunt-bower-requirejs');\n```\n\n#### After\n\n```js\nrequire('load-grunt-tasks')(grunt);\n```\n\n\n## Install\n\nInstall with [npm](https://npmjs.org/package/load-grunt-tasks): `npm install --save-dev load-grunt-tasks`\n\n\n## Example\n\n```js\n// Gruntfile.js\nmodule.exports = function (grunt) {\n\t// load all grunt tasks matching the `grunt-*` pattern\n\trequire('load-grunt-tasks')(grunt);\n\n\tgrunt.initConfig();\n\tgrunt.registerTask('default', []);\n}\n```\n\nBy default `grunt-*` will be used as the [globbing pattern](https://github.com/isaacs/minimatch).\n\nYou can optionally specify a pattern or an array of patterns:\n\n```js\nrequire('load-grunt-tasks')(grunt, 'grunt-shell');\n```\n\n```js\nrequire('load-grunt-tasks')(grunt, 'grunt-contrib-*');\n```\n\n```js\nrequire('load-grunt-tasks')(grunt, ['grunt-contrib-*', 'grunt-shell']);\n```\n\nYou also have the option to specify the package.json as an object if it's not in the same folder as your Gruntfile:\n\n```js\nrequire('load-grunt-tasks')(grunt, 'grunt-shell', require('../package'));\n```\n\n\n## License\n\nMIT License • © [Sindre Sorhus](http://sindresorhus.com)\n",
"readmeFilename": "readme.md",
"_id": "load-grunt-tasks@0.1.3",
"_from": "load-grunt-tasks@~0.1.0"
}