Gathering detailed insights and metrics for jit-grunt
Gathering detailed insights and metrics for jit-grunt
Gathering detailed insights and metrics for jit-grunt
Gathering detailed insights and metrics for jit-grunt
npm install jit-grunt
Module System
Min. Node Version
Typescript Support
Node Version
NPM Version
509 Stars
127 Commits
32 Forks
11 Watching
2 Branches
6 Contributors
Updated on 22 Oct 2024
JavaScript (98.23%)
HTML (0.9%)
CoffeeScript (0.87%)
Cumulative downloads
Total Downloads
Last day
-9.8%
15,711
Compared to previous day
Last week
-3.1%
98,315
Compared to previous week
Last month
4.6%
425,813
Compared to previous month
Last year
1.7%
4,606,297
Compared to previous year
1
A JIT(Just In Time) plugin loader for Grunt.
Load time of Grunt does not slow down even if there are many plugins.
1grunt.loadNpmTasks('assemble');
2grunt.loadNpmTasks('grunt-contrib-clean');
3grunt.loadNpmTasks('grunt-contrib-connect');
4grunt.loadNpmTasks('grunt-contrib-copy');
5grunt.loadNpmTasks('grunt-contrib-csslint');
6grunt.loadNpmTasks('grunt-contrib-less');
7grunt.loadNpmTasks('grunt-contrib-jshint');
8grunt.loadNpmTasks('grunt-contrib-uglify');
9grunt.loadNpmTasks('grunt-contrib-watch');
10grunt.loadNpmTasks('grunt-newer');
11grunt.loadNpmTasks('grunt-wget');
12...
$ grunt assemble
...
Execution Time (2014-01-14 02:52:59 UTC)
loading tasks 5.7s ▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇ 84%
assemble:compile 1.1s ▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇ 16%
Total 6.8s
umm...
1require('jit-grunt')(grunt);
$ grunt assemble
...
Execution Time (2014-01-14 02:53:34 UTC)
loading tasks 111ms ▇▇▇▇▇▇▇▇▇ 8%
loading assemble 221ms ▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇ 16%
assemble:compile 1.1s ▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇ 77%
Total 1.4s
Have a pleasant Grunt life!
npm install jit-grunt --save-dev
Removes grunt.loadNpmTasks
, then add the require('jit-grunt')(grunt)
instead. Only it.
1module.exports = function (grunt) { 2 require('jit-grunt')(grunt); 3 4 grunt.initConfig({ 5 ... 6 }); 7 8 grunt.registerTask('default', [...]); 9}
Will automatically search for the plugin from the task name. Search in the following order:
task-name
task-name
task-name
clean -> node_modules/grunt-contrib-clean
wget -> node_modules/grunt-wget
mochaTest -> node_modules/grunt-mocha-test
mocha_phantomjs -> node_modules/grunt-mocha-phantomjs
assemble -> node_modules/assemble
Second parameter is static mappings.
It is used when there is a plugin that can not be resolved in the automatic mapping.
taskname
: grunt-plugin-name
1require('jit-grunt')(grunt, { 2 sprite: 'grunt-spritesmith', 3 foo: '@abc/grunt-foo', // for private modules. 4 bar: 'custom/bar.js' // for custom tasks. 5});
Type: Strong
Default: process.cwd()
All plugins and tasks are resolved relative to this path.
Type: String
Default: 'node_modules'
Root directory of grunt plugins, relative to the working directory.
1require('jit-grunt')(grunt)({ 2 pluginsRoot: 'other/dir' 3});
Type: String
Default: null
JIT Loading for custom tasks dir (replacement of grunt.loadTasks), relative to the working directory..
1require('jit-grunt')(grunt)({ 2 customTasksDir: 'custom/dir' 3});
Search in the following order:
custom/dir
/taskname
.jscustom/dir
/taskname
.coffeeAlias to customTasksDir
.
https://github.com/shootaroo/jit-grunt/tree/master/example
The MIT License (MIT)
Copyright © 2013 Shotaro Tsubouchi
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
No vulnerabilities found.
Reason
no binaries found in the repo
Reason
0 existing vulnerabilities detected
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
no effort to earn an OpenSSF best practices badge detected
Reason
security policy file not detected
Details
Reason
license file not detected
Details
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 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