0

作为我的 Gruntfile.js 的一部分,我有以下内容:

grunt.initConfig({
  pkg: grunt.file.readJSON('package.json'),

  zip: {
    app: {
      files: [
        {
          src: [ '**/*', "!./app/cache/**", '!./app/logs/**' ],
          dest: 'archive.zip',
          dot: true
        }
      ]
    }
  }
});

grunt.loadNpmTasks('grunt-zip');

但是,当我运行时grunt zip:app,生成的 zip 文件中不会包含任何点文件。例如.travis.yml存在于源代码树中,但不在 zip 中。

Grunt 认识我,所以我做错了什么并不明显。但我确实想要 zip 中的那些点文件。

4

1 回答 1

0

这是模块中的一个错误;见https://github.com/twolfson/grunt-zip/issues/10

于 2013-03-31T10:05:56.403 回答