Installations
npm install grunt-concurrent
Developer
sindresorhus
Developer Guide
Module System
Unable to determine the module system for this package.
Min. Node Version
>=8
Typescript Support
No
Node Version
8.16.0
NPM Version
6.9.0
Statistics
798 Stars
86 Commits
66 Forks
15 Watching
1 Branches
13 Contributors
Updated on 12 Sept 2024
Languages
JavaScript (100%)
Total Downloads
Cumulative downloads
Total Downloads
39,554,412
Last day
31.2%
14,035
Compared to previous day
Last week
4.6%
64,342
Compared to previous week
Last month
2.5%
266,018
Compared to previous month
Last year
-20.6%
3,377,249
Compared to previous year
Daily Downloads
Weekly Downloads
Monthly Downloads
Yearly Downloads
Dependencies
4
Peer Dependencies
1
grunt-concurrent
Run grunt tasks concurrently
Running slow tasks like Coffee and Sass concurrently can potentially improve your build time significantly. This task is also useful if you need to run multiple blocking tasks like nodemon
and watch
at once.
Install
1npm install --save-dev grunt-concurrent
Usage
1require('load-grunt-tasks')(grunt); 2 3grunt.initConfig({ 4 concurrent: { 5 target1: ['coffee', 'sass'], 6 target2: ['jshint', 'mocha'] 7 } 8}); 9 10// Tasks of target1 run concurrently, after they all finished, tasks of target2 run concurrently, instead of target1 and target2 running concurrently. 11grunt.registerTask('default', ['concurrent:target1', 'concurrent:target2']);
Sequential tasks in concurrent target
1grunt.initConfig({ 2 concurrent: { 3 target: [['jshint', 'coffee'], 'sass'] 4 } 5});
Now jshint
will always be done before coffee
and sass
runs independent of both of them.
Options
limit
Type: number
Default: Twice the number of CPU cores with a minimum of 2
Limit how many tasks that are run concurrently.
logConcurrentOutput
Type: boolean
Default: false
You can optionally log the output of your concurrent tasks by specifying the logConcurrentOutput
option. Here is an example config which runs grunt-nodemon to launch and monitor a node server and grunt-contrib-watch to watch for asset changes all in one terminal tab:
1grunt.initConfig({
2 concurrent: {
3 target: {
4 tasks: ['nodemon', 'watch'],
5 options: {
6 logConcurrentOutput: true
7 }
8 }
9 }
10});
11
12grunt.loadNpmTasks('grunt-concurrent');
13grunt.registerTask('default', ['concurrent:target']);
The output will be messy when combining certain tasks. This option is best used with tasks that don't exit like watch
and nodemon
to monitor the output of long-running concurrent tasks.
indent
Type: boolean
Default: true
You can optionally skip indenting the log output of your concurrent tasks by specifying false
. This can be useful for running tasks in parallel for a stdout parser which expects no indentation, for example, TeamCity tests.
No vulnerabilities found.
Reason
no binaries found in the repo
Reason
no dangerous workflow patterns detected
Reason
security policy file detected
Details
- Info: security policy file detected: .github/security.md:1
- Info: Found linked content: .github/security.md:1
- Info: Found disclosure, vulnerability, and/or timelines in security policy: .github/security.md:1
- Info: Found text in security policy: .github/security.md:1
Reason
0 existing vulnerabilities detected
Reason
license file detected
Details
- Info: project has a license file: license:0
- Info: FSF or OSI recognized license: MIT License: license:0
Reason
Found 3/30 approved changesets -- score normalized to 1
Reason
0 commit(s) and 0 issue activity found in the last 90 days -- score normalized to 0
Reason
dependency not pinned by hash detected -- score normalized to 0
Details
- Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/main.yml:17: update your workflow using https://app.stepsecurity.io/secureworkflow/sindresorhus/grunt-concurrent/main.yml/main?enable=pin
- Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/main.yml:18: update your workflow using https://app.stepsecurity.io/secureworkflow/sindresorhus/grunt-concurrent/main.yml/main?enable=pin
- Warn: npmCommand not pinned by hash: .github/workflows/main.yml:22
- Info: 0 out of 2 GitHub-owned GitHubAction dependencies pinned
- Info: 0 out of 1 npmCommand dependencies pinned
Reason
detected GitHub workflow tokens with excessive permissions
Details
- Warn: no topLevel permission defined: .github/workflows/main.yml:1
- Info: no jobLevel write permissions found
Reason
no effort to earn an OpenSSF best practices badge detected
Reason
project is not fuzzed
Details
- Warn: no fuzzer integrations found
Reason
branch protection not enabled on development/release branches
Details
- Warn: branch protection not enabled for branch 'main'
Reason
SAST tool is not run on all commits -- score normalized to 0
Details
- Warn: 0 commits out of 3 are checked with a SAST tool
Score
4.2
/10
Last Scanned on 2024-11-18
The Open Source Security Foundation is a cross-industry collaboration to improve the security of open source software (OSS). The Scorecard provides security health metrics for open source projects.
Learn More