-
-
Notifications
You must be signed in to change notification settings - Fork 60
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
73a8298
commit 81c6b67
Showing
2 changed files
with
8 additions
and
19 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
github: sindresorhus | ||
open_collective: sindresorhus | ||
patreon: sindresorhus | ||
custom: https://sindresorhus.com/donate |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -2,12 +2,6 @@ | |
|
||
> Load multiple grunt tasks using globbing patterns | ||
--- | ||
|
||
<p align="center"><b>🔥 Want to strengthen your core JavaScript skills and master ES6?</b><br>I would personally recommend this awesome <a href="https://ES6.io/friend/AWESOME">ES6 course</a> by Wes Bos.</p> | ||
|
||
--- | ||
|
||
Usually you would have to load each task one by one, which is unnecessarily cumbersome. | ||
|
||
This module will read the `dependencies`/`devDependencies`/`peerDependencies`/`optionalDependencies` in your package.json and load grunt tasks that match the provided patterns. | ||
|
@@ -40,10 +34,6 @@ require('load-grunt-tasks')(grunt); | |
$ npm install --save-dev load-grunt-tasks | ||
``` | ||
|
||
<a href="https://www.patreon.com/sindresorhus"> | ||
<img src="https://c5.patreon.com/external/logo/[email protected]" width="160"> | ||
</a> | ||
|
||
|
||
## Usage | ||
|
||
|
@@ -127,17 +117,17 @@ require('load-grunt-tasks')(grunt, { | |
|
||
### pattern | ||
|
||
Type: `string`, `Array`<br> | ||
Default: `['grunt-*', '@*/grunt-*']` ([globbing pattern](https://github.com/isaacs/minimatch)) | ||
Type: `string | string[]`<br> | ||
Default: `['grunt-*', '@*/grunt-*']` ([Glob pattern](https://github.com/isaacs/minimatch)) | ||
|
||
### config | ||
|
||
Type: `string`, `Object`<br> | ||
Type: `string | object`<br> | ||
Default: Path to nearest package.json | ||
|
||
### scope | ||
|
||
Type: `string`, `Array`<br> | ||
Type: `string | string[]`<br> | ||
Default: `['dependencies', 'devDependencies', 'peerDependencies', 'optionalDependencies']`<br> | ||
Values: `'dependencies'`, `'devDependencies'`, `'peerDependencies'`, `'optionalDependencies'`, `'bundledDependencies'` | ||
|
||
|
@@ -147,8 +137,3 @@ Type: `boolean`<br> | |
Default: `false` | ||
|
||
Traverse up the file hierarchy looking for dependencies like `require()`, rather than the default grunt-like behavior of loading tasks only in the immediate `node_modules` directory. | ||
|
||
|
||
## License | ||
|
||
MIT © [Sindre Sorhus](https://sindresorhus.com) |