Gathering detailed insights and metrics for grunt-auto-install
Gathering detailed insights and metrics for grunt-auto-install
Gathering detailed insights and metrics for grunt-auto-install
Gathering detailed insights and metrics for grunt-auto-install
npm install grunt-auto-install
Typescript
Module System
Min. Node Version
Node Version
NPM Version
JavaScript (100%)
Total Downloads
0
Last Day
0
Last Week
0
Last Month
0
Last Year
0
MIT License
13 Stars
48 Commits
12 Forks
4 Watchers
2 Branches
6 Contributors
Updated on Oct 11, 2023
Latest Version
0.3.1
Package Id
grunt-auto-install@0.3.1
Size
6.29 kB
NPM Version
2.11.1
Node Version
0.10.21
Cumulative downloads
Total Downloads
Last Day
0%
NaN
Compared to previous day
Last Week
0%
NaN
Compared to previous week
Last Month
0%
NaN
Compared to previous month
Last Year
0%
NaN
Compared to previous year
1
1
4
Install and update npm and bower dependencies. It looks for 'package.json' and 'bower.json' files, and runs 'npm install' and 'bower install' respectively only if they exist. (You can also explicitly disable npm/bower tasks even if those files exist.)
This plugin requires Grunt ~0.4.0
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:
1npm install grunt-auto-install --save-dev
Once the plugin has been installed, it may be enabled inside your Gruntfile with this line of JavaScript:
1grunt.loadNpmTasks('grunt-auto-install');
In your project's Gruntfile, add a section named auto_install
to the data object passed into grunt.initConfig()
.
1grunt.initConfig({ 2 auto_install: { 3 local: {}, 4 subdir: { 5 options: { 6 cwd: 'subdir', 7 stdout: true, 8 stderr: true, 9 failOnError: true, 10 npm: '--production' 11 } 12 } 13 }, 14});
Type: String
Default value: ''
- runs in current directory
The working directory to run 'npm install' and 'bower install'. (relative path)
Type: Boolean
Default value: true
Shows stdout in the terminal.
Type: Boolean
Default value: true
Shows stderr in the terminal.
Type: Boolean
Default value: true
Instructs the auto-install task to fail the grunt run if an error occurs during the task execution.
Type: Boolean
String
Default value: true
Set to false
to turn off npm install
so that it will not run even if there is a package.json
file present.
If a String
is specified, it is passed as an install option flags to npm install
.
For example, --production
flag could be used not to install modules listed in devDependencies.
Type: Boolean
String
Default value: true
Set to false
to turn off bower install
so that it will not run even if there is a bower.json
file present.
If a String
is specified, it is passed as an install option flags to bower install
.
For example, --production
flag could be used not to install modules listed in devDependencies and
--allow-root
flag could be used so all is done using a root user.
Type: Boolean
Default value: false
Set to true
to turn on the recursive installation.
Will walk the entire directory tree and install dependencies for any package contained in a subdirectory
Type: String
[String]
Default value: '.*'
When recursive is set to true
, will perform the installation only on the directories that match a regular expression, or one in an array of regular expressions.
Type: String
[String]
Default value: '/(?=a)b/'
When recursive is set to true
, will ignore the directories (and it's sub directories) that match with a regular expression, or one in an array of regular expressions.
1grunt.initConfig({ 2 auto_install: { 3 local: {} 4 }, 5});
1grunt.initConfig({ 2 auto_install: { 3 subdir: { 4 options: { 5 cwd: 'subdir', 6 stderr: false, 7 failOnError: false, 8 npm: false, 9 bower: '--allow-root' 10 } 11 } 12 }, 13});
You will most likely not use the match
option
1auto_install: { 2 grunt.initConfig({ 3 local: {}, 4 options: { 5 recursive: true, 6 exclude: ['.git', 'node_modules', 'bower_components'] 7 } 8 } 9}
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.
No vulnerabilities found.
Reason
no binaries found in the repo
Reason
0 existing vulnerabilities detected
Reason
license file detected
Details
Reason
Found 3/15 approved changesets -- score normalized to 2
Reason
0 commit(s) and 0 issue activity found in the last 90 days -- score normalized to 0
Reason
security policy file not detected
Details
Reason
no effort to earn an OpenSSF best practices badge detected
Reason
project is not fuzzed
Details
Reason
branch protection not enabled on development/release branches
Details
Reason
SAST tool is not run on all commits -- score normalized to 0
Details
Score
Last Scanned on 2025-07-07
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