grunt-contrib-x 背后的含义是什么?
what is the meaning behind grunt-contrib-x?
我是 grunt 的新手,我正在查看不同开发人员放在一起的不同 grunt 文件中的引用。我在他的代码中看到了几个 "contrib" 引用,想知道 "contrib" 在 grunt 世界中代表什么:
grunt.loadNpmTasks('grunt-contrib-sass');
grunt.loadNpmTasks('grunt-contrib-concat');
grunt.loadNpmTasks('grunt-contrib-uglify');
grunt.loadNpmTasks('grunt-contrib-clean');
在grunt上下文中,"contrib"是代表某种类型的节点模块,某种类型的支持模块,某种类型的任务分组还是其他什么?
grunt-contrib-*
是官方 grunt 插件的命名约定。
来自 Creating Plugins 文档。
Naming your task
The "grunt-contrib" namespace is reserved for tasks maintained by the
Grunt team, please name your task something appropriate that avoids
that naming scheme.
我是 grunt 的新手,我正在查看不同开发人员放在一起的不同 grunt 文件中的引用。我在他的代码中看到了几个 "contrib" 引用,想知道 "contrib" 在 grunt 世界中代表什么:
grunt.loadNpmTasks('grunt-contrib-sass');
grunt.loadNpmTasks('grunt-contrib-concat');
grunt.loadNpmTasks('grunt-contrib-uglify');
grunt.loadNpmTasks('grunt-contrib-clean');
在grunt上下文中,"contrib"是代表某种类型的节点模块,某种类型的支持模块,某种类型的任务分组还是其他什么?
grunt-contrib-*
是官方 grunt 插件的命名约定。
来自 Creating Plugins 文档。
Naming your task
The "grunt-contrib" namespace is reserved for tasks maintained by the Grunt team, please name your task something appropriate that avoids that naming scheme.