Tag: dir

Grunt:grunt-hub并不是在看所有的项目

我已经安装了grunt-hub到我的工作区,看起来像这样 hub/ node_modules/ grunt/ grunt-hub/ Gruntfile.js package.json 在Gruntfile.js中我写了这个, module.exports = function (grunt) { 'use strict'; grunt.initConfig({ pkg : grunt.file.readJSON( 'package.json' ), hub: { src: [ 'hub/*/Gruntfile.js' ], watch: { src: '<%= hub.src %>', tasks: ['watch'] } } }); grunt.loadNpmTasks('grunt-hub'); grunt.registerTask('default', []); } 我在hub目录下有四个文件,它们有自己的Gruntfiles。 hub/ project1/ … Gruntfile.js … project2/ … Gruntfile.js … project3/ … Gruntfile.js […]