Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Archive all files from root and exclude some #178

Open
hellor0bot opened this issue Apr 12, 2016 · 0 comments
Open

Archive all files from root and exclude some #178

hellor0bot opened this issue Apr 12, 2016 · 0 comments

Comments

@hellor0bot
Copy link

I'm trying to archive all files from the root folder except for some of them.

Here's the array of all files and exceptions:

  var themeFileList = [
    '**/*',
    '!archive.zip',
    '!.sass-cache/*',
    '!assets/*',
    '!node_modules/*',
    '!.bowerrc',
    '!.editorconfig',
    '!.gitattributes',
    '!.gitignore',
    '!.jshintrc',
    '!bower.json',
    '!Gruntfile.js',
    '!package.json',
    '!README.md',
    '!sublime.sublime-project',
    '!sublime.sublime-workspace',
  ];

Here's the config:

    compress: {
      main: {
        options: {
          archive: 'archive.zip'
        },
        files: [
          { src: [themeFileList], dest: 'archive/' }, // includes files in path
        ]
      }
    }

Seems that it's an endless loop.

I can successfully archive some files from a folder to another folder by using cwd, however is there a way to archive all files with some exceptions from the root folder to the root folder?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant