Gathering detailed insights and metrics for bsp-grunt
Gathering detailed insights and metrics for bsp-grunt
npm install bsp-grunt
Typescript
Module System
NPM Version
24.4
Supply Chain
76.5
Quality
62.6
Maintenance
25
Vulnerability
50
License
Love this project? Help keep it running — sponsor us today! 🚀
Total Downloads
12,746
Last Day
4
Last Week
6
Last Month
42
Last Year
296
Minified
Minified + Gzipped
Latest Version
1.1.1
Package Id
bsp-grunt@1.1.1
Size
3.24 kB
NPM Version
1.3.11
Cumulative downloads
Total Downloads
Last Day
0%
4
Compared to previous day
Last Week
-33.3%
6
Compared to previous week
Last Month
121.1%
42
Compared to previous month
Last Year
-36.9%
296
Compared to previous year
Standard set of Grunt configuration for Brightspot projects using the following:
package.json
(for Grunt dependencies):
{
"name": "foo",
"devDependencies": {
"bsp-grunt": "1.1.1"
}
}
bower.json
(for project-specific dependencies):
{
"name": "foo",
"dependencies": {
"jquery": "~1.11.0"
}
}
Gruntfile.js
:
module.exports = function(grunt) {
require('bsp-grunt')(grunt, {
bsp: {
styles: {
dir: "assets/styles",
less: "foo.less"
},
scripts: {
dir: "assets/scripts",
rjsModules: [
{
name: "foo"
}
]
}
}
});
};
Note that require('bsp-grunt')(grunt, { ... })
replaces grunt.initConfig({ ... })
. For example, to use grunt-contrib-uglify
and provide its configuration:
module.exports = function(grunt) {
require('bsp-grunt')(grunt, {
...,
uglify: { ... }
});
grunt.loadNpmTasks('grunt-contrib-uglify');
grunt.registerTask('default', [
'bsp',
'uglify'
])
};
To change the supported list of browsers (see https://github.com/ai/autoprefixer#browsers for the) syntax):
module.exports = function(grunt) {
require('bsp-grunt')(grunt, {
...,
autoprefixer: {
process: {
options: {
browsers: [ 'last 1 version', '> 1%', 'Explorer 7' ]
}
}
}
});
While developing locally, use the following to compile LESS and apply Autoprefixer on the fly:
<script type="text/javascript" src="/assets/scripts/less-dev.js"></script>
<script type="text/javascript" src="/assets/scripts/less.js"></script>
No vulnerabilities found.
No security vulnerabilities found.